Skip to content
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
23 changes: 21 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,37 @@
module.exports = {
env: {
browser: true,
commonjs: true,
es2021: true,
jest: true,
},
extends: [
'airbnb-base',
],
parserOptions: {
ecmaVersion: 12,
ecmaVersion: 2022,
sourceType: 'module',
},
rules: {
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
mjs: 'always',
},
],
'import/prefer-default-export': 'off',
'no-use-before-define': 'off',
'no-restricted-syntax': 'off',
},
overrides: [
{
files: [
'test/**/*.mjs',
],
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
],
};
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11
- uses: actions/checkout@v6
- name: Setup NodeJS
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version: 20.x
node-version-file: .tool-versions

- name: Install project dependencies
run: npm install --also=dev
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 20.6.1
nodejs 24
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

## 2.0.0 (2026-03-23)

- Bump Node version to 24.

## 1.5.1 (2023-10-25)

- Bump Node version to 20.
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
pr-comment:
runs-on: ubuntu-latest
steps:
- uses: exercism/pr-commenter-action@v1.5.1
- uses: exercism/pr-commenter-action@v2.0.0
with:
github-token: "${{ github.token }}"
config-file: ".github/pr-commenter.yml"
Expand Down Expand Up @@ -67,6 +67,12 @@ Auth token used to manage issues or pull requests.

To reference a config file in another repo use the format: `<owner>/<repo>@<ref>:<path>`, for example `someuser/my-repo@v1:.github/pr-commenter.yml`. NOTE: make sure that "my-repo" is public and has "Workflow permissions" allowing files to be read.

#### `comment-key`

An optional stable key that scopes which previous comment this action run should update or recreate. If omitted, the action behaves as before and uses the newest previous comment created by PR Commenter. If you use this action multiple times in the same workflow and want separate comments, pass a unique `comment-key` for each invocation.

**Required**: false

### Configuration file

#### `comment.on-create`
Expand Down
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ inputs:
description: 'The path to the action configuration file'
default: '.github/pr-commenter.yml'
required: false
comment-key:
description: 'A stable key used to scope which previous comment this action run should update'
required: false
template-variables:
description: 'A string with a JSON that holds variables that will be used when rendering the Mustache templates'
required: false
runs:
using: 'node20'
main: 'dist/index.js'
using: 'node24'
main: 'dist/index.mjs'
branding:
icon: 'message-circle'
color: 'purple'
Loading