Skip to content

Commit f753740

Browse files
authored
[ci] try fixing adding to project (#4069)
* label PR/issues on more events * try to fix PR condition
1 parent c9d3821 commit f753740

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/labeler.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: "Issue Labeler"
22
on:
33
issues:
4-
types: [opened]
4+
types: [opened, edited, reopened]
55
pull_request_target:
6-
types: [opened]
6+
types: [opened, synchronize, reopened]
77

88
permissions:
99
contents: read
@@ -59,7 +59,7 @@ jobs:
5959

6060
- name: Assign new internal pull requests to project
6161
id: add-to-project
62-
if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event_name == 'pull_request'
62+
if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event_name == 'pull_request_target'
6363
uses: elastic/oblt-actions/github/project-add@v1
6464
with:
6565
github-token: ${{ steps.get_token.outputs.token }}
@@ -68,7 +68,7 @@ jobs:
6868

6969
- name: set status in project
7070
id: set-project-status-field
71-
if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event_name == 'pull_request'
71+
if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event_name == 'pull_request_target'
7272
uses: elastic/oblt-actions/github/project-field-set@v1
7373
with:
7474
github-token: ${{ steps.get_token.outputs.token }}
@@ -79,7 +79,7 @@ jobs:
7979

8080
- name: set agent in project
8181
id: set-project-agent-field
82-
if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event_name == 'pull_request'
82+
if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event_name == 'pull_request_target'
8383
uses: elastic/oblt-actions/github/project-field-set@v1
8484
with:
8585
github-token: ${{ steps.get_token.outputs.token }}
@@ -90,7 +90,7 @@ jobs:
9090

9191
- name: set iteration in project
9292
id: set-project-iteration-field
93-
if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event_name == 'pull_request'
93+
if: (steps.checkUserMember.outputs.isTeamMember == 'true' || steps.checkUserMember.outputs.isExcluded == 'true') && github.event_name == 'pull_request_target'
9494
uses: elastic/oblt-actions/github/project-field-set@v1
9595
with:
9696
github-token: ${{ steps.get_token.outputs.token }}

0 commit comments

Comments
 (0)