Skip to content

Commit d8345bb

Browse files
updated auto-assign workflow
1 parent e1f8f87 commit d8345bb

1 file changed

Lines changed: 33 additions & 6 deletions

File tree

.github/workflows/auto-assign.yml

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,43 @@ on:
44
types: [opened]
55
pull_request:
66
types: [opened]
7+
78
jobs:
8-
run:
9+
pr-assigner:
10+
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
911
runs-on: ubuntu-latest
1012
permissions:
11-
issues: write
1213
pull-requests: write
14+
15+
steps:
16+
- name: "Pull Request issue assigner"
17+
uses: pozil/auto-assign-issue@v1
18+
with:
19+
repo-token: ${{ secrets.GITHUB_TOKEN }}
20+
assignees: LorenzoTettamanti
21+
numOfAssignee: 1
22+
23+
generic-issue-assigner:
24+
if: github.event_name == 'issues'
25+
runs-on: ubuntu-latest
26+
permissions:
27+
issues: write
1328
steps:
14-
- name: 'Auto-assign issue'
15-
uses: pozil/auto-assign-issue@v1
16-
with:
29+
- name: "Issue assigner"
30+
uses: pozil/auto-assign-issue@v1
31+
with:
1732
repo-token: ${{ secrets.GITHUB_TOKEN }}
1833
assignees: LorenzoTettamanti
19-
numOfAssignee: 1
34+
35+
cli-issue-assigner:
36+
if: github.event_name == 'issues' && github.event.action == 'labeled' && github.event.issue.labels.name == 'cortexflow cli'
37+
runs-on: ubuntu-latest
38+
permissions:
39+
issues: write
40+
steps:
41+
- name: "Cli issue assigner"
42+
uses: pozil/auto-assign-issue@v1
43+
44+
with:
45+
repo-token: ${{ secrets.GITHUB_TOKEN }}
46+
assignees: LorenzoTettamanti,PranavVerma-droid

0 commit comments

Comments
 (0)