Skip to content

Commit

Permalink
feat: label update-please PRs as type deps (#71)
Browse files Browse the repository at this point in the history
it's a special type that release-please considers a candidate for
releases.
  • Loading branch information
aimeerivers authored Jul 9, 2024
1 parent 29c96f2 commit 24ed9c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .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|docs|feat|fix|perf|refactor|revert|style|test)(?:\((\S+)\))?(!)?: (.+)$/;
const regex = /^(build|chore|ci|deps|docs|feat|fix|perf|refactor|revert|style|test)(?:\((\S+)\))?(!)?: (.+)$/;
console.log(`Checking title "${TITLE}"`);
console.log("For more information: https://www.conventionalcommits.org/en/v1.0.0/");
Expand Down Expand Up @@ -45,6 +45,9 @@ runs:
else if (labels.includes("fix")) {
labels.push("patch");
}
else if (labels.includes("deps")) {
labels.push("patch");
}
if (TITLE.startsWith("chore(main): release")) {
labels.push("autorelease: pending");
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/approve-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ on:
description: PR title must match
required: true
options:
- "chore(deps): update dependencies"
- "deps: update dependencies"
action:
type: choice
description: Action to perform
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 @@ -92,7 +92,7 @@ jobs:
force: true
github-token: ${{ secrets.HEDIA_BOT_GITHUB_PAT }}
head: "update-please-${{ github.run_id }}"
title: "chore(deps): update dependencies"
title: "deps: update dependencies"

run-update-please:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 24ed9c2

Please sign in to comment.