-
Notifications
You must be signed in to change notification settings - Fork 0
Update flutter skill regularly #4
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
9 commits
Select commit
Hold shift + click to select a range
fb29790
Add workflow to update flutter skill regularly
code-schreiber 4e33647
fix: add .yml extension and contents:write permission
code-schreiber 101522c
fix: replace direct git push with PR-based workflow
code-schreiber c55a319
simplify: check for any git changes instead of specific paths
code-schreiber 863e668
rename opencode.yml to opencode-review.yml and create new opencode.yml
code-schreiber 9056a9a
Add workflow so OpenCode can read comments on PRs and Issues
code-schreiber d41902e
fix: correct YAML indentation in opencode.yml
code-schreiber af1a659
Renamed workflow file to skill-update.yml
opencode-agent[bot] cedf1b0
Change pull-requests permission from read to write
code-schreiber 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| name: opencode-review | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, ready_for_review] | ||
|
|
||
| jobs: | ||
| review: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| id-token: write | ||
| contents: read | ||
| pull-requests: write | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: anomalyco/opencode/github@latest | ||
| with: | ||
| model: opencode/big-pickle | ||
| share: false | ||
| prompt: | | ||
| Review this pull request: | ||
| - Check for code quality issues | ||
| - Look for potential bugs | ||
| - Suggest improvements |
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 |
|---|---|---|
| @@ -1,26 +1,28 @@ | ||
| name: opencode-review | ||
| name: opencode | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, ready_for_review] | ||
| issue_comment: | ||
| types: [created] | ||
| pull_request_review_comment: | ||
| types: [created] | ||
|
|
||
| jobs: | ||
| review: | ||
| opencode: | ||
| if: | | ||
| contains(github.event.comment.body, '/oc') || | ||
| contains(github.event.comment.body, '/opencode') | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| id-token: write | ||
| contents: read | ||
| pull-requests: read | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 1 | ||
| persist-credentials: false | ||
| - uses: anomalyco/opencode/github@latest | ||
|
|
||
| - name: Run OpenCode | ||
| uses: anomalyco/opencode/github@latest | ||
| with: | ||
| model: opencode/big-pickle | ||
| share: false | ||
| prompt: | | ||
| Review this pull request: | ||
| - Check for code quality issues | ||
| - Look for potential bugs | ||
| - Suggest improvements |
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,44 @@ | ||
| name: Skill Update | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 5 * * 1-5' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
|
code-schreiber marked this conversation as resolved.
|
||
| contents: write | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| update: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - name: Install official Flutter skills | ||
| run: npx skills add flutter/skills --skill '*' --agent universal | ||
|
|
||
| - name: Check for changes | ||
| id: check | ||
| run: | | ||
| if ! git diff --quiet HEAD; then | ||
| echo "changed=true" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "changed=false" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
|
||
| - name: Create Pull Request | ||
| if: steps.check.outputs.changed == 'true' | ||
| uses: peter-evans/create-pull-request@v7 | ||
| with: | ||
| commit-message: "chore: update opencode skills" | ||
| branch: "chore/update-skills" | ||
| title: "chore: update opencode skills" | ||
| body: | | ||
| Automated PR to review and update opencode skills. | ||
|
|
||
| ## Checklist | ||
|
code-schreiber marked this conversation as resolved.
|
||
| - [ ] Review `.agents/` and `skills-lock.json` for official skill changes | ||
| - [ ] Review `.opencode/skills/` for project skill changes | ||
| - [ ] Verify test commands | ||
| - [ ] Document any new conventions | ||
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.