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
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 20
node-version: 24
- run: npm ci
- run: npm run check
test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
node-version: [24]

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ branding:
icon: "git-pull-request"
color: "green"
runs:
using: "node20"
using: "node24"
main: "dist/index.js"
inputs:
commitlintRulesPath:
Expand Down
3 changes: 0 additions & 3 deletions commitlint.config.cjs

This file was deleted.

3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
extends: ['@commitlint/config-conventional', './commitlint.rules.js']
}
5 changes: 0 additions & 5 deletions commitlint.rules.cjs

This file was deleted.

5 changes: 5 additions & 0 deletions commitlint.rules.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
rules: {
'subject-case': [2, 'never', ['start-case', 'pascal-case', 'upper-case']]
}
}
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43996,7 +43996,7 @@ const getCommitSubject = (commitMessage = '') =>
checkout:
'ACTION(commitlintRulesPath): actions/checkout@v2 is required to load your commitlint rules file',
rules_not_found:
'ACTION(commitlintRules ): rules module not found, using default @commitlint/config-conventional lint rules...'
'ACTION(commitlintRules): rules module not found, using default @commitlint/config-conventional lint rules...'
}
}
});
Expand Down Expand Up @@ -44189,7 +44189,6 @@ async function lintPR() {
}

const {
// eslint-disable-next-line camelcase
number: pull_number,
base: {
user: { login: owner },
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"Patrick Heneise <https://patrickheneise.com>"
],
"main": "src/main.js",
"engines": {
"node": ">=24"
},
"scripts": {
"check": "opensource-check --path ./",
"prepare": "ncc build src/main.js -o dist --source-map --license licenses.txt",
Expand Down
2 changes: 1 addition & 1 deletion src/action-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default {
checkout:
'ACTION(commitlintRulesPath): actions/checkout@v2 is required to load your commitlint rules file',
rules_not_found:
'ACTION(commitlintRules ): rules module not found, using default @commitlint/config-conventional lint rules...'
'ACTION(commitlintRules): rules module not found, using default @commitlint/config-conventional lint rules...'
}
}
}
1 change: 0 additions & 1 deletion src/lint-pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export async function lintPR() {
}

const {
// eslint-disable-next-line camelcase
number: pull_number,
base: {
user: { login: owner },
Expand Down
4 changes: 0 additions & 4 deletions test/lint-pr.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ describe('lintPR', () => {
assert.strictEqual(mockCore.setFailed.mock.callCount(), 0)
})

it('fails when contextual pull request is not found', async () => {
// TODO: contextual pull request test
})

it('skips linting for dependabot PRs', async () => {
pullsGetResponse = {
data: { ...prFixture, title: 'bump lodash from 4.0.0 to 4.1.0', user: { login: 'dependabot[bot]' } }
Expand Down
Loading