mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-20 21:24:07 +00:00
Merge pull request #1654 from marocchino/copilot/update-node-version-to-24
Upgrade action runtime to Node 24, bump major version to v3
This commit is contained in:
commit
43666c8feb
4 changed files with 13 additions and 13 deletions
|
|
@ -1 +1 @@
|
||||||
nodejs 20.11.0
|
nodejs 24.14.0
|
||||||
|
|
|
||||||
20
README.md
20
README.md
|
|
@ -15,7 +15,7 @@ permissions:
|
||||||
```
|
```
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v3
|
||||||
with:
|
with:
|
||||||
message: |
|
message: |
|
||||||
Release ${{ github.sha }} to <https://pr-${{ github.event.number }}.example.com>
|
Release ${{ github.sha }} to <https://pr-${{ github.event.number }}.example.com>
|
||||||
|
|
@ -28,7 +28,7 @@ In some cases, different actions may require different comments. The header allo
|
||||||
````yaml
|
````yaml
|
||||||
release:
|
release:
|
||||||
...
|
...
|
||||||
- uses: marocchino/sticky-pull-request-comment@v2
|
- uses: marocchino/sticky-pull-request-comment@v3
|
||||||
with:
|
with:
|
||||||
header: release
|
header: release
|
||||||
message: |
|
message: |
|
||||||
|
|
@ -44,7 +44,7 @@ test:
|
||||||
rake test
|
rake test
|
||||||
echo "$EOF"
|
echo "$EOF"
|
||||||
} >> "$GITHUB_ENV"
|
} >> "$GITHUB_ENV"
|
||||||
- uses: marocchino/sticky-pull-request-comment@v2
|
- uses: marocchino/sticky-pull-request-comment@v3
|
||||||
with:
|
with:
|
||||||
header: test
|
header: test
|
||||||
message: |
|
message: |
|
||||||
|
|
@ -66,7 +66,7 @@ test:
|
||||||
rake test
|
rake test
|
||||||
echo "$EOF"
|
echo "$EOF"
|
||||||
} >> "$GITHUB_ENV"
|
} >> "$GITHUB_ENV"
|
||||||
- uses: marocchino/sticky-pull-request-comment@v2
|
- uses: marocchino/sticky-pull-request-comment@v3
|
||||||
with:
|
with:
|
||||||
append: true
|
append: true
|
||||||
message: |
|
message: |
|
||||||
|
|
@ -83,7 +83,7 @@ If for some reason, triggering on pr is not possible, you can use push.
|
||||||
```yaml
|
```yaml
|
||||||
- uses: jwalton/gh-find-current-pr@v1
|
- uses: jwalton/gh-find-current-pr@v1
|
||||||
id: finder
|
id: finder
|
||||||
- uses: marocchino/sticky-pull-request-comment@v2
|
- uses: marocchino/sticky-pull-request-comment@v3
|
||||||
with:
|
with:
|
||||||
number: ${{ steps.finder.outputs.pr }}
|
number: ${{ steps.finder.outputs.pr }}
|
||||||
message: |
|
message: |
|
||||||
|
|
@ -94,7 +94,7 @@ If for some reason, triggering on pr is not possible, you can use push.
|
||||||
### Read comment from a file
|
### Read comment from a file
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v3
|
||||||
with:
|
with:
|
||||||
path: path-to-comment-contents.txt
|
path: path-to-comment-contents.txt
|
||||||
```
|
```
|
||||||
|
|
@ -102,7 +102,7 @@ with:
|
||||||
### Delete the previous comment and add a comment at the end
|
### Delete the previous comment and add a comment at the end
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v3
|
||||||
with:
|
with:
|
||||||
recreate: true
|
recreate: true
|
||||||
message: |
|
message: |
|
||||||
|
|
@ -112,7 +112,7 @@ with:
|
||||||
### Delete previous comment
|
### Delete previous comment
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v3
|
||||||
with:
|
with:
|
||||||
header: <same-header-as-the-step-that-added-the-comment>
|
header: <same-header-as-the-step-that-added-the-comment>
|
||||||
delete: true
|
delete: true
|
||||||
|
|
@ -121,7 +121,7 @@ with:
|
||||||
### Hide the previous comment and add a comment at the end
|
### Hide the previous comment and add a comment at the end
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v3
|
||||||
with:
|
with:
|
||||||
hide_and_recreate: true
|
hide_and_recreate: true
|
||||||
hide_classify: "OUTDATED"
|
hide_classify: "OUTDATED"
|
||||||
|
|
@ -132,7 +132,7 @@ with:
|
||||||
### Hide previous comment
|
### Hide previous comment
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
uses: marocchino/sticky-pull-request-comment@v2
|
uses: marocchino/sticky-pull-request-comment@v3
|
||||||
with:
|
with:
|
||||||
header: <same-header-as-the-step-that-added-the-comment>
|
header: <same-header-as-the-step-that-added-the-comment>
|
||||||
hide: true
|
hide: true
|
||||||
|
|
|
||||||
|
|
@ -88,5 +88,5 @@ outputs:
|
||||||
created_comment_id:
|
created_comment_id:
|
||||||
description: "ID of newly created comment, if any"
|
description: "ID of newly created comment, if any"
|
||||||
runs:
|
runs:
|
||||||
using: "node20"
|
using: "node24"
|
||||||
main: "dist/index.js"
|
main: "dist/index.js"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "sticky-pull-request-comment",
|
"name": "sticky-pull-request-comment",
|
||||||
"version": "2.1.1",
|
"version": "3.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Create comment on pull request, if exists update that comment.",
|
"description": "Create comment on pull request, if exists update that comment.",
|
||||||
"main": "lib/main.js",
|
"main": "lib/main.js",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue