Skip to content

Commit 8b6d917

Browse files
patrick-knightCopilotsophietheking
authored
Update troubleshooting-rules.md (#53916)
Co-authored-by: Copilot <[email protected]> Co-authored-by: Sophie <[email protected]>
1 parent 3a4ec83 commit 8b6d917

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

content/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/available-rules-for-rulesets.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ After enabling required status checks, all required status checks must pass befo
147147

148148
Any person or integration with write permissions to a repository can set the state of any status check in the repository, but in some cases you may only want to accept a status check from a specific {% data variables.product.prodname_github_app %}. When you add a required status check rule, you can select an app as the expected source of status updates. The app must be installed in the repository with the `statuses:write` permission, must have recently submitted a check run, and must be associated with a pre-existing required status check in the ruleset. If the status is set by any other person or integration, merging won't be allowed. If you select "any source", you can still manually verify the author of each status, listed in the merge box.
149149

150+
To troubleshoot issues with configuring status checks in rulesets, see [AUTOTITLE](/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/troubleshooting-rules#troubleshooting-required-status-checks).
151+
150152
{% ifversion repo-rules-enterprise %}
151153

152154
> [!NOTE] For organization-level status checks, the app must be installed with the `statuses:write` permission. Only apps with this permission are displayed when configuring rulesets at the organization-level.
@@ -161,7 +163,7 @@ You can think of required status checks as being either "loose" or "strict." The
161163
| **Loose** | The **Require branches to be up to date before merging** checkbox is **not** checked. | The branch **does not** have to be up to date with the base branch before merging. | You'll have fewer required builds, as you won't need to bring the head branch up to date after other collaborators merge pull requests. Status checks may fail after you merge your branch if there are incompatible changes with the base branch. |
162164
| **Disabled** | The **Require status checks to pass before merging** checkbox is **not** checked. | The branch has no merge restrictions. | If required status checks aren't enabled, collaborators can merge the branch at any time, regardless of whether it is up to date with the base branch. This increases the possibility of incompatible changes.
163165

164-
For troubleshooting information, see [AUTOTITLE](/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks).
166+
For status check troubleshooting information, see [AUTOTITLE](/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks).
165167

166168
{% ifversion code-scanning-merge-protection-rulesets %}
167169

content/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/troubleshooting-rules.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,23 @@ If a branch or tag is targeted by rules restricting the metadata of commits, you
1919

2020
When utilizing push rulesets, a maximum of 1000 reference updates are allowed per push. If your push exceeds this limit, it will be rejected. For more information see [AUTOTITLE](/repositories/configuring-branches-and-merges-in-your-repository/managing-rulesets/creating-rulesets-for-a-repository#creating-a-push-ruleset).
2121

22+
## Troubleshooting required status checks
23+
24+
When defining status checks, the name format depends on the type of check:
25+
26+
* **Workflow**: The name format is `<job name>`.
27+
* **Reusable workflow**: The name format is `<job name> / <reusable job name>`.
28+
* **Other checks**: The name format is `<check name>`.
29+
30+
Required status checks do not take workflow, matrix, or event trigger types into account.
31+
32+
{% ifversion repo-rules-enterprise %}
33+
34+
Status checks are not indexed for rulesets defined above the repository level. You must manually enter the exact check name expected.
35+
36+
For rulesets in evaluate mode, a status check will run on the targeted branch but will not be required to pass.
37+
{% endif %}
38+
2239
{% ifversion repo-rules-required-workflows %}
2340

2441
## Troubleshooting ruleset workflows

0 commit comments

Comments
 (0)