• /
  • EnglishEspañolFrançais日本語한국어Português
  • ログイン今すぐ開始

この機械翻訳は、参考として提供されています。

英語版と翻訳版に矛盾がある場合は、英語版が優先されます。詳細については、このページを参照してください。

問題を作成する

GitHubのIssueにコメントする

既存のGitHub issueに新しいコメントを作成します。

認証のセットアップについては、GitHub Issueアクションを参照してください。

このアクションでは、以下の入力を使用できます。

入力フィールド

オプション性

タイプ

説明

token

必須

シークレットとして保存されたGitHub Personal Access Token(fine-grainedまたはclassic)。Fine-grained PATには、Issues:Read and write権限が必要です。Classic PATには、リポジトリスコープが必要です。

"${{ :secrets:github-PAT-token }}"

owner

必須

リポジトリのアカウント所有者(ユーザーまたは組織のログイン)。大文字と小文字は区別されません。

"octocat"

repo

必須

.gitを含まないリポジトリ名サフィックス。大文字と小文字は区別されません。

"Hello-World"

issueNumber

必須

Int

問題を識別する番号です。

1347

body

必須

コメントの内容。

"Issue has been investigated and resolved."

selectors

オプション

リスト

レスポンスから値を抽出するためのJQセレクタ。

[{"name": "commentId", "expression": ".id"}]

このアクションは、以下の出力を返します。

出力フィールド

タイプ

response

オブジェクト

{
"id": 1,
"html_url": "https://github.com/octocat/Hello-World/issues/1347#issuecomment-1",
"body": "Issue has been investigated and resolved.",
"user": {
"login": "octocat"
},
"created_at": "2011-04-14T16:00:49Z",
"updated_at": "2011-04-14T16:00:49Z",
"issue_url": "https://api.github.com/repos/octocat/Hello-World/issues/1347"
}

success

ブール値

success: true | false

errorMessage

GitHub APIのエラーレスポンス本文が含まれます。

ワークフローの例

name: github_comment_issue_workflow
description: Add a comment to a GitHub issue
steps:
- name: add_comment
type: action
action: gitHub.issue.comment
version: 1
inputs:
token: ${{ :secrets:github-PAT-token }}
owner: your_user_name
repo: test-workflow
issueNumber: 7
body: |
This issue has been investigated.
Runbook: https://runbooks.example.com/checkout-5xx
next: end
Copyright © 2026 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.