summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/content/docs/ja/github.mdx
diff options
context:
space:
mode:
authoropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-02-09 17:35:30 +0000
committeropencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>2026-02-09 17:35:30 +0000
commitd578f80f0055082cc7befd29b2ce6bda7326d29f (patch)
tree5ca2ee868fe480104a5464260a8b114c3ef4ec71 /packages/web/src/content/docs/ja/github.mdx
parentdc53086c1e73d43d3a28fc4cdf161e83d09b1877 (diff)
downloadopencode-d578f80f0055082cc7befd29b2ce6bda7326d29f.tar.gz
opencode-d578f80f0055082cc7befd29b2ce6bda7326d29f.zip
chore: generate
Diffstat (limited to 'packages/web/src/content/docs/ja/github.mdx')
-rw-r--r--packages/web/src/content/docs/ja/github.mdx131
1 files changed, 66 insertions, 65 deletions
diff --git a/packages/web/src/content/docs/ja/github.mdx b/packages/web/src/content/docs/ja/github.mdx
index 989e71b87..e84e83155 100644
--- a/packages/web/src/content/docs/ja/github.mdx
+++ b/packages/web/src/content/docs/ja/github.mdx
@@ -39,39 +39,39 @@ opencode github install
次のワークフロー ファイルをリポジトリの `.github/workflows/opencode.yml` に追加します。適切な `model` と必要な API キーを `env` に設定してください。
- ```yml title=".github/workflows/opencode.yml" {24,26}
- name: opencode
-
- on:
- issue_comment:
- types: [created]
- pull_request_review_comment:
- types: [created]
-
- jobs:
- opencode:
- if: |
- contains(github.event.comment.body, '/oc') ||
- contains(github.event.comment.body, '/opencode')
- runs-on: ubuntu-latest
- permissions:
- id-token: write
- steps:
- - name: Checkout repository
- uses: actions/checkout@v6
- with:
- fetch-depth: 1
- persist-credentials: false
-
- - name: Run OpenCode
- uses: anomalyco/opencode/github@latest
- env:
- ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
- with:
- model: anthropic/claude-sonnet-4-20250514
- # share: true
- # github_token: xxxx
- ```
+```yml title=".github/workflows/opencode.yml" {24,26}
+name: opencode
+
+on:
+ issue_comment:
+ types: [created]
+ pull_request_review_comment:
+ types: [created]
+
+jobs:
+ opencode:
+ if: |
+ contains(github.event.comment.body, '/oc') ||
+ contains(github.event.comment.body, '/opencode')
+ runs-on: ubuntu-latest
+ permissions:
+ id-token: write
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v6
+ with:
+ fetch-depth: 1
+ persist-credentials: false
+
+ - name: Run OpenCode
+ uses: anomalyco/opencode/github@latest
+ env:
+ ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
+ with:
+ model: anthropic/claude-sonnet-4-20250514
+ # share: true
+ # github_token: xxxx
+```
3. **API キーをシークレットに保存します**
@@ -89,13 +89,13 @@ opencode github install
あるいは、OpenCode GitHub アプリをインストールせずに、GitHub Action ランナーの [組み込み `GITHUB_TOKEN`](https://docs.github.com/en/actions/tutorials/authenticate-with-github_token) を使用することもできます。ワークフローで必要な権限を必ず付与してください。
- ```yaml
- permissions:
- id-token: write
- contents: write
- pull-requests: write
- issues: write
- ```
+```yaml
+permissions:
+ id-token: write
+ contents: write
+ pull-requests: write
+ issues: write
+```
必要に応じて、[パーソナル アクセス トークン](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens)(PAT) を使用することもできます。
@@ -105,14 +105,14 @@ opencode github install
OpenCode は、次の GitHub イベントによってトリガーできます。
-|イベントの種類 |きっかけ |詳細 |
-| ----------------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
-| `issue_comment` |問題または PR についてコメントする |コメントで `/opencode` または `/oc` について言及してください。 OpenCode はコンテキストを読み取り、ブランチを作成したり、PR を開いたり、返信したりできます。 |
-| `pull_request_review_comment` | PR 内の特定のコード行にコメントする |コードをレビューするときに、`/opencode` または `/oc` について言及します。 OpenCode は、ファイル パス、行番号、および diff コンテキストを受け取ります。 |
-| `issues` |問題がオープンまたは編集されました |問題が作成または変更されると、OpenCode が自動的にトリガーされます。 `prompt` 入力が必要です。 |
-| `pull_request` | PR がオープンまたは更新されました | PR が開かれる、同期される、または再度開かれるときに、OpenCode を自動的にトリガーします。自動レビューに役立ちます。 |
-| `schedule` | Cron ベースのスケジュール |スケジュールに従って OpenCode を実行します。 `prompt` 入力が必要です。出力はログと PR に送られます (コメントする問題はありません)。 |
-| `workflow_dispatch` | GitHub UI からの手動トリガー | [アクション] タブから OpenCode をオンデマンドでトリガーします。 `prompt` 入力が必要です。出力はログと PR に送られます。 |
+| イベントの種類 | きっかけ | 詳細 |
+| ----------------------------- | ----------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| `issue_comment` | 問題または PR についてコメントする | コメントで `/opencode` または `/oc` について言及してください。 OpenCode はコンテキストを読み取り、ブランチを作成したり、PR を開いたり、返信したりできます。 |
+| `pull_request_review_comment` | PR 内の特定のコード行にコメントする | コードをレビューするときに、`/opencode` または `/oc` について言及します。 OpenCode は、ファイル パス、行番号、および diff コンテキストを受け取ります。 |
+| `issues` | 問題がオープンまたは編集されました | 問題が作成または変更されると、OpenCode が自動的にトリガーされます。 `prompt` 入力が必要です。 |
+| `pull_request` | PR がオープンまたは更新されました | PR が開かれる、同期される、または再度開かれるときに、OpenCode を自動的にトリガーします。自動レビューに役立ちます。 |
+| `schedule` | Cron ベースのスケジュール | スケジュールに従って OpenCode を実行します。 `prompt` 入力が必要です。出力はログと PR に送られます (コメントする問題はありません)。 |
+| `workflow_dispatch` | GitHub UI からの手動トリガー | [アクション] タブから OpenCode をオンデマンドでトリガーします。 `prompt` 入力が必要です。出力はログと PR に送られます。 |
### スケジュール例
@@ -277,9 +277,9 @@ GitHub で OpenCode を使用する方法の例をいくつか示します。
このコメントを GitHub の問題に追加します。
- ```
- /opencode explain this issue
- ```
+```
+/opencode explain this issue
+```
OpenCode は、すべてのコメントを含むスレッド全体を読み取り、明確な説明を返信します。
@@ -287,9 +287,9 @@ OpenCode は、すべてのコメントを含むスレッド全体を読み取�
GitHub の問題で次のように言います。
- ```
- /opencode fix this
- ```
+```
+/opencode fix this
+```
そして、OpenCode は新しいブランチを作成し、変更を実装し、変更を含む PR を開きます。
@@ -297,9 +297,9 @@ GitHub の問題で次のように言います。
GitHub PR に次のコメントを残してください。
- ```
- Delete the attachment from S3 when the note is removed /oc
- ```
+```
+Delete the attachment from S3 when the note is removed /oc
+```
OpenCode は要求された変更を実装し、同じ PR にコミットします。
@@ -307,15 +307,16 @@ OpenCode は要求された変更を実装し、同じ PR にコミットしま�
PR の「ファイル」タブのコード行に直接コメントを残します。 OpenCode は、ファイル、行番号、および diff コンテキストを自動的に検出して、正確な応答を提供します。
- ```
- [Comment on specific lines in Files tab]
- /oc add error handling here
- ```
+```
+[Comment on specific lines in Files tab]
+/oc add error handling here
+```
特定の行にコメントすると、OpenCode は以下を受け取ります。
- - レビューされている正確なファイル
- - コードの特定の行
- - 周囲の差分コンテキスト
- - 行番号情報
+
+- レビューされている正確なファイル
+- コードの特定の行
+- 周囲の差分コンテキスト
+- 行番号情報
これにより、ファイル パスや行番号を手動で指定する必要がなく、よりターゲットを絞ったリクエストが可能になります。