Skip to content

Commit

Permalink
never block pull_request_target labeling event (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
fuxingloh authored May 8, 2021
1 parent 0273252 commit b9af741
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion __tests__/rules/ignore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ describe('pull_request_target', () => {

it('should ignore opened if Bot', async () => {
set('pull_request_target', 'opened', 'Bot')
await expectIgnore(false)
await expectIgnore(true)
})

it('should ignore locked', async () => {
Expand Down
2 changes: 1 addition & 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.

2 changes: 1 addition & 1 deletion src/rules/ignore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default async function (): Promise<boolean> {
return true
}

if (is('pull_request_target', ['opened'])) {
if (is('pull_request_target', ['labeled'])) {
return false
}

Expand Down

0 comments on commit b9af741

Please sign in to comment.