GitHubComment@0 - GitHub Comment v0 任务

使用此任务将注释写入 GitHub 实体,例如问题或拉取请求(PR)。

语法

# 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 个人访问令牌。 有关服务连接的详细信息,请参阅 管理服务连接

重要

GitHub 服务连接GitHub Enterprise Server 服务连接 不是同一类型的服务连接。 此任务支持 GitHub 服务连接


repositoryName - 存储库
string。 必填。 默认值:$(Build.Repository.Name)

指定要在其中创建 GitHub 注释的 GitHub 存储库的名称。


github pr/issueid - ID
string

指定问题或 PR 编号。 如果在 PR 管道中使用,请将此字段留空以动态找出 ID。


comment - 注释
string

要写入的注释的内容。


任务控制选项

除任务输入之外,所有任务都具有控制选项。 有关详细信息,请参阅 控件选项和常见任务属性

输出变量

没有。

要求

要求 说明
管道类型 YAML,经典版本,经典版本
运行时间 代理,DeploymentGroup
需求 没有
功能 此任务不满足作业中后续任务的任何要求。
命令限制 任何
Settable 变量 任何
代理版本 2.0.0 或更高版本
任务类别 效用