Repository navigation
gardener: start fixes automatically for high-impact, low-cost issues; upgrade to 0.1.21 #285
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 all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
428c90d
Triage starts fix on high-impact, cheap issues; fix announces its pul…
scuffi 49453f7
Upgrade Gardener to 0.1.21
scuffi d63b474
fix and fix-ready allow 10 runs per author a day, matching triage
scuffi e62c00e
fix starts fix-blocked when it opens no pull request, so the team hea…
scuffi 6f6b323
fix-blocked matches only this issue's fix branches; triage names both…
scuffi 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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| --- | ||
| schema: gardener.task/v1 | ||
| id: fix-blocked | ||
| name: Fix blocked | ||
| description: Tells the team's chat when Gardener's fix task couldn't complete a fix for an issue. | ||
| model: anthropic/claude-sonnet-5-5 | ||
| triggers: | ||
| - event: github.workflow_dispatch | ||
| subject: issue | ||
| tools: | ||
| - provider.api.read | ||
| effects: | ||
| - message.send | ||
| network: | ||
| default: deny | ||
| allow: [] | ||
| deny: [] | ||
| limits: | ||
| runtime-seconds: 180 | ||
| max-turns: 8 | ||
| max-tool-calls: 8 | ||
| input-tokens: 100000 | ||
| output-tokens: 8000 | ||
| runs-per-author: 10/day | ||
| --- | ||
|
|
||
| Gardener's fix task couldn't complete a fix for the issue that started this run. Check with | ||
| `provider.api.read`: the issue must be open, and no open pull request may have the head branch | ||
| `gardener/issue-<number>` or `gardener/issue-<number>-<n>` (another issue's branch, such as | ||
| `gardener/issue-<number>3`, doesn't count). If either check fails, send nothing. | ||
|
|
||
| Otherwise post it to the team's chat with `message.send`. The fix task's last comment on the issue | ||
| says why it stopped. Its summary is one lower-case line of plain text, under about 200 characters, | ||
| saying the automatic fix couldn't be completed, why in a few words, and that it needs a maintainer. | ||
| Don't restate the title. Its expected version is the issue's `updatedAt`. | ||
|
|
||
| Then finish. |
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 |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| --- | ||
| schema: gardener.task/v1 | ||
| id: fix-ready | ||
| name: Fix ready | ||
| description: Tells the team's chat when Gardener's fix task has opened a pull request. | ||
| model: anthropic/claude-sonnet-5-5 | ||
| triggers: | ||
| - event: github.workflow_dispatch | ||
| subject: pull_request | ||
| tools: | ||
| - provider.api.read | ||
| effects: | ||
| - message.send | ||
| network: | ||
| default: deny | ||
| allow: [] | ||
| deny: [] | ||
| limits: | ||
| runtime-seconds: 180 | ||
| max-turns: 8 | ||
| max-tool-calls: 8 | ||
| input-tokens: 100000 | ||
| output-tokens: 8000 | ||
| runs-per-author: 10/day | ||
| --- | ||
|
|
||
| Gardener's fix task opened the pull request that started this run. Check it with | ||
| `provider.api.read`: it must be open and its head branch must start with `gardener/issue-`. If it | ||
| isn't, send nothing. | ||
|
|
||
| Otherwise post it to the team's chat with `message.send`. Its summary is one lower-case line of | ||
| plain text, under about 200 characters, saying what it fixes and that it's ready for review. Don't | ||
| restate the title. Its expected version is the pull request's `updatedAt`. | ||
|
|
||
| Then finish. |
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
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 |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # Generated by Gardener. Do not edit. | ||
| # | ||
| # Source: .gardener/tasks/fix-blocked/TASK.md | ||
| # Task: fix-blocked | ||
| # Bundle: sha256:366ee9203a0dd6099fcb58fedc997b96a7a774048d937d121e14a0b1e13972ff | ||
| # Regenerate: gardener generate | ||
| # Do not edit this workflow directly. | ||
| name: "Gardener · Fix blocked" | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| prompt: | ||
| description: Extra instructions for this run. Optional, up to 20000 characters. | ||
| required: false | ||
| type: string | ||
| issue: | ||
| description: Issue number to run against. Optional. | ||
| required: false | ||
| type: string | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| gardener: | ||
| if: >- | ||
| ${{ | ||
| github.event_name == 'workflow_dispatch' | ||
| }} | ||
| permissions: | ||
| checks: read | ||
| contents: read | ||
| discussions: read | ||
| id-token: write | ||
| issues: read | ||
| pull-requests: read | ||
| statuses: read | ||
| uses: scuffi/gardener/.github/workflows/gardener-task.yml@cc58329877208742b061f3c570d632be824aaf1e | ||
| with: | ||
| runtime-url: ${{ vars.GARDENER_RUNTIME_URL }} | ||
| task-id: "fix-blocked" | ||
| task-name: "Fix blocked" | ||
| task-source: ".gardener/tasks/fix-blocked/TASK.md" | ||
| task-bundle-hash: 366ee9203a0dd6099fcb58fedc997b96a7a774048d937d121e14a0b1e13972ff | ||
| plan-timeout-minutes: 13 | ||
| secrets: | ||
| chat-webhook: ${{ secrets.GARDENER_CHAT_WEBHOOK }} |
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 |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| # Generated by Gardener. Do not edit. | ||
| # | ||
| # Source: .gardener/tasks/fix-ready/TASK.md | ||
| # Task: fix-ready | ||
| # Bundle: sha256:08095ec5d11f64cca892ab77a39ab27bf905ae70399be0f01ee1661e8453ad98 | ||
| # Regenerate: gardener generate | ||
| # Do not edit this workflow directly. | ||
| name: "Gardener · Fix ready" | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| prompt: | ||
| description: Extra instructions for this run. Optional, up to 20000 characters. | ||
| required: false | ||
| type: string | ||
| pull_request: | ||
| description: Pull request number to run against. Optional. | ||
| required: false | ||
| type: string | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
| gardener: | ||
| if: >- | ||
| ${{ | ||
| github.event_name == 'workflow_dispatch' | ||
| }} | ||
| permissions: | ||
| checks: read | ||
| contents: read | ||
| discussions: read | ||
| id-token: write | ||
| issues: read | ||
| pull-requests: read | ||
| statuses: read | ||
| uses: scuffi/gardener/.github/workflows/gardener-task.yml@cc58329877208742b061f3c570d632be824aaf1e | ||
| with: | ||
| runtime-url: ${{ vars.GARDENER_RUNTIME_URL }} | ||
| task-id: "fix-ready" | ||
| task-name: "Fix ready" | ||
| task-source: ".gardener/tasks/fix-ready/TASK.md" | ||
| task-bundle-hash: 08095ec5d11f64cca892ab77a39ab27bf905ae70399be0f01ee1661e8453ad98 | ||
| plan-timeout-minutes: 13 | ||
| secrets: | ||
| chat-webhook: ${{ secrets.GARDENER_CHAT_WEBHOOK }} |
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
Oops, something went wrong.
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.