Skip to content

Commit

Permalink
feat: support CODEOWNERS in pr approval helpers (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
danadajian authored Dec 10, 2021
1 parent 79d19b8 commit 5e1563a
Show file tree
Hide file tree
Showing 31 changed files with 2,448 additions and 125 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@
"github/no-then": "off",
"i18n-text/no-en": "off",
"import/no-unresolved": "off",
"filenames/match-regex": [2, "(^[a-z-]+$)|(^[a-z-]+\\.test$)"]
"filenames/match-regex": [2, "(^[a-z-]+$)|(^[a-z-]+\\.test$)"],
"quotes": ["error", "single"]
},
"env": {
"node": true,
Expand Down
8 changes: 8 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Order is important; the last matching pattern takes the most precedence.
# These owners will be the default owners for everything in
# the repo. Unless a later match takes precedence

* @ExpediaGroup/github-helpers-committers

/file/path/1 @ExpediaGroup/test-owners-1
/file/path/2 @ExpediaGroup/test-owners-2
1 change: 0 additions & 1 deletion .github/workflows/add-pr-approval-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
- uses: ./
with:
helper: add-pr-approval-label
teams: Repo-Maintainers
login: ${{ github.event.review.user.login }}
pull_number: ${{ github.event.pull_request.number }}
github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} # must have read:org permission
1 change: 0 additions & 1 deletion .github/workflows/assign-pr-reviewers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
- uses: ./
with:
helper: assign-pr-reviewers
teams: Repo-Maintainers
login: ${{ github.event.review.user.login }}
pull_number: ${{ github.event.pull_request.number }}
github_token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }} # must have read:org permission
66 changes: 54 additions & 12 deletions dist/154.index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5e1563a

Please sign in to comment.