Skip to content

Commit

Permalink
Ignore draft pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Zharktas committed Apr 8, 2024
1 parent 3978a85 commit e69df6c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ export async function run(): Promise<void> {

if (pr['user'] && !ignored_users_list.includes(pr['user']['login'])) {
parsedPr['user'] = pr['user']['login']
parsedPrList.push(parsedPr)
if (!pr['draft']) {
parsedPrList.push(parsedPr)
}
}
}

Expand Down

0 comments on commit e69df6c

Please sign in to comment.