fix: 🐛 Exclude pull requests searching for duplicates (#19)

This commit is contained in:
Álvaro Mondéjar 2021-12-02 10:02:50 +01:00 committed by GitHub
parent fdb4af2078
commit eebe64d1f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,9 @@ export namespace Action {
})
const { title } = payload
const issues = response.data.filter((i) => i.number !== payload.number)
const issues = response.data.filter(
(i) => i.number !== payload.number && i.pull_request === undefined,
)
const threshold = parseFloat(core.getInput('threshold'))
// eslint-disable-next-line no-restricted-syntax