diff --git a/.github/workflows/issue-monster.lock.yml b/.github/workflows/issue-monster.lock.yml index 29f4bfbb19..00675dd1e9 100644 --- a/.github/workflows/issue-monster.lock.yml +++ b/.github/workflows/issue-monster.lock.yml @@ -1409,8 +1409,8 @@ jobs: 'security' ]; - // Search for open issues without excluded labels - const query = `is:issue is:open repo:${owner}/${repo} -label:"${excludeLabels.join('" -label:"')}"`; + // Search for open issues without excluded labels and without assignees + const query = `is:issue is:open no:assignee repo:${owner}/${repo} -label:"${excludeLabels.join('" -label:"')}"`; core.info(`Searching: ${query}`); const response = await github.rest.search.issuesAndPullRequests({ q: query, diff --git a/.github/workflows/issue-monster.md b/.github/workflows/issue-monster.md index e85115c54e..c0e7ad7b69 100644 --- a/.github/workflows/issue-monster.md +++ b/.github/workflows/issue-monster.md @@ -74,8 +74,8 @@ jobs: 'security' ]; - // Search for open issues without excluded labels - const query = `is:issue is:open repo:${owner}/${repo} -label:"${excludeLabels.join('" -label:"')}"`; + // Search for open issues without excluded labels and without assignees + const query = `is:issue is:open no:assignee repo:${owner}/${repo} -label:"${excludeLabels.join('" -label:"')}"`; core.info(`Searching: ${query}`); const response = await github.rest.search.issuesAndPullRequests({ q: query,