From ff2a6840d9479bbf1398c8c15734e2956d82dc13 Mon Sep 17 00:00:00 2001 From: Nick Dimiduk Date: Mon, 11 May 2026 17:01:41 +0200 Subject: [PATCH] YETUS-1277. Skip per-sub-check commit statuses under GitHub Actions Under GHA, Yetus encodes result severity (error:/warning:) in the GitHub commit status context string. Since GitHub keys statuses by context, a re-run that changes a check's outcome never overwrites the prior status. The per-sub-check detail is already available in the PR comment and the GHA step summary, so commit statuses are redundant under GHA. --- precommit/src/main/shell/plugins.d/github.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/precommit/src/main/shell/plugins.d/github.sh b/precommit/src/main/shell/plugins.d/github.sh index c5613cec..cef6bab1 100755 --- a/precommit/src/main/shell/plugins.d/github.sh +++ b/precommit/src/main/shell/plugins.d/github.sh @@ -1223,6 +1223,13 @@ function github_finalreport github_end_checkrun "${result}" + # Under GHA the per-sub-check detail is already in the PR comment and the + # step summary. Commit statuses encode severity in the context key, so a + # re-run that changes outcome never overwrites the old status (YETUS-1277). + if [[ "${ROBOTTYPE}" == 'githubactions' ]]; then + return 0 + fi + if [[ "${ROBOTTYPE}" ]]; then header="Apache Yetus(${ROBOTTYPE})" else