Skip to content
Snippets Groups Projects

Add strict mode flag for GH webhook (re)processing

Merged Martin Lowe requested to merge (removed):malowe/main/staging-patches into main
3 files
+ 5
2
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -85,7 +85,7 @@ public abstract class ValidationResponse {
/** @param error message to add to the API response */
public void addError(String hash, String error, APIStatusCode code) {
if (getTrackedProject()) {
if (this.getTrackedProject() || this.getStrictMode()) {
getCommits().computeIfAbsent(getHashKey(hash), k -> CommitStatus.builder().build()).addError(error, code);
} else {
addWarning(hash, error, code);
Loading