Skip to content

Add agentic workflow issue-triage#10718

Merged
stnguyen90 merged 1 commit intomainfrom
add-workflow-workflows-issue-triage.md-5094
Oct 29, 2025
Merged

Add agentic workflow issue-triage#10718
stnguyen90 merged 1 commit intomainfrom
add-workflow-workflows-issue-triage.md-5094

Conversation

@stnguyen90
Copy link
Copy Markdown
Contributor

Add agentic workflow issue-triage

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Oct 28, 2025

📝 Walkthrough

Walkthrough

This pull request adds GitHub workflow automation configuration to the repository. It introduces a new automated issue triage workflow that processes newly opened or reopened issues, performs analysis using an agentic process, collects repository context, and applies labels and structured comments. Additionally, it updates .gitattributes to configure how lock files in the workflows directory are handled during version control operations.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

  • .github/workflows/issue-triage.md — New workflow file with multi-step agentic logic including issue analysis, context gathering, label selection, and comment generation; requires understanding of GitHub Actions capabilities and the specific agentic workflow syntax
  • .gitattributes configuration — Verify the glob pattern and merge strategy settings are appropriate for the intended lock file scope

Possibly related PRs

Suggested reviewers

  • eldadfux
  • EVDOG4LIFE

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title Check ✅ Passed The PR title "Add agentic workflow issue-triage" directly aligns with the main change in the changeset, which is the introduction of a new GitHub Actions workflow for automated issue triage at .github/workflows/issue-triage.md. The title is concise, clear, and specific enough that a teammate scanning the repository history would understand the primary addition. The supporting change to .gitattributes is a minor configuration detail that does not detract from this being an accurate summary of the primary focus.
Description Check ✅ Passed The PR description "Add agentic workflow issue-triage" is directly related to the changeset and accurately describes the main addition. While the description is minimal and reiterates the title, the evaluation criteria explicitly state that level of detail is not important for passing, only that the description be related to the changeset. The description clearly conveys what was added without being misleading or off-topic.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch add-workflow-workflows-issue-triage.md-5094

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
binutils 2.44-r2 CVE-2025-5244 HIGH
binutils 2.44-r2 CVE-2025-5245 HIGH
libxml2 2.13.8-r0 CVE-2025-49794 CRITICAL
libxml2 2.13.8-r0 CVE-2025-49796 CRITICAL
libxml2 2.13.8-r0 CVE-2025-49795 HIGH
libxml2 2.13.8-r0 CVE-2025-6021 HIGH
pcre2 10.43-r1 CVE-2025-58050 CRITICAL
golang.org/x/crypto v0.31.0 CVE-2025-22869 HIGH
golang.org/x/oauth2 v0.24.0 CVE-2025-22868 HIGH
stdlib 1.22.10 CVE-2025-47907 HIGH

Source Code Scan Results

🎉 No vulnerabilities found!

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (2)
.github/workflows/issue-triage.md (2)

32-32: Minor: Fix hyphenation in instruction text.

Use "one-sentence" (hyphenated) rather than "one sentence" for compound modifiers.

-2. Retrieve the issue content using the `get_issue` tool. If the issue is obviously spam, or generated by bot, or something else that is not an actual issue to be worked on, then add an issue comment to the issue with a one sentence analysis and exit the workflow.
+2. Retrieve the issue content using the `get_issue` tool. If the issue is obviously spam, or generated by bot, or something else that is not an actual issue to be worked on, then add an issue comment to the issue with a one-sentence analysis and exit the workflow.

78-78: Minor: Capitalize "Markdown" as proper noun.

"Markdown" is the proper name of the formatting language and should be capitalized.

-   - Use collapsed-by-default sections in the GitHub markdown to keep the comment tidy. Collapse all sections except the short main summary at the top.
+   - Use collapsed-by-default sections in the GitHub Markdown to keep the comment tidy. Collapse all sections except the short main summary at the top.
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6ded8dc and eec3d21.

📒 Files selected for processing (2)
  • .gitattributes (1 hunks)
  • .github/workflows/issue-triage.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
.github/workflows/issue-triage.md

[uncategorized] ~28-~28: The official name of this software platform is spelled with a capital “H”.
Context: ...ues. Your task is to analyze issue #${{ github.event.issue.number }} and perform some ...

(GITHUB)


[grammar] ~32-~32: Use a hyphen to join words.
Context: ...an issue comment to the issue with a one sentence analysis and exit the workflow....

(QB_NEW_EN_HYPHEN)


[uncategorized] ~78-~78: Did you mean the formatting language “Markdown” (= proper noun)?
Context: ...apsed-by-default sections in the GitHub markdown to keep the comment tidy. Collapse all ...

(MARKDOWN_NNP)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Setup & Build Appwrite Image
  • GitHub Check: scan
🔇 Additional comments (2)
.gitattributes (1)

9-9: LGTM!

The addition appropriately marks workflow lock files as generated and configures merge behavior for conflict resolution. This aligns with how auto-generated artifacts should be handled in version control.

.github/workflows/issue-triage.md (1)

5-5: Document the implications of the 30-day stop-after directive.

Line 5 comment indicates this workflow will automatically stop triggering after 30 days and require manual recompilation to resume. Ensure this is intentional and well-understood by the team, as it could lead to unexpected loss of functionality if overlooked during maintenance cycles.

Consider adding a team reminder or runbook documentation about recompiling this workflow before the 30-day window expires, or remove the directive if indefinite operation is preferred.

stop-after: +30d # workflow will no longer trigger after 30 days. Remove this and recompile to run indefinitely
reaction: eyes

permissions: read-all
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.

⚠️ Potential issue | 🟠 Major

Restrict permissions to only what's needed.

The workflow uses permissions: read-all, but based on the operations performed (adding labels and comments), it should require issues: write at minimum. read-all is overly broad and violates the principle of least privilege.

Consider updating to:

-permissions: read-all
+permissions:
+  issues: write
+  contents: read

This grants only the necessary permissions for labeling and commenting on issues while allowing read access to repository contents if needed for context gathering.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
permissions: read-all
permissions:
issues: write
contents: read
🤖 Prompt for AI Agents
In .github/workflows/issue-triage.md around line 8, the workflow currently sets
permissions: read-all which is too broad; replace it with a minimal permissions
block that grants only what’s needed (e.g., issues: write and contents: read if
repository content access is required) so the workflow can add labels and
comments without excessive privileges.

@github-actions
Copy link
Copy Markdown

✨ Benchmark results

  • Requests per second: 1,235
  • Requests with 200 status code: 222,280
  • P99 latency: 0.157155134

⚡ Benchmark Comparison

Metric This PR Latest version
RPS 1,235 1,218
200 222,280 219,210
P99 0.157155134 0.166424188

@stnguyen90 stnguyen90 requested a review from EVDOG4LIFE October 28, 2025 14:25
Copy link
Copy Markdown
Contributor

@EVDOG4LIFE EVDOG4LIFE left a comment

Choose a reason for hiding this comment

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

I'm down to see what this does out of the box. We'll likely need to customize the prompt so it's able to better triage issues with context on our processes.

@stnguyen90 stnguyen90 merged commit 37dfce0 into main Oct 29, 2025
42 checks passed
@stnguyen90 stnguyen90 deleted the add-workflow-workflows-issue-triage.md-5094 branch October 29, 2025 07:04
@coderabbitai coderabbitai bot mentioned this pull request Nov 3, 2025
2 tasks
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