Repository navigation
fix(ci): fix triage prompt variable expansion, bot identity, and model secret #4778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c3e079d
fix(ci): fix triage prompt variable expansion, bot token, and model s…
yiliang114 81a4f26
refactor(ci): remove unused TARGET_NUMBER env var from triage workflow
yiliang114 cb49e30
fix(ci): use vars.QWEN_PR_REVIEW_MODEL (not secrets) and document sta…
yiliang114 61661a1
fix(ci): move startsWith comment outside if expression block
yiliang114 268513a
fix(ci): add GH_TOKEN env to triage workflow for gh CLI auth
yiliang114 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,8 +34,7 @@ jobs: | |
| github.event_name == 'pull_request_target' || | ||
| github.event_name == 'workflow_dispatch' || | ||
| (github.event_name == 'issue_comment' && | ||
| contains(github.event.comment.body, '@qwen-code /triage') && | ||
| github.event.comment.user.login != 'github-actions[bot]' && | ||
| startsWith(github.event.comment.body, '@qwen-code /triage') && | ||
|
yiliang114 marked this conversation as resolved.
Resolved
|
||
| (github.event.comment.author_association == 'OWNER' || | ||
| github.event.comment.author_association == 'MEMBER' || | ||
| github.event.comment.author_association == 'COLLABORATOR')) | ||
|
|
@@ -60,13 +59,13 @@ jobs: | |
| - name: 'Run Qwen Triage' | ||
| uses: 'QwenLM/qwen-code-action@5fd6818d04d64e87d255ee4d5f77995e32fbf4c2' | ||
| env: | ||
| GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | ||
| GITHUB_TOKEN: '${{ secrets.QWEN_CODE_BOT_TOKEN || secrets.CI_BOT_PAT }}' | ||
|
yiliang114 marked this conversation as resolved.
Resolved
|
||
| TARGET_NUMBER: '${{ steps.resolve.outputs.number }}' | ||
|
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Both |
||
| REPOSITORY: '${{ github.repository }}' | ||
| with: | ||
| OPENAI_API_KEY: '${{ secrets.OPENAI_API_KEY }}' | ||
| OPENAI_BASE_URL: '${{ secrets.OPENAI_BASE_URL }}' | ||
| OPENAI_MODEL: '${{ secrets.OPENAI_MODEL }}' | ||
| OPENAI_MODEL: '${{ secrets.QWEN_PR_REVIEW_MODEL }}' | ||
|
yiliang114 marked this conversation as resolved.
Resolved
|
||
| settings_json: |- | ||
| { | ||
| "maxSessionTurns": 25, | ||
|
|
@@ -79,7 +78,7 @@ jobs: | |
| prompt: |- | ||
| You are a triage assistant for the QwenLM/qwen-code repository. | ||
|
|
||
| Run `/triage ${TARGET_NUMBER}` to triage this issue or PR. | ||
| Run `/triage ${{ steps.resolve.outputs.number }}` to triage this issue or PR. | ||
|
|
||
| Use the available shell commands (`gh`) to gather information and | ||
| execute the triage workflow. The triage skill is available at | ||
|
|
||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.