The Get issue action retrieves the details of a specific issue from a GitHub repository using the issue number.
概览
The Get issue action retrieves issue data such as ID, number, title, body, and state of the specified issue. The action does not return any data if the issue is deleted or moved to a different repository.
注: Ensure that the Connect action is configured before proceeding with the Get issue as the Connect action provides the authentication context for the automation session.
设置
获取问题操作包含以下设置:
注: 所有输入字段都支持字符串变量。 您可以创建一个字符串变量来保存适当的文本字符串,并在适用的设置和选项中选择。
- 会话名称
-
指定连接操作创建的 GitHub 会话名称。 使用以下选项之一来指定会话名称:
- 会话名称: 直接将会话名称作为文本输入,或选择包含会话名称文本的字符串变量。
- 变量: 选择连接操作创建的 GitHub 会话变量。
- 所有者名称
- 指定 GitHub 存储库所有者的名称。 所有者可以是组织或用户账户。
- 存储库名称
- 指定操作从中检索问题的 GitHub 存储库名称。
- 问题编号
- 指定问题编号以检索详细信息。
- 将输出分配给变量
- 指定操作存储响应数据的变量。 响应数据包括以下字段:
-
id- 问题的唯一标识符。 -
issueNumber- The unique number identifying the issue within the specified repository. -
title- The title text of the issue. -
body- 问题的正文。 -
state- 问题的状态。 The issue state can beOPENorCLOSED. -
htmlURL- The direct URL of the issue. -
user- The user ID of the user who created the issue. -
assignee- The user ID of the user to whom the issue is assigned. -
createdAt- 指示问题创建时间的时间戳。 -
updatedAt- The timestamp indicating when the issue was last updated. -
closedAt- The timestamp indicating when the issue was closed. -
isPullRequest- The status indicating whether the issue is a pull request.
-