Skip to content

Commit 8f1da92

Browse files
committed
fix: add plus symbol in Git ref regex
1 parent eff440b commit 8f1da92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { getInput, setFailed, setOutput } from '@actions/core'
22
import { exec as _exec } from '@actions/exec'
3-
import { getOctokit, context } from '@actions/github'
3+
import { context, getOctokit } from '@actions/github'
44

55
const src = __dirname
66

@@ -13,7 +13,7 @@ async function run() {
1313
const fetch = getInput('fetch')
1414
const octokit = new getOctokit(myToken)
1515
const { owner, repo } = context.repo
16-
const regexp = /^[.A-Za-z0-9_/-]*$/
16+
const regexp = /^[.A-Za-z0-9_/\-+]*$/
1717

1818
if (!headRef) {
1919
headRef = context.sha
@@ -45,7 +45,7 @@ async function run() {
4545
getChangelog(headRef, baseRef, owner + '/' + repo, reverse, fetch)
4646
} else {
4747
setFailed(
48-
'Branch names must contain only numbers, strings, underscores, periods, forward slashes, and dashes.'
48+
'Git ref names must contain only numbers, strings, underscores, periods, forward slashes, pluses, and dashes.'
4949
)
5050
}
5151
} catch (error) {

0 commit comments

Comments
 (0)