Fix: Use RFC3339 Timestamp Format and Add Missing Fields in GitHub CheckRun Payload #389
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Description
This PR addresses Issue #388, which affects GitHub CheckRun notifications in
argocd-notifications
.Two problems were identified:
1.
started_at
andcompleted_at
fields failed to parse due to an incorrect time layout.2. The
status
andconclusion
fields were omitted from the GitHub CheckRun payload, causing validation errors.Fix Details
"YYYY-MM-DDTHH:MM:SSZ"
with the standardtime.RFC3339
layout for parsingstarted_at
andcompleted_at
.status
andconclusion
fields in the payload sent to the GitHub CheckRun API.Impact
This fix ensures that GitHub CheckRun notifications are correctly formatted and accepted by GitHub, restoring proper CI/CD deployment reporting.
Fixes #388