Skip to content

Commit

Permalink
build(deps): bump peter-evans/create-pull-request from 6.1.0 to 7.0.1 (
Browse files Browse the repository at this point in the history
…#235)

* build(deps): bump peter-evans/create-pull-request from 6.1.0 to 7.0.1

Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 6.1.0 to 7.0.1.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](peter-evans/create-pull-request@c5a7806...8867c4a)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* yarn build

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dsotirakis <[email protected]>
  • Loading branch information
dependabot[bot] and dsotirakis authored Sep 9, 2024
1 parent bc8f42d commit d6e6319
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-lint-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
run: |
git apply /tmp/diffs/git-diff-${{ github.sha }}/diff.txt
- name: Commit lint-pr-title changes and create new pull request
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
uses: peter-evans/create-pull-request@8867c4aba1b742c39f8d0ba35429c2dfa4b6cb20 # v7.0.1
with:
commit-message: "Update code on lint-pr-title action"
branch: "update-lint-pr-code"
Expand Down
19 changes: 9 additions & 10 deletions actions/lint-pr-title/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38888,7 +38888,7 @@ const headerCase = (parsed, when = 'always', value = []) => {
const headerFullStop = (parsed, when = 'always', value = '.') => {
const { header } = parsed;
const negated = when === 'never';
const hasStop = (header === null || header === void 0 ? void 0 : header[header.length - 1]) === value;
const hasStop = header?.[header.length - 1] === value;
return [
negated ? !hasStop : hasStop,
message(['header', negated ? 'may not' : 'must', 'end with full stop']),
Expand All @@ -38898,20 +38898,18 @@ const headerFullStop = (parsed, when = 'always', value = '.') => {
;// CONCATENATED MODULE: ./node_modules/@commitlint/rules/lib/header-max-length.js

const headerMaxLength = (parsed, _when = undefined, value = 0) => {
var _a;
return [
max_length(parsed.header, value),
`header must not be longer than ${value} characters, current length is ${(_a = parsed.header) === null || _a === void 0 ? void 0 : _a.length}`,
`header must not be longer than ${value} characters, current length is ${parsed.header?.length}`,
];
};
//# sourceMappingURL=header-max-length.js.map
;// CONCATENATED MODULE: ./node_modules/@commitlint/rules/lib/header-min-length.js

const headerMinLength = (parsed, _when = undefined, value = 0) => {
var _a;
return [
min_length(parsed.header, value),
`header must not be shorter than ${value} characters, current length is ${(_a = parsed.header) === null || _a === void 0 ? void 0 : _a.length}`,
`header must not be shorter than ${value} characters, current length is ${parsed.header?.length}`,
];
};
//# sourceMappingURL=header-min-length.js.map
Expand Down Expand Up @@ -39056,7 +39054,9 @@ const signedOffBy = (parsed, when = 'always', value = '') => {
Boolean(ln));
const last = lines[lines.length - 1];
const negated = when === 'never';
const hasSignedOffBy = last.startsWith(value);
const hasSignedOffBy =
// empty commit message
last ? last.startsWith(value) : false;
return [
negated ? !hasSignedOffBy : hasSignedOffBy,
message(['message', negated ? 'must not' : 'must', 'be signed off']),
Expand Down Expand Up @@ -39123,15 +39123,14 @@ const subjectEmpty = (parsed, when = 'always') => {
;// CONCATENATED MODULE: ./node_modules/@commitlint/rules/lib/subject-full-stop.js

const subjectFullStop = (parsed, when = 'always', value = '.') => {
var _a;
const colonIndex = ((_a = parsed.header) === null || _a === void 0 ? void 0 : _a.indexOf(':')) || 0;
const colonIndex = parsed.header?.indexOf(':') || 0;
if (colonIndex > 0 && colonIndex === parsed.header.length - 1) {
return [true];
}
const input = parsed.header;
const negated = when === 'never';
let hasStop = (input === null || input === void 0 ? void 0 : input[input.length - 1]) === value;
if ((input === null || input === void 0 ? void 0 : input.slice(-3)) === '...') {
let hasStop = input?.[input.length - 1] === value;
if (input?.slice(-3) === '...') {
hasStop = false;
}
return [
Expand Down
3 changes: 2 additions & 1 deletion actions/lint-pr-title/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
},
"devDependencies": {
"@vercel/ncc": "^0.38.1"
}
},
"packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
}

0 comments on commit d6e6319

Please sign in to comment.