Skip to content

Commit 08f89b4

Browse files
committed
Add quotes around title in search query
Without quotes, some queries find more than 100 results, but only the first 100 are returned. This can lead to matching issues titles not being found even when they exist.
1 parent 638725f commit 08f89b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export async function createAnIssue (tools: Toolkit) {
6262
if (updateExisting !== null) {
6363
tools.log.info(`Fetching issues with title "${templated.title}"`)
6464

65-
let query = `is:issue repo:${process.env.GITHUB_REPOSITORY} in:title ${templated.title}`
65+
let query = `is:issue repo:${process.env.GITHUB_REPOSITORY} in:title '${templated.title}'`
6666

6767
const searchExistingType = tools.inputs.search_existing || 'open'
6868
const allowedStates = ['open', 'closed']

0 commit comments

Comments
 (0)