Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link PRs with rule_evaluation_status properly #1635

Merged
merged 2 commits into from
Nov 13, 2023

Conversation

jhrozek
Copy link
Contributor

@jhrozek jhrozek commented Nov 13, 2023

For some reason (probably refactoring and merging too many patches at
the same time?) we no longer linked PRs with evaluation results. This
meant that once a PR was merged, the evaluation result was still
included.- Also link PR IDs with evaluation status

To get rid of the dangling references, we delete them in a migration. This is OK, because there are only two events that we listen on:

  • PR is opened - in this case we upsert a PR entry
  • PR is closed - in this case we delete a PR entry and ignore ErrNoRows

Fixes: #1608

Fixes: mindersec#1608

For some reason (probably refactoring and merging too many patches at
the same time?) we no longer linked PRs with evaluation results. This
meant that once a PR was merged, the evaluation result was still
included.
@jhrozek jhrozek merged commit 65c3eac into mindersec:main Nov 13, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PRs are not linked properly with rule_evaluation status
2 participants