mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2026-04-09 16:00:06 +00:00
Merge branch 'main' into dependabot/npm_and_yarn/vercel/ncc-0.38.4
This commit is contained in:
commit
b868927e50
10 changed files with 32832 additions and 818 deletions
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
|
@ -11,7 +11,7 @@ jobs:
|
|||
permissions:
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- uses: actions/checkout@v6
|
||||
- run: yarn install
|
||||
- run: |
|
||||
set -o pipefail
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
nodejs 20.11.0
|
||||
nodejs 24.14.0
|
||||
|
|
|
|||
20
README.md
20
README.md
|
|
@ -15,7 +15,7 @@ permissions:
|
|||
```
|
||||
|
||||
```yaml
|
||||
uses: marocchino/sticky-pull-request-comment@v2
|
||||
uses: marocchino/sticky-pull-request-comment@v3
|
||||
with:
|
||||
message: |
|
||||
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
|
||||
release:
|
||||
...
|
||||
- uses: marocchino/sticky-pull-request-comment@v2
|
||||
- uses: marocchino/sticky-pull-request-comment@v3
|
||||
with:
|
||||
header: release
|
||||
message: |
|
||||
|
|
@ -44,7 +44,7 @@ test:
|
|||
rake test
|
||||
echo "$EOF"
|
||||
} >> "$GITHUB_ENV"
|
||||
- uses: marocchino/sticky-pull-request-comment@v2
|
||||
- uses: marocchino/sticky-pull-request-comment@v3
|
||||
with:
|
||||
header: test
|
||||
message: |
|
||||
|
|
@ -66,7 +66,7 @@ test:
|
|||
rake test
|
||||
echo "$EOF"
|
||||
} >> "$GITHUB_ENV"
|
||||
- uses: marocchino/sticky-pull-request-comment@v2
|
||||
- uses: marocchino/sticky-pull-request-comment@v3
|
||||
with:
|
||||
append: true
|
||||
message: |
|
||||
|
|
@ -83,7 +83,7 @@ If for some reason, triggering on pr is not possible, you can use push.
|
|||
```yaml
|
||||
- uses: jwalton/gh-find-current-pr@v1
|
||||
id: finder
|
||||
- uses: marocchino/sticky-pull-request-comment@v2
|
||||
- uses: marocchino/sticky-pull-request-comment@v3
|
||||
with:
|
||||
number: ${{ steps.finder.outputs.pr }}
|
||||
message: |
|
||||
|
|
@ -94,7 +94,7 @@ If for some reason, triggering on pr is not possible, you can use push.
|
|||
### Read comment from a file
|
||||
|
||||
```yaml
|
||||
uses: marocchino/sticky-pull-request-comment@v2
|
||||
uses: marocchino/sticky-pull-request-comment@v3
|
||||
with:
|
||||
path: path-to-comment-contents.txt
|
||||
```
|
||||
|
|
@ -102,7 +102,7 @@ with:
|
|||
### Delete the previous comment and add a comment at the end
|
||||
|
||||
```yaml
|
||||
uses: marocchino/sticky-pull-request-comment@v2
|
||||
uses: marocchino/sticky-pull-request-comment@v3
|
||||
with:
|
||||
recreate: true
|
||||
message: |
|
||||
|
|
@ -112,7 +112,7 @@ with:
|
|||
### Delete previous comment
|
||||
|
||||
```yaml
|
||||
uses: marocchino/sticky-pull-request-comment@v2
|
||||
uses: marocchino/sticky-pull-request-comment@v3
|
||||
with:
|
||||
header: <same-header-as-the-step-that-added-the-comment>
|
||||
delete: true
|
||||
|
|
@ -121,7 +121,7 @@ with:
|
|||
### Hide the previous comment and add a comment at the end
|
||||
|
||||
```yaml
|
||||
uses: marocchino/sticky-pull-request-comment@v2
|
||||
uses: marocchino/sticky-pull-request-comment@v3
|
||||
with:
|
||||
hide_and_recreate: true
|
||||
hide_classify: "OUTDATED"
|
||||
|
|
@ -132,7 +132,7 @@ with:
|
|||
### Hide previous comment
|
||||
|
||||
```yaml
|
||||
uses: marocchino/sticky-pull-request-comment@v2
|
||||
uses: marocchino/sticky-pull-request-comment@v3
|
||||
with:
|
||||
header: <same-header-as-the-step-that-added-the-comment>
|
||||
hide: true
|
||||
|
|
|
|||
|
|
@ -88,5 +88,5 @@ outputs:
|
|||
created_comment_id:
|
||||
description: "ID of newly created comment, if any"
|
||||
runs:
|
||||
using: "node20"
|
||||
using: "node24"
|
||||
main: "dist/index.js"
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"$schema": "https://biomejs.dev/schemas/2.0.4/schema.json",
|
||||
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
|
||||
"files": {
|
||||
"includes": ["src/**/*.ts"]
|
||||
},
|
||||
|
|
|
|||
32524
dist/index.js
generated
vendored
32524
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
12
package.json
12
package.json
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "sticky-pull-request-comment",
|
||||
"version": "2.1.1",
|
||||
"version": "3.0.0",
|
||||
"private": true,
|
||||
"description": "Create comment on pull request, if exists update that comment.",
|
||||
"main": "lib/main.js",
|
||||
|
|
@ -30,16 +30,16 @@
|
|||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.11.1",
|
||||
"@actions/github": "^6.0.1",
|
||||
"@actions/github": "^7.0.0",
|
||||
"@actions/glob": "^0.5.0",
|
||||
"@octokit/graphql-schema": "^15.26.0"
|
||||
"@octokit/graphql-schema": "^15.26.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "2.2.4",
|
||||
"@types/node": "^24.3.0",
|
||||
"@biomejs/biome": "2.3.11",
|
||||
"@types/node": "^24.5.2",
|
||||
"@vercel/ncc": "^0.38.4",
|
||||
"js-yaml": "^4.1.0",
|
||||
"typescript": "^5.9.2",
|
||||
"vitest": "^3.2.4"
|
||||
"vitest": "^4.0.16"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,10 +12,10 @@ export default defineConfig({
|
|||
include: ['**/__tests__/**/*.test.ts'],
|
||||
globals: true,
|
||||
testTimeout: 10000,
|
||||
poolOptions: {
|
||||
threads: {
|
||||
maxThreads: 10,
|
||||
},
|
||||
},
|
||||
poolOptions: {
|
||||
threads: {
|
||||
maxThreads: 10,
|
||||
},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue