Skip to content

Commit

Permalink
trying to add auto-labeler + fix auto-review actionAuto label (#63)
Browse files Browse the repository at this point in the history
* adds auto-label job, possibly fixes auto-review job
  • Loading branch information
petethepig committed Feb 2, 2021
1 parent 0dc9715 commit bc7aa2f
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/auto-label.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"rules": {
"frontend": ["webapp/"],
"backend": ["*.go"]
}
}
17 changes: 17 additions & 0 deletions .github/workflows/auto-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Auto Label
on:
pull_request_target:
types: [opened, synchronize]

jobs:
auto-label:
name: Auto Label
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- uses: banyan/auto-label@1.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions .github/workflows/auto-request-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: Auto Request Review

on:
pull_request:
pull_request_target:
types: [opened, ready_for_review, reopened]

jobs:
Expand All @@ -13,5 +13,5 @@ jobs:
- name: Request review based on files changes and/or groups the author belongs to
uses: necojackarc/auto-request-review@v0.4.0
with:
token: ${{ secrets.AUTO_REVIEW_GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
config: .github/reviewers.yml # Config file location override

0 comments on commit bc7aa2f

Please sign in to comment.