Create CI/CD automation to track GDATP translation MRs in Argo for ABOUTAI
Problem
ABOUTAI translation requests require manual tracking when Translation MRs are created using GDATP (via GitLab UI or VS Code). Engineers or program managers manually add MR cards to Argo requests and complete workflow steps by hand.
Solution
Jack proposed an approach in https://gitlab.com/gitlab-com/localization/argo-gitlab-integration/-/issues/78#note_3006198798 where Translation MRs include a source MR reference in their description. A CI/CD check extracts that reference to look up the Argo request and add the Translation MR card, triggering the necessary step(s) in the Argo workflow.
Need to build CI checks in about-gitlab-com:
Job 1: when Translation MR is created
- Triggers on MR creation
- Extracts source MR number from Translation MR description
- Looks up corresponding Argo ABOUTAI request
- Adds Translation MR card to Argo request
- Completes the "Waiting for Translation MR" step via Argo API (per comment https://gitlab.com/gitlab-com/localization/argo-gitlab-integration/-/issues/78#note_3013005748
- Argo updates the asset status
Job 2: when Translation MR is merged
- Triggers on MR merge
- CI/CD completes the "Waiting for MR to Merge" step via Argo API
- Argo updates asset status and auto-closes the Request
Note: as long as there is only one component per request, this is straightforward. If we later support multiple components per request, this solution will need to be revisited (per @jcole-ext in #626 (comment 3039705746)).
Prerequisites:
- @laurenbarker : Translation MR template updated to include Source MR and Argo Request fields — gitlab-com/marketing/digital-experience/about-gitlab-com!3784 (merged)
- @opysaryuk : Update GDATP's system-prompt.md to instruct the agent to use the translation MR template and fill in Source MR and Argo Request fields
- @jcole-ext : Add Masked and Hidden variables to the about-gitlab-com project so that it may communicate with Argo