Skip to content

Commit 520832f

Browse files
committed
Bump versions
1 parent ea3cd6d commit 520832f

File tree

6 files changed

+11
-14
lines changed

6 files changed

+11
-14
lines changed

.github/workflows/linters.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
name: GitLint
1111
steps:
1212
- name: Checkout code
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414
- name: Lint commits, branches, and pull requests
1515
uses: ./
1616
with:

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Dominik Aschbacher
3+
Copyright (c) 2024 Dominik Aschbacher
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
name: GitLint
2323
steps:
2424
- name: Lint commits, branches, and pull requests
25-
uses: aschbacd/gitlint-action@v1.1.1
25+
uses: aschbacd/gitlint-action@v1.2.0
2626
```
2727
2828
### Example configuration for Jira
@@ -44,7 +44,7 @@ jobs:
4444
name: GitLint
4545
steps:
4646
- name: Lint commits, branches, and pull requests
47-
uses: aschbacd/gitlint-action@v1.1.1
47+
uses: aschbacd/gitlint-action@v1.2.0
4848
with:
4949
re-commit-message-subject: ^(\[[A-Z]+\-[0-9]+\] )?[A-Z].*((?!\.).)$
5050
re-pull-request-title: ^(\[[A-Z]+\-[0-9]+\] )?[A-Z].*((?!\.).)$

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,5 @@ inputs:
8181
required: false
8282
default: ".*"
8383
runs:
84-
using: "node12"
84+
using: "node20"
8585
main: "index.js"

index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ async function run() {
117117
let commitPromises = []
118118

119119
payload.commits.forEach(commit => {
120-
121120
commitPromises.push(octokit.rest.repos.getCommit({
122121
owner: owner,
123122
repo: repo,
@@ -133,10 +132,12 @@ async function run() {
133132

134133
// Check all commits
135134
commits.forEach(commit => {
135+
// Skip merge commits
136136
if (commit.parents && commit.parents.length > 1) {
137137
core.info(`Merge commit detected: ${commit.sha}`);
138138
return;
139139
}
140+
140141
// Split commit message
141142
let matches = regexCommitMessageSplit.exec(commit.commit.message)
142143
let commitMessageSubject = matches[1]

package.json

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
{
22
"name": "gitlint-action",
3-
"version": "1.1.1",
3+
"version": "1.2.0",
44
"description": "This GitHub Action ensures that your naming conventions for commits, branches, and pull requests are being respected.",
55
"main": "index.js",
6-
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
8-
},
96
"repository": {
107
"type": "git",
118
"url": "git+https://github.com/aschbacd/gitlint-action.git"
129
},
13-
"keywords": [],
14-
"author": "",
10+
"author": "Dominik Aschbacher",
1511
"license": "MIT",
1612
"bugs": {
1713
"url": "https://github.com/aschbacd/gitlint-action/issues"
1814
},
1915
"homepage": "https://github.com/aschbacd/gitlint-action#readme",
2016
"dependencies": {
21-
"@actions/core": "^1.9.1",
22-
"@actions/github": "^5.0.3"
17+
"@actions/core": "^1.10.1",
18+
"@actions/github": "^6.0.0"
2319
}
2420
}

0 commit comments

Comments
 (0)