You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/actions/github/branch-protection/lock/action.yml
+10-15Lines changed: 10 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
name: 'Lock branch'
2
2
author: 'Pete Sramek'
3
-
description: 'Apply branch protection to prevent direct pushes. Requires PRs with configurable approval count; optional bypass actors let trusted users merge without a review.'
3
+
description: 'Apply branch protection to prevent direct pushes. Requires PRs with configurable approval count; admins can optionally bypass all restrictions.'
4
4
inputs:
5
5
branch:
6
6
description: 'Branch name to lock.'
@@ -20,10 +20,10 @@ inputs:
20
20
description: 'When true, approved reviews are dismissed when new commits are pushed to the branch.'
21
21
required: false
22
22
default: 'true'
23
-
bypass-users:
24
-
description: 'Comma-separated list of GitHub user logins that are allowed to bypass pull request requirements (e.g. "petesramek,bot-user").'
23
+
bypass-admins:
24
+
description: 'When true, repository admins are exempt from all branch protection rules (enforce_admins is disabled). When false (default), admins are also subject to the rules.'
0 commit comments