mirror of
https://github.com/iv-org/close-potential-duplicates.git
synced 2024-11-23 05:49:44 +00:00
fix: 🐛 Exclude pull requests searching for duplicates (#19)
This commit is contained in:
parent
fdb4af2078
commit
eebe64d1f2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user