feat(x2a): Track and display commit ID per job#2364
feat(x2a): Track and display commit ID per job#2364elai-shalev wants to merge 2 commits intoredhat-developer:mainfrom
Conversation
Missing ChangesetsThe following package(s) are changed by this PR but do not have a changeset:
See CONTRIBUTING.md for more information about how to add changesets. Changed Packages
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||



User description
This PR will introduce tracking and displaying of cimmit id per job, to keep track for the "latest commit on the target repository created by the x2a job"
page so users can trace exactly which commit a phase produced.
capture the SHA via git rev-parse HEAD after a successful push.
JIRA: https://issues.redhat.com/browse/FLPATH-3297
PR Type
Enhancement
Description
Add
commit_idcolumn to jobs table and track git commit SHA per jobExtend OpenAPI spec and
collectArtifactsendpoint to accept and storecommitIdUpdate job shell script to capture commit SHA via
git rev-parse HEADafter pushDisplay "Last Commit ID" field in Module page phase tabs with multi-language support
File Walkthrough
1 files
Add commit_id column to jobs table6 files
Add commitId to request schema and interfaceAdd commitId parameter to updateJob methodInclude commit_id in job queries and updatesMap commit_id from database row to Job objectCapture commit SHA after successful git pushDisplay Last Commit ID in phase details5 files
Add commitId field to Job modelAdd commitId to request modelUpdate OpenAPI spec with commitId fieldAdd commitId field to client Job modelAdd commitId to client request model8 files
Add German translation for Last Commit IDAdd Spanish translation for Last Commit IDAdd French translation for Last Commit IDAdd Italian translation for Last Commit IDAdd English reference translation for commitIdAdd commitId to OpenAPI schema definitionsUpdate API documentation with commitId fieldUpdate API documentation with commitId translation