|
1 | 1 | name: "Issue Labeler" |
2 | 2 | on: |
3 | 3 | issues: |
4 | | - types: [opened] |
| 4 | + types: [opened, edited, reopened] |
5 | 5 | pull_request_target: |
6 | | - types: [opened] |
| 6 | + types: [opened, synchronize, reopened] |
7 | 7 |
|
8 | 8 | permissions: |
9 | 9 | contents: read |
|
59 | 59 |
|
60 | 60 | - name: Assign new internal pull requests to project |
61 | 61 | 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' |
63 | 63 | uses: elastic/oblt-actions/github/project-add@v1 |
64 | 64 | with: |
65 | 65 | github-token: ${{ steps.get_token.outputs.token }} |
|
68 | 68 |
|
69 | 69 | - name: set status in project |
70 | 70 | 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' |
72 | 72 | uses: elastic/oblt-actions/github/project-field-set@v1 |
73 | 73 | with: |
74 | 74 | github-token: ${{ steps.get_token.outputs.token }} |
|
79 | 79 |
|
80 | 80 | - name: set agent in project |
81 | 81 | 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' |
83 | 83 | uses: elastic/oblt-actions/github/project-field-set@v1 |
84 | 84 | with: |
85 | 85 | github-token: ${{ steps.get_token.outputs.token }} |
|
90 | 90 |
|
91 | 91 | - name: set iteration in project |
92 | 92 | 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' |
94 | 94 | uses: elastic/oblt-actions/github/project-field-set@v1 |
95 | 95 | with: |
96 | 96 | github-token: ${{ steps.get_token.outputs.token }} |
|
0 commit comments