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 Name | Description | Required |
---|---|---|
Repository Owner repo_owner | The owner of the repository. | yes |
Repository Name repo_name | The name of the repository. | yes |
Pull Request/Issue Number number | The number identifying the pull request or issue. | - |
Returns
A JSON array of issue comments.
Required Secrets
Secret Placeholder | Description |
---|---|
GITHUB_SECRET | GitHub 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"}
)