Skip to content

Commit

Permalink
feat: Replace custom deps type by chore
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuVeber committed Dec 5, 2024
1 parent 2d471ba commit d65d1d7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
12 changes: 4 additions & 8 deletions .github/actions/set-labels/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ runs:
github-token: ${{ inputs.github-token }}
script: |
const { NUMBER, OWNER, REPO, TITLE } = process.env
const regex = /^(build|chore|ci|deps|docs|feat|fix|perf|refactor|revert|style|test)(?:\((\S+)\))?(!)?: (.+)$/;
const regex = /^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(?:\((\S+)\))?(!)?: (.+)$/;
const releaseRegex = /^chore\(\S*\): release/;
console.log(`Checking title "${TITLE}"`);
Expand Down Expand Up @@ -43,17 +43,13 @@ runs:
else if (labels.includes("feature")) {
labels.push("minor");
}
else if (labels.includes("fix")) {
labels.push("patch");
else if (releaseRegex.test(TITLE)) {
labels.push("autorelease: pending");
}
else if (labels.includes("deps")) {
else {
labels.push("patch");
}
if (releaseRegex.test(TITLE)) {
labels.push("autorelease: pending");
}
console.log(`@${OWNER}/${REPO}#${NUMBER}: Setting labels to ${labels}`);
await github.rest.issues.setLabels({
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/bulk-approve-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,11 @@ on:
type: choice
description: PR must have label
required: true
default: deps
default: chore
options:
- build
- chore
- ci
- deps
- docs
- style
- test
Expand All @@ -37,7 +36,7 @@ on:
description: PR title must match
required: true
options:
- "deps: update dependencies"
- "chore: Update dependencies"
action:
type: choice
description: Action to perform
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
release-type: node
token: ${{ secrets.HEDIA_BOT_GITHUB_PAT }}
default-branch: ${{ github.ref_name }}
changelog-types: '[{"type":"feat","section":"New Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"revert","section":"Reverted Changes","hidden":false},{"type":"perf","section":"Performance Improvements","hidden":false},{"type":"refactor","section":"Code Refactoring","hidden":false},{"type":"build","section":"Build Process","hidden":false},{"type":"ci","section":"CI/CD","hidden":false},{"type":"test","section":"Testing","hidden":false},{"type":"chore","section":"Chores","hidden":false},{"type":"deps","section":"Dependencies Update","hidden":false},{"type":"docs","section":"Documentation Updates","hidden":false},{"type":"style","section":"Pleasing Robots","hidden":false}]'
changelog-types: '[{"type":"feat","section":"New Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"revert","section":"Reverted Changes","hidden":false},{"type":"perf","section":"Performance Improvements","hidden":false},{"type":"refactor","section":"Code Refactoring","hidden":false},{"type":"build","section":"Build Process","hidden":false},{"type":"ci","section":"CI/CD","hidden":false},{"type":"test","section":"Testing","hidden":false},{"type":"chore","section":"Chores","hidden":false},{"type":"docs","section":"Documentation Updates","hidden":false},{"type":"style","section":"Pleasing Robots","hidden":false}]'

outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ jobs:
force: true
github-token: ${{ secrets.HEDIA_BOT_GITHUB_PAT }}
head: "update-please-${{ github.run_id }}"
title: "deps: Update dependencies"
title: "chore: Update dependencies"

0 comments on commit d65d1d7

Please sign in to comment.