Repository navigation
Let the OpenCode agent push, open pull requests and comment on them - #49
Merged
Merged
Conversation
Add opencode.jsonc, the project configuration of OpenCode, with allow rules for the shell commands git push, gh pr create and gh pr comment. A user can deny these commands for every project in ~/.config/opencode/opencode.json. OpenCode applies the rules of a project after those of the user, and the last rule that matches wins, so in this repository the agent can push its branch, open the pull request and comment on it. gh pr merge is not among the rules and stays with the user's own configuration.
…x/tools 0.52.0 golang.org/x/mod 0.42.0 and golang.org/x/net 0.61.0 follow as indirect dependencies. This is the change of the Dependabot pull request #47.
…-gradle 6.4.1, download-artifact 8.0.2 This is the change of the Dependabot pull request #48. The actions stay pinned to commit SHAs.
The default package list of setup-android used to name the `tools` package, which Google removed, so the workflow asked for `platform-tools` alone. setup-android 4.0.2 fixed that: the default is now `platform-tools`, which is what the workflow asked for. The list and the comment that explained it are no longer needed.
setup-gradle 6 moved the Gradle User Home caching into gradle-actions-caching, a closed-source component under the Gradle Technologies Terms of Use, and made it the default: upgrading to v6 accepts those terms. Since 6.1.0 the MIT-licensed `basic` provider, built on actions/cache, is an alternative, and the component is neither loaded nor used with it. Choose it, so that the workflow stays on open-source components, as it was with v5. `basic` has no cache cleanup and no deduplication, and starts a new cache when a build file changes. To take the default again, delete the line.
This was referenced Nov 3, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
opencode.jsonc, the project configuration of OpenCode, withallowrules for the shell commandsgit push *,gh pr create *andgh pr comment *.~/.config/opencode/opencode.json. OpenCode applies the rules of a project after those of the user, and the last rule that matches wins, so with this file the agent can deliver a change in this repository: push its branch, open the pull request and comment on it.gh pr mergeis not among the rules and stays with the user's own configuration.denyoraskfor these three commands..licenserc.yamlignores*.jsonbut not*.jsonc, so the file starts with the Apache-2.0 header, like the other files that can carry comments.opencode debug configlistsopencode.jsoncafter the global configuration, with the three rules.git push *,gh pr create *,gh pr comment *andgh pr merge *, the commandsgit push -h,gh pr create --helpandgh pr comment --help(which only print their usage) were rejected before the file existed and ran after it, without a restart of OpenCode.gh pr merge --helpis still rejected.askinstead ofdeny, for which the documented order is the same.