Skip to content

Commit 87cdbb3

Browse files
authored
automation: assign internal PRs to author (#4360)
1 parent 9418a72 commit 87cdbb3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/labeler.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ jobs:
5959
NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }}
6060
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6161

62+
- name: Assign new internal pull requests to author
63+
id: assign-to-author
64+
if: steps.is_elastic_member.outputs.result == 'true' && github.event_name == 'pull_request_target'
65+
run: gh issue edit "${NUMBER}" --add-assignee "${{ github.actor }}" --repo "${{ github.repository }}"
66+
env:
67+
NUMBER: ${{ github.event.issue.number || github.event.pull_request.number }}
68+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
6270
- name: Assign new internal pull requests to project
6371
id: add-to-project
6472
if: steps.is_elastic_member.outputs.result == 'true' && github.event_name == 'pull_request_target'

0 commit comments

Comments
 (0)