Enable agentic reviewer workflows in drasi-server#93
Open
ruokun-niu wants to merge 1 commit intomainfrom
Open
Conversation
Signed-off-by: ruokun-niu <ruokunniu@gmail.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Actions workflow that lets maintainers trigger centralized, label-driven PR reviewer workflows hosted in drasi-project/.github. In this codebase, it introduces the automation glue for cross-repo reviewer dispatch without changing application runtime behavior.
Changes:
- Adds
.github/workflows/pr-reviewers.ymlto listen forreview:*labels on PRs. - Maps each supported label to one or more centralized locked reviewer workflows.
- Dispatches those reviewer workflows via
gh workflow run, passing the current PR URL.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+31
to
+43
| pull_request_target: | ||
| types: [labeled] | ||
|
|
||
| permissions: {} | ||
|
|
||
| env: | ||
| REVIEWER_REPO: drasi-project/.github | ||
| REVIEWER_REF: main | ||
|
|
||
| jobs: | ||
| dispatch: | ||
| runs-on: ubuntu-latest | ||
| if: startsWith(github.event.label.name, 'review:') |
Comment on lines
+68
to
+78
| run: | | ||
| if [ -z "$GH_TOKEN" ]; then | ||
| echo "::error::ORG_DISPATCH_TOKEN is not set or not accessible to this repository." | ||
| exit 1 | ||
| fi | ||
| for wf in ${{ steps.reviewers.outputs.workflows }}; do | ||
| echo "Dispatching $wf for $PR_URL" | ||
| gh workflow run "$wf" \ | ||
| --repo "$REVIEWER_REPO" \ | ||
| --ref "$REVIEWER_REF" \ | ||
| -f pr_url="$PR_URL" |
agentofreality
approved these changes
May 6, 2026
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.
Description
Adds
.github/workflows/pr-reviewers.yml, a label-driven caller workflowthat dispatches the centralized Drasi agentic PR reviewers hosted in
drasi-project/.github.When a PR is labeled with one of:
review:correctnessreview:securityreview:designreview:docsreview:testingreview:prior-artreview:all(runs all six)the workflow invokes the corresponding
pr-*-reviewer.lock.ymlindrasi-project/.githubviagh workflow run(cross-repoworkflow_dispatch). Each reviewer executes in the.githubrepocontext, fetches the PR, and posts its review back as a comment on
this PR.
For reference, here is a test PR: drasi-project/drasi-core#429
Type of change
Fixes: #issue_number