You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Knip Reporter
v1.0.2
⚙️📄 Report the results from knip on pull requests.
This action runs knip, parses the results, and posts the report as comments on the related pull request.
name: Pull Request
on:
pull_request:
steps:
- name: Post the knip results
uses: codex-/knip-reporter@v1
The following inputs are supported
Input | Description | Required | Default |
---|---|---|---|
token |
GitHub Personal Access Token for making API requests. | false |
${{ github.token }} |
command_script_name |
The package script that runs knip. | false |
knip |
comment_id |
ID to use when updating the PR comment. Spaces will be replaced with dashes. | false |
${{ github.workflow }}-knip-reporter |
ignore_result |
Do not fail the action run if knip results are found. | false |
false |
If you encounter a case where comments are not being posted, or known sections are missing from the report, please enable step debug logging and create an issue with the results and expected behaviour.
Issues
Comments
Create an issue comment
- POST
/repos/{owner}/{repo}/issues/{issue_number}/comments
- POST
List issue comments
- GET
/repos/{owner}/{repo}/issues/{issue_number}/comments
- GET
Update an issue comment
- PATCH
/repos/{owner}/{repo}/issues/comments/{comment_id}
- PATCH
Delete an issue comment
- DELETE
/repos/{owner}/{repo}/issues/comments/{comment_id}
- DELETE