Skip to content

Commit 848b766

Browse files
Update labelpr.yaml
add "dependencies" so that PRs from Dependabot will not have errors. Signed-off-by: chichun-charlie-liu <[email protected]>
1 parent dea5d56 commit 848b766

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/labelpr.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
github-token: ${{ secrets.GITHUB_TOKEN }}
1414
script: |
1515
// https://github.com/commitizen/conventional-commit-types
16-
const valid_pr_types = ['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'chore', 'revert'];
16+
const valid_pr_types = ['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'chore', 'revert', 'dependencies'];
1717
1818
1919
const title = context.payload.pull_request.title;
@@ -28,4 +28,4 @@ jobs:
2828
const labels = context.payload.pull_request.labels;
2929
const new_labels = labels.filter(label => !valid_pr_types.includes(label.name)); // keep all labels that are not in valid_pr_types
3030
new_labels.push({name: pr_type});
31-
await github.rest.issues.update({ ...context.repo, issue_number: context.payload.number, labels: new_labels });
31+
await github.rest.issues.update({ ...context.repo, issue_number: context.payload.number, labels: new_labels });

0 commit comments

Comments
 (0)