-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix+refactor: improve github monitoring workflow
- Loading branch information
1 parent
758d0d2
commit 0c545f7
Showing
7 changed files
with
291 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
docs/pages/integrations/github/apis/list_issue_comments.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import { Callout } from "nextra/components"; | ||
|
||
# List Issue Comments | ||
|
||
This method liss all comments of a pull request or issue in a GitHub repository. | ||
|
||
<Callout type="info"> | ||
For more information on the API for listing pull requests, see [List issue | ||
comments](https://docs.github.com/en/rest/issues/comments?apiVersion=2022-11-28#list-issue-comments). | ||
</Callout> | ||
|
||
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:** | ||
|
||
```python | ||
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](/integrations/github/github) | | ||
|
||
## SDK Example | ||
|
||
```python | ||
commit_diff = list_github_issue_comments( | ||
repo_owner="admyral", | ||
repo_name="admyral", | ||
number=9, | ||
secrets={"GITHUB_SECRET": "your_github_secret"} | ||
) | ||
``` |
Oops, something went wrong.