Skip to content

ci: allow dispatching workflow triage via label - #20042

Merged
johnstcn merged 10 commits into
mainfrom
cj/traiage-label
Oct 1, 2025
Merged

johnstcn merged 10 commits into
mainfrom
cj/traiage-label

Conversation

@johnstcn

@johnstcn johnstcn commented Sep 30, 2025 •

Copy link
Copy Markdown
Member

Allows creating a task for an issue if a label 'traiage' is set.
Requires membership of the coder org to run.

Manual workflow_dispatch: https://github.com/coder/coder/actions/runs/18158719999/job/51684512634

@johnstcn johnstcn self-assigned this Sep 30, 2025
@johnstcn
johnstcn requested a review from Copilot September 30, 2025 15:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds the ability to trigger the AI triage workflow automatically when an issue is labeled with 'traiage', expanding beyond the existing manual workflow dispatch trigger. The changes introduce user permission checks, automatic GitHub issue commenting, and improved task status monitoring.

  • Adds automatic triggering when issues are labeled with 'traiage'
  • Implements user permission validation requiring write access
  • Adds automatic commenting on GitHub issues when tasks are created

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread .github/workflows/traiage.yaml Resolved
Comment thread .github/workflows/traiage.yaml Resolved
Comment thread .github/workflows/traiage.yaml Resolved
Comment thread .github/workflows/traiage.yaml Resolved
Comment thread .github/workflows/traiage.yaml Resolved
if: inputs.cleanup
env:
BUCKET_PREFIX: "gs://coder-traiage-outputs/traiage"
CODER_USERNAME: ${{ steps.get-coder-username.outputs.coder_username }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts about echoing into the env file rather than pulling from output?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm mostly indifferent, but I think explicitly pulling from output makes it easier to see the dependency chain between the steps. If you just dump everything into GITHUB_ENV it's easier to mix up the order imo.

@dannykopping dannykopping left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

</stamp>

@johnstcn
johnstcn merged commit 98262d8 into main Oct 1, 2025
@johnstcn
johnstcn deleted the cj/traiage-label branch October 1, 2025 12:38
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants