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:
3
.github/workflows/scripts/pr-filter.js
vendored
3
.github/workflows/scripts/pr-filter.js
vendored
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user