Skip to content

Commit 7ddf7bf

Browse files
authored
auto-assign PR from forks to Martin, Ray and Itai for triaging (#1125)
1 parent 0d3b9f0 commit 7ddf7bf

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Add labels to PRs from forks
1+
name: Auto-assign PRs from forks
22

33
on:
44
pull_request_target:
55
types: [opened, reopened, edited]
66

77
jobs:
8-
add_labels:
8+
assign:
99
runs-on: self-hosted-docker-tiny
1010
if: github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
1111
steps:
@@ -14,10 +14,9 @@ jobs:
1414
with:
1515
script: |
1616
const pr = context.payload.pull_request;
17-
const labels = ['fork'];
18-
await github.rest.issues.addLabels({
17+
await github.rest.issues.addAssignees({
1918
issue_number: pr.number,
2019
owner: pr.base.repo.owner.login,
2120
repo: pr.base.repo.name,
22-
labels: labels,
21+
assignees: ['isegall-da', 'martinflorian-da', 'ray-roestenburg-da'],
2322
});

0 commit comments

Comments
 (0)