Skip to content

Commit

Permalink
feat: 14294-testing-github-bot-labels (#14536)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreancardona authored Aug 29, 2023
1 parent def61f5 commit d40350b
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/contribution-approved.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,24 @@
# GitHub recommends pinning actions to a commit SHA.
# To get a newer version, you will need to update the SHA.
# You can also reference a tag or branch, but the action may change without warning
name: Add comment on Enhancement Label
name: Add comment on enhancement issue
on:
issues:
types:
- labeled
types: [labeled, opened]

permissions:
issues: write

jobs:
add-comment:
## TODO: figure out how to escape colons for labels
# if: github.event.label.name == "proposal: accepted" && github.event.label.name == "community contribution"
if: "${{ contains(github.event.label.*.name, format('proposal{0} accepted', ':')) && contains(github.event.label.*.name, format('communit contribution'))}}"
name: Add comment to with proposal accepted and community contribution
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add comment
if:
${{ contains(github.event.issue.labels.*.name,
format('proposal{0} accepted', ':')) ||
contains(github.event.issue.labels.*.name, format('community contribution'))}}
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 #v6.4.1
with:
script: |
Expand Down

0 comments on commit d40350b

Please sign in to comment.