Integrations
GitHub
APIs
List Issue Comments

List Issue Comments

This method liss all comments of a pull request or issue in a GitHub repository.

For more information on the API for listing pull requests, see List issue comments (opens in a new tab).

To use this API endpoint for a private repository, your GitHub token requires the following scopes:

For a Fine-grained token:

- "Pull requests" repository permissions (read)

Alternatively, for a Token (classic):

- repo

SDK Import:

from admyral.actions import list_github_issue_comments

Arguments

Argument NameDescriptionRequired
Repository Owner repo_ownerThe owner of the repository.yes
Repository Name repo_nameThe name of the repository.yes
Pull Request/Issue Number numberThe number identifying the pull request or issue.-

Returns

A JSON array of issue comments.

Required Secrets

Secret PlaceholderDescription
GITHUB_SECRETGitHub secret. See GitHub setup

SDK Example

commit_diff = list_github_issue_comments(
	repo_owner="admyral",
	repo_name="admyral",
	number=9,
	secrets={"GITHUB_SECRET": "your_github_secret"}
)