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

Add conditionals to community comment jobs #32683

Merged
merged 2 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ jobs:

community_note:
name: 'Add Community Note'
if: github.event.action == 'opened'
runs-on: ubuntu-latest
steps:
- name: 'Add community note to new Issues'
if: github.event.action == 'opened'
uses: peter-evans/create-or-update-comment@c6c9a1a66007646a28c153e2a8580a5bad27bcfa
with:
issue-number: ${{ github.event.issue.number }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/pull_request_target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ jobs:

community_note:
name: 'Community Note'
if: github.event.action == 'opened'
runs-on: ubuntu-latest
steps:
- name: 'Add community note to new Pull Requests'
Expand All @@ -194,6 +195,7 @@ jobs:

first_contribution_note:
name: 'New Contributor Note'
if: github.event.action == 'opened'
runs-on: ubuntu-latest
steps:
- name: 'Add comment to add helpful context for new contributors'
Expand All @@ -211,7 +213,7 @@ jobs:

permissions_check:
name: 'Verify Maintainers Editable'
if: ${{ !github.event.pull_request.maintainer_can_modify }}
if: github.event.action == 'opened' && !github.event.pull_request.maintainer_can_modify
runs-on: ubuntu-latest
steps:
- name: 'Comment if maintainers cannot edit'
Expand Down
Loading