Repository navigation
Add a project OpenCode config allowing git push and PR create/comment - #52
Merged
Merged
Conversation
opencode.jsonc lets OpenCode agent sessions in this repository run `git push *`, `gh pr create *` and `gh pr comment *` without being blocked or asked. - OpenCode (v2) puts a project's permission rules after the user's global ones and the last matching rule wins, so these three `allow` rules override a personal `deny` on the same commands. Checked on OpenCode 2.2.5 against a global config that denies all three: before the file, `git push` was rejected; with it, `git push --dry-run` (to a nonexistent path), `gh pr create --help` and `gh pr comment --help` run. - Nothing else changes. `gh pr merge *` is left out on purpose and is still rejected under the same global config (checked with `gh pr merge --help`). - A contributor without such a deny sees no change: OpenCode's base policy already allows shell commands. - The Apache header is required. .licenserc.yaml exempts `**/*.json`, but license-eye checks `.jsonc` files; `header check` passes on a clean copy of the tree (apache/skywalking-eyes:0.9.0, as in docs/e2e.md).
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.
Add an
opencode.jsoncthat lets OpenCode agent sessions in this repository rungit push *,gh pr create *andgh pr comment *without being blocked or asked.allowrules override a personal globaldenyon the same commands. A contributor without such a deny sees no change: OpenCode's base policy already allows shell commands.gh pr merge *is left out on purpose, so a globaldenyon it still applies.git push,gh pr create,gh pr comment,gh pr merge): before the file,git pushwas rejected; with it,git push --dry-run(to a nonexistent path),gh pr create --helpandgh pr comment --helprun, andgh pr merge --helpis still rejected..licenserc.yamlexempts**/*.json, but license-eye checks.jsoncfiles.license-eye header check(apache/skywalking-eyes:0.9.0, as in docs/e2e.md) passes on a clean copy of the tree.