Skip to content

Commit 26a6352

Browse files
authored
chore: add an opencode.jsonc that allows git push, gh pr create and gh pr comment in this project (#119)
* chore: add an `opencode.json` that allows `git push`, `gh pr create` and `gh pr comment` in this project * chore: rename `opencode.json` to `opencode.jsonc` so that the license header check covers it
1 parent 295ec06 commit 26a6352

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

‎opencode.jsonc‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/*
2+
* Copyright 2026 Han Li and contributors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
{
18+
"$schema": "https://opencode.ai/config.json",
19+
"permissions": [
20+
{ "action": "shell", "resource": "git push *", "effect": "allow" },
21+
{ "action": "shell", "resource": "gh pr create *", "effect": "allow" },
22+
{ "action": "shell", "resource": "gh pr comment *", "effect": "allow" }
23+
]
24+
}

0 commit comments

Comments
 (0)