1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 21:53:26 +00:00

ci: reduce unnecessary pr-filter runs (#2033)

- Checking the repository of the PR is more effective than checking the label to identify bot-initiated PRs
- This change also allows more flexible PR body definitions for developers with write access to the repository
This commit is contained in:
Cotes Chung
2024-11-08 22:35:18 +08:00
committed by GitHub
parent 2f844978aa
commit d51345e297
2 changed files with 2 additions and 2 deletions

View File

@@ -16,8 +16,7 @@ module.exports = async ({ github, context, core }) => {
const action = context.payload.action;
const isValid =
pr.labels.length > 0 || // PR create by Dependabot would have labels
(markdown !== '' && hasTypes(markdown) && hasDescription(markdown));
markdown !== '' && hasTypes(markdown) && hasDescription(markdown);
if (!isValid) {
await github.rest.pulls.update({