Description Usage Arguments Details Value Examples
This function deletes a comment from a gist, issue, pull request or commit, as long as you have appropriate permissions. Care should be taken as it will not be recoverable.
1 | delete_comment(comment, gist, repo, type = "gist", ...)
|
comment |
(integer) The id of the comment. |
gist |
(string, optional) The ID of the gist. |
repo |
(string) The repository specified in the format: |
type |
(string, optional) Whether the comment is for a |
... |
Parameters passed to |
For more details see the GitHub API documentation:
https://docs.github.com/en/rest/reference/gists#delete-a-gist-comment
https://docs.github.com/en/rest/reference/issues#delete-an-issue-comment
https://docs.github.com/en/rest/reference/pulls#delete-a-review-comment-for-a-pull-request
https://docs.github.com/en/rest/reference/repos#delete-a-commit-comment
delete_comment()
returns a TRUE if successfully deleted.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | ## Not run:
# Delete a gist comment
delete_comment(
comment = 622980929,
gist = "8e5be270de9a88168372293a813543f9"
)
# Delete a issue comment
delete_comment(
comment = 622980929,
type = "issue",
repo = "ChadGoymer/githapi"
)
# Delete a pull request comment
delete_comment(
comment = 418979473,
type = "pull_request",
repo = "ChadGoymer/githapi"
)
# Delete a commit comment
delete_comment(
comment = 38899533,
type = "commit",
repo = "ChadGoymer/githapi"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.