Open humble-barnacle001 opened 2 years ago
Thanks for your feedback. I agree.
https://octokit.github.io/rest.js/v18#issues-update-comment with comment ID from https://octokit.github.io/rest.js/v18#issues-list-comments might help instead of the current https://github.com/oke-py/npm-audit-action/blob/main/src/main.ts#L97
If we can use an action inside an action or get inspired by it, something similar to https://github.com/peter-evans/create-or-update-comment
What would you like to be added: The option
dedupe_issues
should edit the comment if it already exists and not create a new comment on the same issueWhy is this needed: If used in workflows running on schedule it can create multiple comments for same vulnerabilities report which might be a problem