Skip to content

Commit 7f88f89

Browse files
treypTrey Philips
andauthored
feat(approvals-satisfied): overrides for CODEOWNERS (#706)
Co-authored-by: Trey Philips <[email protected]>
1 parent 6e8cd06 commit 7f88f89

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+188
-56
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ Each of the following helpers are defined in a file of the same name in `src/hel
7373
### [approvals-satisfied](.github/workflows/approvals-satisfied.yml)
7474

7575
- Returns `true` if the PR has been approved by the specified GitHub team(s) or user(s) and `false` otherwise
76-
- If GitHub teams are omitted, uses `CODEOWNERS.md` to determine teams and/or users to use
76+
- If GitHub teams are omitted, uses `CODEOWNERS` to determine teams and/or users to use.
77+
- The parameter `codeowners_overrides` can be used to override entries from `CODEOWNERS`. It is a string formatted as comma-separated list of lines in [the `CODEOWNERS` syntax](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners#codeowners-syntax). For example: `/path/foo @user1 @user2,/path/bar @user3`
7778
- Note: If you are providing teams in input, full team name is NOT needed. i.e. `team-name` works and `org/team-name` is NOT needed
7879

7980
### [approve-pr](.github/workflows/approve-pr.yml)

action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ inputs:
145145
required_review_overrides:
146146
description: 'A comma-separated list of team overrides which specify the number of required reviews per team (e.g. "@ExpediaGroup/team1:1,@ExpediaGroup/team2:2")'
147147
required: false
148+
codeowners_overrides:
149+
description: 'A comma-separated list of lines formatted in GitHub CODEOWNERS syntax which override the CODEOWNERS file (e.g. "/path/foo @user1 @user2,/path/bar @user3")'
150+
required: false
148151
max_queue_size:
149152
description: 'The maximum number of PRs that can be in the merge queue at any given time'
150153
required: false

dist/110.index.js

Lines changed: 14 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/110.index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/208.index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/250.index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)