Add automated PR review workflow for PRs filed in the last 3 days#22629
Draft
Add automated PR review workflow for PRs filed in the last 3 days#22629
Conversation
Collaborator
|
/azp run |
|
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
Co-authored-by: StormLiangMS <[email protected]>
Copilot
AI
changed the title
[WIP] Review and comment on recent pull requests
Add automated PR review workflow for PRs filed in the last 3 days
Feb 26, 2026
Collaborator
|
/azp run |
|
Azure Pipelines could not run because the pipeline triggers exclude this branch/path. |
Comment on lines
+152
to
+153
| "The PR description looks complete. Thank you for filling in all the " | ||
| "required sections! :tada:", |
Comment on lines
+163
to
+164
| "Hi! The automated PR review found the following items that need " | ||
| "attention:", |
Comment on lines
+168
to
+169
| "Please update the PR description to address these points so that " | ||
| "reviewers have all the context they need.", |
Comment on lines
+171
to
+173
| "> *This comment was generated automatically by the PR review bot. " | ||
| "If you believe this is a false positive, please update the description " | ||
| "or ignore this comment.*", |
| # --------------------------------------------------------------------------- | ||
|
|
||
| # Checklist items that indicate an unchecked checkbox in markdown | ||
| _UNCHECKED_RE = re.compile(r"^\s*-\s*\[\s*\]", re.MULTILINE) |
yxieca
approved these changes
Feb 27, 2026
Collaborator
yxieca
left a comment
There was a problem hiding this comment.
AI agent on behalf of Ying: Reviewed. The workflow/script look reasonable for template enforcement and are idempotent. No issues spotted.
yxieca
approved these changes
Feb 28, 2026
Collaborator
yxieca
left a comment
There was a problem hiding this comment.
Looks good. AI agent on behalf of Ying.
yxieca
approved these changes
Feb 28, 2026
Collaborator
yxieca
left a comment
There was a problem hiding this comment.
LGTM. AI agent on behalf of Ying.
yxieca
approved these changes
Mar 1, 2026
Collaborator
yxieca
left a comment
There was a problem hiding this comment.
Approved (AI agent on behalf of Ying). Workflow and script look reasonable for automated PR-template checks; permissions scoped to PRs/issues and idempotent comment marker used.
kazinator-arista
pushed a commit
to kazinator-arista/sonic-mgmt
that referenced
this pull request
Mar 4, 2026
…lly (sonic-net#22629) src/sonic-swss * 43529026 - (HEAD -> 202405, origin/202405) [202405] Setting default nexthop weight to 1 in `fpmsyncd` (sonic-net#3648) (7 hours
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.
No mechanism existed to automatically flag incomplete PR descriptions for recently opened PRs against the repository template.
Changes
.github/workflows/pr_auto_review.ymlworkflow_dispatch)days_backinput (default:3) to control the review windowpull-requests: write+issues: writepermissions viaGITHUB_TOKEN.github/scripts/pr_auto_review.py### Description of PR— non-empty, placeholder text replaced### Type of change— at least one[x]checked#### What is the motivation for this PR?— has content#### How did you do it?— has content#### How did you verify/test it?— has content<!-- pr-auto-review-bot -->marker and skips already-reviewed PRs💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.