Skip to content

1. create an AI triage workflow for issues and PRs.#220

Open
Gujiawei-Edinburgh wants to merge 1 commit intoapache:mainfrom
Gujiawei-Edinburgh:feat-ai-triage
Open

1. create an AI triage workflow for issues and PRs.#220
Gujiawei-Edinburgh wants to merge 1 commit intoapache:mainfrom
Gujiawei-Edinburgh:feat-ai-triage

Conversation

@Gujiawei-Edinburgh
Copy link
Contributor

@Gujiawei-Edinburgh Gujiawei-Edinburgh commented Jan 16, 2026

Summary

This PR adds an AI-assisted triage workflow for GitHub Issues and PRs to help identify low-signal / low-quality submissions early and apply consistent triage labels.

How it works

  • Triggered on issues and pull_request_target (opened, edited, reopened)

  • Reads the issue / PR title and body from the GitHub event payload

  • Calls an LLM service to classify:

    • how actionable the content is
    • whether it looks low-signal or AI-generated
  • If the AI call fails, falls back to simple heuristics (missing repro, version, logs, etc.)

Labeling policy

Based on model scores and thresholds:

  • Low-signaltriage:needs-info, triage:low-signal
  • Likely AI-generatedtriage:suspected-ai (+ triage:needs-info)
  • Only missing labels are added (no relabel churn)

Commenting policy

  • Issues: may add a short, friendly checklist comment asking for missing info
  • Pull Requests: labels only, no automated comments (reviewers handle discussion)

Safety

  • Limits input size sent to the model
  • Limit concurrency for actions

@coveralls
Copy link

Pull Request Test Coverage Report for Build 21054923469

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 39 unchanged lines in 9 files lost coverage.
  • Overall coverage increased (+0.09%) to 65.193%

Files with Coverage Reduction New Missed Lines %
org/apache/bifromq/demo/plugin/WebHookBasedResourceThrottler.java 1 77.78%
org/apache/bifromq/basekv/raft/exception/LeaderTransferException.java 3 81.25%
org/apache/bifromq/basekv/raft/RaftNodeStateFollower.java 3 84.36%
org/apache/bifromq/dist/trie/NTopicFilterTrieNode.java 3 88.24%
org/apache/bifromq/basekv/raft/RaftNodeStateLeader.java 4 86.18%
org/apache/bifromq/inbox/store/InboxStoreCleaner.java 4 85.05%
org/apache/bifromq/dist/trie/TopicFilterIterator.java 5 69.96%
org/apache/bifromq/basekv/store/range/KVRangeFSM.java 7 81.65%
org/apache/bifromq/inbox/store/InboxStoreCoProc.java 9 79.14%
Totals Coverage Status
Change from base Build 20942435457: 0.09%
Covered Lines: 27878
Relevant Lines: 41280

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants