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

Chore: update thollander/actions-comment-pull-request action to v3 #1384

Merged
merged 4 commits into from
Dec 30, 2024
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
8 changes: 4 additions & 4 deletions .github/workflows/gh-automerge-disabler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,24 @@ jobs:
- run: gh pr merge "${{ github.event.pull_request.number }}" --disable-auto
env:
GH_TOKEN: ${{ github.token }}
- uses: thollander/actions-comment-pull-request@v2
- uses: thollander/actions-comment-pull-request@v3
with:
message: |
## :warning: Disabling auto-merge
Auto-merge is problematic for outside contributions. A maintainer will need to merge this pull request manually.

_Comment generated by the [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}) workflow._
mode: recreate
comment_tag: gh-automerge-disabler
comment-tag: gh-automerge-disabler

remove-comment:
if: ${{ !github.event.pull_request.auto_merge || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name }}
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: thollander/actions-comment-pull-request@v2
- uses: thollander/actions-comment-pull-request@v3
with:
message: Deleting
mode: delete
comment_tag: gh-automerge-disabler
comment-tag: gh-automerge-disabler
8 changes: 4 additions & 4 deletions .github/workflows/gh-release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
permissions:
# actions/checkout@v4
contents: read
# thollander/actions-comment-pull-request@v2
# thollander/actions-comment-pull-request
pull-requests: write
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -105,12 +105,12 @@ jobs:
| jq --raw-output '.[0].number')
echo "PR_NUMBER=${PR_NUMBER}" >> "${GITHUB_OUTPUT}"
- if: ${{ steps.release-drafter.outputs.id }}
uses: thollander/actions-comment-pull-request@v2
uses: thollander/actions-comment-pull-request@v3
with:
message: |
## :octocat: GitHub release
This pull request resulted in the release: [v${{ steps.check.outputs.version }} @ ${{ env.ref }}](${{ steps.release-drafter.outputs.html_url }})

_Comment generated by the [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}) workflow._
comment_tag: gh-release
pr_number: ${{ steps.pr-finder.outputs.PR_NUMBER }}
comment-tag: gh-release
pr-number: ${{ steps.pr-finder.outputs.PR_NUMBER }}
8 changes: 4 additions & 4 deletions .github/workflows/node-branch-exec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: thollander/actions-comment-pull-request@v2
- uses: thollander/actions-comment-pull-request@v3
with:
message: |
## :test_tube: Branch testing instructions
Expand All @@ -49,15 +49,15 @@ jobs:
npm exec --yes -- "github:${{ github.event.pull_request.head.repo.full_name }}#${{ github.event.pull_request.head.ref }}" [commands..] [options]
```
_Comment generated by the [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}) workflow._
comment_tag: npm-exec
comment-tag: npm-exec

npm-exec-comment-update:
if: github.event.action == 'closed' && github.event.pull_request.merged
permissions:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: thollander/actions-comment-pull-request@v2
- uses: thollander/actions-comment-pull-request@v3
with:
message: |
## :test_tube: Branch testing instructions
Expand All @@ -66,5 +66,5 @@ jobs:
npm exec --yes -- "github:${{ github.event.pull_request.base.repo.full_name }}#${{ github.event.pull_request.base.ref }}" [commands..] [options]
```
_Comment generated by the [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}) workflow._
comment_tag: npm-exec
comment-tag: npm-exec
mode: recreate
8 changes: 4 additions & 4 deletions .github/workflows/node-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
contents: read
# `npm publish --provenance`
id-token: write
# thollander/actions-comment-pull-request@v2
# thollander/actions-comment-pull-request
pull-requests: write
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -51,12 +51,12 @@ jobs:
"https://api.github.com/repos/${GITHUB_REPOSITORY}/commits/${GIT_SHA}/pulls" \
| jq --raw-output '.[0].number')
echo "PR_NUMBER=${PR_NUMBER}" >> "${GITHUB_OUTPUT}"
- uses: thollander/actions-comment-pull-request@v2
- uses: thollander/actions-comment-pull-request@v3
with:
message: |
## :package: npm publish
This pull request resulted in the npm release: [v${{ steps.publish.outputs.PACKAGE_VERSION }}](https://www.npmjs.com/package/${{ steps.publish.outputs.PACKAGE_NAME }}/v/${{ steps.publish.outputs.PACKAGE_VERSION }})

_Comment generated by the [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}) workflow._
comment_tag: node-publish
pr_number: ${{ steps.pr-finder.outputs.PR_NUMBER }}
comment-tag: node-publish
pr-number: ${{ steps.pr-finder.outputs.PR_NUMBER }}
6 changes: 3 additions & 3 deletions .github/workflows/pr-renamer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
# https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-an-intermediate-environment-variable
NEW_TITLE: ${{ steps.title-massager.outputs.NEW_TITLE }}
- if: '!cancelled()'
uses: thollander/actions-comment-pull-request@v2
uses: thollander/actions-comment-pull-request@v3
with:
message: |
## :x: Invalid pull request title
Expand All @@ -92,8 +92,8 @@ jobs:
```
_Comment generated by the [${{ github.workflow }}](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}) workflow._
mode: ${{ steps.gh-pr-edit.outcome != 'success' && 'upsert' || 'delete' }}
create_if_not_exists: ${{ steps.gh-pr-edit.outcome != 'success' && 'true' || 'false' }}
comment_tag: pr-renamer
create-if-not-exists: ${{ steps.gh-pr-edit.outcome != 'success' && 'true' || 'false' }}
comment-tag: pr-renamer

# !!! This check should be required by GitHub !!!
title-status-check:
Expand Down
Loading