Skip to content

Commit 06ae00f

Browse files
[Improvement]: (Actions) Recommend uniquely named job names across multiple workflows if using branch protections (#56379)
1 parent a17eddb commit 06ae00f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

content/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ versions:
2525
topics:
2626
- Repositories
2727
---
28+
2829
## About branch protection rules
2930

31+
> [!TIP] If you use branch protection rules that require specific status checks, make sure that job names are unique across all workflows. Using the same job name in multiple workflows can cause ambiguous status check results and block pull requests from being merged. See [AUTOTITLE](/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/about-status-checks).
32+
3033
You can enforce certain workflows or requirements before a collaborator can push changes to a branch in your repository, including merging a pull request into the branch, by creating a branch protection rule. Actors may only be added to bypass lists when the repository belongs to an organization.
3134

3235
By default, each branch protection rule disables force pushes to the matching branches and prevents the matching branches from being deleted. You can optionally disable these restrictions and enable additional branch protection settings.

0 commit comments

Comments
 (0)