Skip to content

Commit bc7aa2f

Browse files
authored
trying to add auto-labeler + fix auto-review actionAuto label (#63)
* adds auto-label job, possibly fixes auto-review job
1 parent 0dc9715 commit bc7aa2f

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed

.github/auto-label.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"rules": {
3+
"frontend": ["webapp/"],
4+
"backend": ["*.go"]
5+
}
6+
}

.github/workflows/auto-label.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Auto Label
2+
on:
3+
pull_request_target:
4+
types: [opened, synchronize]
5+
6+
jobs:
7+
auto-label:
8+
name: Auto Label
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
ref: ${{github.event.pull_request.head.ref}}
14+
repository: ${{github.event.pull_request.head.repo.full_name}}
15+
- uses: banyan/[email protected]
16+
env:
17+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/auto-request-review.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Auto Request Review
33

44
on:
5-
pull_request:
5+
pull_request_target:
66
types: [opened, ready_for_review, reopened]
77

88
jobs:
@@ -13,5 +13,5 @@ jobs:
1313
- name: Request review based on files changes and/or groups the author belongs to
1414
uses: necojackarc/[email protected]
1515
with:
16-
token: ${{ secrets.AUTO_REVIEW_GITHUB_TOKEN }}
16+
token: ${{ secrets.GITHUB_TOKEN }}
1717
config: .github/reviewers.yml # Config file location override

0 commit comments

Comments
 (0)