---
title: "Rename a CI job without breaking its required check | Proofline"
description: "A required check is a name, so renaming the job that reports it leaves pull requests waiting for a check that no longer exists."
url: https://proofline.sh/learn/renamed-job-breaks-required-check/
---

[Learning center](/learn/)

# Rename a CI job without breaking its required check

A required check is a name, so renaming the job that reports it leaves pull requests waiting for a check that no longer exists. Add the new name next to the old one, require the new name, then remove the old, and watch for the shortcut where someone deletes the old requirement and adds nothing.

Code review The Proofline team November 23, 2026 5 min read

## Where the check name comes from

Branch rules and rulesets store the string a check reports, not a link to a workflow. GitHub's ruleset troubleshooting page gives the formats: for a workflow, "The name format is `<job name>`"; for a reusable workflow, "`<job name> / <reusable job name>`"; and for other checks, "`<check name>`." It adds: "Required status checks do not take workflow, matrix, or event trigger types into account." [Troubleshooting rules](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/troubleshooting-rules#troubleshooting-required-status-checks) A job's displayed name is set by `jobs.<job_id>.name` ([workflow syntax](https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#jobsjob_idname)).

So three ordinary edits change a required check's name: renaming a job, setting a `name:` on a job that had none, and moving a job's steps into a reusable workflow. None of them fails a build. They change which strings appear on the next commit, and the rule keeps asking for the old string.

## A fictional refactor into a reusable workflow

Suppose `acme/storefront` requires a check named `test`, produced by a job of that name in `.github/workflows/ci.yml`. A platform engineer moves the steps into a shared workflow, `.github/workflows/test-suite.yml`, that defines a job called `unit`, and replaces the original job with a call:

```
name: ci
on:
  pull_request:
  merge_group:

jobs:
  test:
    uses: ./.github/workflows/test-suite.yml
```

```
name: test-suite
on:
  workflow_call:

jobs:
  unit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - run: npm ci
      - run: npm test
```

The tests still run and pass. Under the documented format, the check now reports as `test / unit`. On the refactor's own pull request, the merge box shows the required `test` as expected and never satisfied, the state the [status checks reference](https://docs.github.com/en/pull-requests/reference/status-checks#check-statuses-and-conclusions) describes as "waiting for a status to be reported." The engineer has two quick ways out, and both are wrong.

The first is to merge with bypass permission. After that, every other open pull request inherits the same block once it picks up the new workflow, and each author asks the same question. The second is to remove `test` from the ruleset so the refactor can merge, intending to add `test / unit` later. If "later" does not happen, the ruleset requires nothing, every pull request merges green, and nothing tells anyone the test requirement is gone. This is the silent failure: a missing requirement does not show up on a pull request at all.

## A rename procedure that keeps the requirement

Rename in stages, so there is never a moment when the rule names a check that cannot report, or names no check at all.

1.  In one pull request, add the new job or call alongside the old job. Both report on every commit. Merge it under the existing rule, which the old job still satisfies.
2.  Wait until the new check has run successfully on the repository. The troubleshooting guide notes that "A required status check must have completed successfully in the chosen repository during the past seven days" ([troubleshooting required status checks](https://docs.github.com/en/pull-requests/how-tos/merge-and-close-pull-requests/troubleshooting-required-status-checks)).
3.  Edit the ruleset: add the new name, then remove the old one, in the same save. If the requirement is pinned to an app, pin the new name to the same app ([pinning the expected source](/learn/required-check-expected-source/)).
4.  In a second pull request, delete the old job. That pull request is already judged by the new name.
5.  Ask authors of open pull requests to push or update from the base branch. A `pull_request` workflow runs the workflow file from the pull request's merge commit ([securely using pull\_request\_target](https://docs.github.com/en/actions/reference/security/securely-using-pull_request_target#risks-of-pull_request_target)), so a pull request whose last run predates step 1 has no run under the new name.

Through the REST API, the change in step 3 is one edit to the `context` strings in the `required_status_checks` rule ([update a repository ruleset](https://docs.github.com/en/rest/repos/rules#update-a-repository-ruleset)):

```
{
  "rules": [
    {
      "type": "required_status_checks",
      "parameters": {
        "strict_required_status_checks_policy": false,
        "required_status_checks": [
          { "context": "test / unit" }
        ]
      }
    }
  ]
}
```

The update endpoint documents `rules` only as "An array of rules within the ruleset" and does not say that a partial array merges with the stored one, so read the ruleset first and send back its whole `rules` array with only the `context` strings changed.

## Make renames rare

Most renames are internal: someone splits a job, adds a matrix, or moves steps around. If the rule requires a single gate job with a stable name, such as `ci-gate`, those changes happen behind it and never touch the ruleset ([an always-running gate job](/learn/required-check-waiting-for-status/)). Then the only rename you plan is the gate's, and you can choose never to make it.

Keep names unique, too. GitHub's branch protection docs warn that "Using the same job name in multiple workflows can cause ambiguous status check results and block pull requests from being merged." [About protected branches](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#about-branch-protection-rules) A generic name such as `test` is easy to duplicate by accident in a second workflow.

## What the procedure does not catch

The procedure keeps a name required. It does not check that the job behind the new name runs the same tests as the old one. A refactor that drops a test directory from the suite passes every step above. Compare test counts or the list of executed suites in the job logs before and after, and have the owners of `.github/workflows/` review the refactor itself.

## What it costs

A staged rename takes two pull requests, a ruleset edit, and a short period of duplicate runs. That is more ceremony than a one-line rename, and teams skip it under time pressure. The cost of skipping it lands either on every open pull request, as a block, or on nobody, as a requirement that quietly disappeared.

## The decision

Treat a required check's name as part of the merge policy, not part of the workflow's internals. Require a stable gate name so internal refactors need no policy change, and when a required name must change, add the new name before removing the old one. After any ruleset edit that removes a required check, read the ruleset back and confirm the list is not empty.

## One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. [Eligibility and fair-use terms](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [Fix a required check stuck on "Waiting for status to be reported"](/learn/required-check-waiting-for-status/)
    
    Code review The Proofline team November 23, 2026 5 min read
    
-   ### [Pin a required check to the app that should report it](/learn/required-check-expected-source/)
    
    Code review The Proofline team November 23, 2026 4 min read
