Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 14294-testing-github-bot-labels #14536

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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