ci: add issue triage workflow with manual dispatch - #1017
Closed
kraenhansen wants to merge 1 commit into
Closed
kraenhansen wants to merge 1 commit into
kraenhansen wants to merge 1 commit into
Conversation
Posts the issue number to a Cursor webhook when an issue is opened, or when run manually with an issue number, so an issue can be re-triaged without closing and reopening it. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Member
Author
|
Moving away from this approach. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New issues should reach Cursor for triage automatically, and it must be possible to re-run triage on an existing issue without closing and reopening it.
Merging this PR will:
issue_numberinput.Additional context intended for coding agents and bots
How the issue number is resolved
Both triggers feed one step.
github.event.issue.numberis set for theissuesevent and empty forworkflow_dispatch, so${{ github.event.issue.number || inputs.issue_number }}picks whichever is present. It is passed through a step-levelenvrather than interpolated directly into the shell script, which keeps workflow expressions out of the executed command.Secrets required
ISSUE_TRIAGE_CURSOR_WEBHOOK_URLISSUE_TRIAGE_CURSOR_WEBHOOK_AUTHORIZATION_HEADERBoth must exist at the repository or organization level. A manual run is the cheapest way to confirm they are configured.
Known rough edges
permissions:block is declared, so the job gets the repository default. The job never usesGITHUB_TOKEN, sopermissions: {}would be a safe tightening if the repo wants it.Test plan and verification
npx prettier --check .github/workflows/triage-issue.ymlpasses.{"issue_number": 1234}for a given issue number.workflow_dispatchrun against a real issue, once merged to the default branch. GitHub only offers the Run workflow button for workflows present on the default branch, so this cannot be exercised from the branch.🤖 Generated with Claude Code