Skip to content

Commit

Permalink
Merge pull request #32683 from hashicorp/m-maintainer-edit
Browse files Browse the repository at this point in the history
Add conditionals to community comment jobs
  • Loading branch information
justinretzolk authored Jul 25, 2023
2 parents 450453f + d637e44 commit 8107bf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit 8107bf6

Please sign in to comment.