GitHubComment@0 - GitHub 批註 v0 工作

使用此工作將批註寫入 GitHub 實體,例如問題或提取要求 (PR) 。

Syntax

# GitHub Comment v0
# Write a comment to your GitHub entity i.e. issue or a pull request (PR).
- task: GitHubComment@0
  inputs:
    gitHubConnection: # string. Required. GitHub connection (OAuth or PAT). 
    repositoryName: '$(Build.Repository.Name)' # string. Required. Repository. Default: $(Build.Repository.Name).
    #id: # string. ID of the github pr/issue. 
    #comment: # string. Comment.

輸入

gitHubConnection - GitHub 連線 (OAuth 或 PAT)
string. 必要。

指定要用來連線至 GitHub 存放庫的 GitHub 服務連線名稱。 連線必須以 GitHub 使用者的 OAuth 或 GitHub 個人存取權杖為基礎。 如需服務連線的詳細資訊,請參閱 管理服務連線


repositoryName - 存儲 庫
string. 必要。 預設值:$(Build.Repository.Name)

指定要在其中建立 GitHub 批註的 GitHub 存放庫名稱。


id - github pr/issue 的識別碼
string.

指定問題或 PR 編號。 如果在 PR 管線中使用,請將此欄位保留空白,以動態找出識別碼。


comment - 評論
string.

要寫入之批註的內容。


工作控制項選項

除了工作輸入之外,所有工作都有控制選項。 如需詳細資訊,請參閱 控制選項和一般工作屬性

輸出變數

無。

規格需求

需求 描述
管線類型 YAML、傳統組建、傳統版本
在 上執行 Agent、DeploymentGroup
要求
Capabilities 此工作不符合作業中後續工作的任何需求。
命令限制 任意
可設定變數 任意
代理程式版本 2.0.0 或更新版本
工作類別 公用程式