Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions .github/workflows/qwen-autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ on:
issues:
types:
- 'labeled'
- 'assigned'
pull_request_review:
types:
- 'submitted'
Expand Down Expand Up @@ -88,6 +89,9 @@ jobs:
${{ github.repository == 'QwenLM/qwen-code' }}
runs-on: 'ubuntu-latest'
timeout-minutes: 5
concurrency:
group: 'qwen-autofix-route'
cancel-in-progress: true
permissions:
contents: 'read'
outputs:
Expand Down Expand Up @@ -115,6 +119,7 @@ jobs:
AUTOFIX_APPROVED_LABEL: 'autofix/approved'
REPO: '${{ github.repository }}'
SENDER_LOGIN: '${{ github.event.sender.login }}'
ASSIGNEE_LOGIN: '${{ github.event.assignee.login }}'
SCHEDULE: '${{ github.event.schedule }}'
PR_AUTHOR: '${{ github.event.pull_request.user.login }}'
PR_NUMBER_EVENT: '${{ github.event.pull_request.number }}'
Expand Down Expand Up @@ -196,8 +201,15 @@ jobs:
fi
if [[ "${EVENT_NAME}" == 'issues' ]]; then
DO_REVIEW=false
label_is_trigger=false
[[ "${ISSUE_LABEL}" == "${READY_FOR_AGENT_LABEL}" || "${ISSUE_LABEL}" == "${BUG_LABEL}" || "${ISSUE_LABEL}" == "${AUTOFIX_APPROVED_LABEL}" ]] && label_is_trigger=true
# Assigned to the autofix bot → issue phase directly (bypasses
# label gates; the assignee itself is the trust signal).
if [[ "${ASSIGNEE_LOGIN}" == "${AUTOFIX_BOT}" && "${ISSUE_STATE}" == 'open' ]]; then
DO_ISSUE=true
ROUTE_ISSUE="${ISSUE_NUMBER}"
echo "🧭 issue #${ISSUE_NUMBER} assigned to ${AUTOFIX_BOT} → issue phase"
else
label_is_trigger=false
[[ "${ISSUE_LABEL}" == "${READY_FOR_AGENT_LABEL}" || "${ISSUE_LABEL}" == "${BUG_LABEL}" || "${ISSUE_LABEL}" == "${AUTOFIX_APPROVED_LABEL}" ]] && label_is_trigger=true
if [[ "${label_is_trigger}" != 'true' ]]; then
echo "🧭 issue event ignored: trigger_label=false label='${ISSUE_LABEL:-n/a}' issue='#${ISSUE_NUMBER:-n/a}'"
else
Expand Down Expand Up @@ -226,6 +238,7 @@ jobs:
fi
fi
fi
fi
;;
esac
# Forcing a specific issue/PR implies running that phase only for
Expand Down Expand Up @@ -259,7 +272,7 @@ jobs:
runs-on: 'ubuntu-latest'
timeout-minutes: 180
concurrency:
group: 'qwen-autofix-issue'
group: 'qwen-autofix-issue-${{ needs.route.outputs.issue_number || github.run_id }}'
cancel-in-progress: false
permissions:
contents: 'read'
Expand Down
Loading