Skip to content

Commit

Permalink
ci: maybe fix issue label automation for mergify (backport #2265) (#2269
Browse files Browse the repository at this point in the history
)

This is an automatic backport of pull request #2265 done by
[Mergify](https://mergify.com).


---


<details>
<summary>Mergify commands and options</summary>

<br />

More conditions and actions can be found in the
[documentation](https://docs.mergify.com/).

You can also trigger Mergify actions by commenting on this pull request:

- `@Mergifyio refresh` will re-evaluate the rules
- `@Mergifyio rebase` will rebase this PR on its base branch
- `@Mergifyio update` will merge the base branch into this PR
- `@Mergifyio backport <destination>` will backport this PR on
`<destination>` branch

Additionally, on Mergify [dashboard](https://dashboard.mergify.com) you
can:

- look at your merge queues
- generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.com
</details>

Co-authored-by: Rootul P <[email protected]>
  • Loading branch information
mergify[bot] and rootulp authored Aug 14, 2023
1 parent d305b80 commit f700fa6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/issue-label-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
pull-requests: write
steps:
- name: Check if issue or PR was created by external contributor
if: ${{ github.actor != 'dependabot[bot]' }}
if: ${{ github.actor != 'dependabot[bot]' }} && ${{ github.actor == 'mergify[bot]' }}
uses: tspascoal/get-user-teams-membership@v2
id: teamCheck
with:
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:

# If a PR was created by dependabot add the `bot` label.
- name: Maybe label PR with `bot`
if: ${{ github.actor == 'dependabot[bot]' }}
if: ${{ github.actor == 'dependabot[bot]' }} || ${{ github.actor == 'mergify[bot]' }}
uses: andymckay/labeler@master
with:
add-labels: "bot"
Expand Down

0 comments on commit f700fa6

Please sign in to comment.