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
12 changes: 2 additions & 10 deletions .github/workflows/issue-autosolve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
auto-solve-issue:
runs-on: [self-hosted, ubuntu_2404]
timeout-minutes: 180
if: github.event.label.name == 'c-autosolve'
if: github.event.label.name == 'autosolve' || github.event.label.name == 'c-autosolve'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

TIL labels are not case-senstive.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

You and Claude Code. I have to tell Claude this periodically because it forgets and writes case insensitive code.

permissions:
contents: write
pull-requests: write
Expand Down Expand Up @@ -469,7 +469,7 @@ jobs:
if: steps.push.conclusion == 'success'
env:
GH_TOKEN: ${{ secrets.AUTOSOLVER_CREATE_PRS_PAT }}
# The user who added the c-autosolve label, passed via env to avoid injection.
# The user who added the autosolve label, passed via env to avoid injection.
TRIGGER_USER: ${{ github.event.sender.login }}
run: |
# For single-commit PRs, the PR title matches the commit subject
Expand Down Expand Up @@ -568,14 +568,6 @@ jobs:

[Workflow run](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})"

- name: Remove c-autosolve label
# Only remove label after assessment has run (success or failure).
# This allows retrying if the workflow fails before assessment completes.
if: always() && (steps.assess.conclusion == 'success' || steps.assess.conclusion == 'failure')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh issue edit ${{ github.event.issue.number }} --remove-label "c-autosolve" || true

- name: Cleanup credentials and keys
if: always()
Expand Down
Loading