tomasbjerre / violation-comments-to-github-lib

A library for commenting GitHub with violations from static code analyzer reports.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`keepOldComments` is not used in the logic

remal opened this issue · comments

Basically, it's a question.

As I can see, ViolationCommentsToGitHubApi.keepOldComments field is used only in withKeepOldComments and getKeepOldComments methods (setter & getter). Does it mean that this library doesn't remove commits that were left from the previous commits/CI run?

My goal is:

  1. Run CI for a Pull Request
  2. Send all violations to that PR
  3. Commit is added / CI job is restarted
  4. Remove previous violations sent to this PR
  5. Send all violations from the new CI run to that PR

Is this goal achievable?

Thanks! I'm closing the issue.