Use proper 'duplicate' state_reason for issue closures
- Update auto-close script to use state_reason: 'duplicate' instead of 'not_planned' - Simplify workflow detection logic to only check for duplicate state_reason - Remove fallback logic for backward compatibility - use modern GitHub API 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
04cace9ec0
commit
4a04589002
2 changed files with 4 additions and 8 deletions
|
|
@ -65,7 +65,7 @@ async function closeIssueAsDuplicate(
|
|||
'PATCH',
|
||||
{
|
||||
state: 'closed',
|
||||
state_reason: 'not_planned',
|
||||
state_reason: 'duplicate',
|
||||
labels: ['duplicate']
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue