Skip to content

ci: CORA_PAUSE skips the Cora review job when the repository variable is true - #367

Open
ajianaz wants to merge 1 commit into
developfrom
ci/cora-pause
Open

ajianaz wants to merge 1 commit into
developfrom
ci/cora-pause

Conversation

@ajianaz

@ajianaz ajianaz commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

What

The Cora Review job gets a pause switch: a repository variable CORA_PAUSE set to true skips the job. A skipped job counts as a pass for the required check of the same name. Unset, empty or any other value reviews as before, so the default changes nothing. A pull request into main is always reviewed, pause or not.

Why

The same switch runs in meldframe. With "require branches to be up to date" on and no merge queue, a slow review holds every merge behind the one before it. The owner can now pause the CI copy for a while (Settings, Secrets and variables, Actions, Variables tab) and turn it back on by deleting the variable, with no pull request and no ruleset change. The local Cora agent review stays required.

How

One job-level if with the variable and the base branch. Nothing else in the workflow depends on the job.

Testing

  • The workflow file parses, and the if evaluates as intended: unset or false reviews, true skips, true with base main reviews (checked on the expression, not by running the workflow).
  • An independent agent review of the diff found no defect. It noted that a paused pull request shows a green check with no visible notice, and that GitHub compares strings without case, so TRUE also pauses.
  • Not run: cora review locally with the CLI. The change is three lines of workflow and no program code.

Generated by Claude Code

… is true

A repository variable CORA_PAUSE set to true skips the Cora Review job, which a required check counts as a pass. Unset, empty or any other value reviews as before, so the default is no change. A pull request into main is always reviewed, pause or not. The local Cora agent review stays required.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant