Skip to content

Move issue triage to triagebot-action#17114

Merged
matthewp merged 7 commits into
mainfrom
triagebot-action
Jun 23, 2026
Merged

Move issue triage to triagebot-action#17114
matthewp merged 7 commits into
mainfrom
triagebot-action

Conversation

@matthewp

@matthewp matthewp commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Changes

I moved the code for issue triage over to https://github.com/withastro/triagebot-action so that:

  • Easier to test in isolation, don't have to "merge and pray" like we do now when making changes.
  • Potentially use triage in other projects, although no plans to add it yet.

Additionally I took the opportunity to make it into a full state machine, there are no more unknown states and the triage bot can recover from, for example, the reporter saying that the issue isn't fixed by the pending fix.

Also standardized the label names for consistency with triage: {name} format.

This PR removes the Flue code which now lives there, and uses the action.

Testing

  • The action has its own unit tests (27 passing) covering the FSM router and label management.

Docs

  • No docs update needed. This is an internal CI automation change.

Replace three separate workflows and two Flue orchestration files
with a single workflow that uses withastro/triagebot-action@v0.2.0.

The action handles the full triage lifecycle internally:
- Triage pipeline (reproduce, diagnose, verify, fix)
- Fix verification (comment classification, PR creation)
- Re-triage (new comment evaluation, label swap)
- Branch cleanup on issue close

Label names updated to use triage: prefix for the new FSM.
@changeset-bot

changeset-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: bc51ed7

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets
Name Type
astro Patch
@test/astro-client-only-pkg Patch
@test/before-hydration Patch
@test/build-assets Patch
@test/css-order-dynamic-import Patch
@test/css-order-import Patch
@test/css-order-layout Patch
@test/css-order Patch
@test/dont-delete-me Patch
@test/lazy-layout Patch
@test/multiple-jsx-renderers Patch
@test/multiple-renderers Patch
@test/prerender-conflict-dynamic-dynamic Patch
@test/prerender-conflict-static-dynamic Patch
@test/react-and-solid Patch
@test/reexport-astro-containing-client-component Patch
create-astro Patch
@test/create-astro-not-empty Patch
@astrojs/alpinejs Patch
@astrojs/cloudflare Patch
@astrojs/markdoc Patch
@astrojs/mdx Patch
@test/mdx-images Patch
@test/mdx-infinite-loop Patch
@test/mdx-namespace Patch
@test/mdx-optimize Patch
@test/mdx-page Patch
@test/mdx-plus-react-errors Patch
@test/mdx-plus-react Patch
@test/mdx-env-variables Patch
@astrojs/netlify Patch
image-missing-dimention Patch
@astrojs/node Patch
@astrojs/preact Patch
@astrojs/react Patch
@fixture/react-19-preloads Patch
@astrojs/solid-js Patch
@astrojs/svelte Patch
@astrojs/vercel Patch
@astrojs/vue Patch
astro-language-server-test Patch
language-server-tests Patch
@astrojs/markdown-satteri Patch

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added the 🚨 action Modifies GitHub Actions label Jun 17, 2026
Only GITHUB_TOKEN_BASE and gitPush are still used by the merge
workflows. The rest were only used by the triage/verification
workflows that are now handled by triagebot-action.
@matthewp matthewp marked this pull request as draft June 17, 2026 19:04
@matthewp matthewp changed the title Switch issue triage to triagebot-action Move issue triage to triagebot-action Jun 17, 2026
@matthewp matthewp marked this pull request as ready for review June 17, 2026 19:30

@trueberryless trueberryless 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.

I really like this idea. Makes it also possible to use the new action in other repos in the ecosystem.

I left two little thoughts.

gh issue comment "$ISSUE_NUMBER" --repo "$REPO" --body "Hello @${{ github.event.issue.user.login }}. Please provide a [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) using a GitHub repository or [StackBlitz](https://astro.new/repro). Issues marked with `needs repro` will be closed if they have no activity within 3 days."

gh issue edit "$ISSUE_NUMBER" --repo "$REPO" --remove-label "needs triage"
gh issue edit "$ISSUE_NUMBER" --repo "$REPO" --remove-label "triage: needs triage"

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.

double triage in one label feels redundant. How about triage: needed?

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.

Ah, nvm, I see there is triage: needs repro as well...
Let's keep it that way then 👍

Comment thread .github/workflows/issue-triage.yml

@trueberryless trueberryless 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.

Nice, LGTM 🥳

I think both failing e2e tests are unrelated. Might be flaky or just need to upgrade this branch with changes from main (not sure which commit might have affected prefetch logic/tests)

@matthewp matthewp merged commit b2a2cb5 into main Jun 23, 2026
41 of 42 checks passed
@matthewp matthewp deleted the triagebot-action branch June 23, 2026 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🚨 action Modifies GitHub Actions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants