Skip to content
Snippets Groups Projects
Commit a9c236cd authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #23864 TIME 1:15 use gitlab template in ci

parent bee5a43e
No related branches found
No related tags found
No related merge requests found
## Description
Description de l'US
[[#{US_ID}](https://forge.maarch.org/issues/{US_ID})] - {US_TITLE}
## Correctif / évolution
Décrire le changement effectué
......
......@@ -52,7 +52,9 @@ else
SUBJECT=`cat issue_$US.json | jq -r '.issue.subject'`
BODY="{\"id\":\"$CI_PROJECT_ID\",\"source_branch\":\"$CI_COMMIT_REF_NAME\",\"target_branch\":\"$TARGET_BRANCH\",\"title\":\"Draft: [$US] $SUBJECT\",\"description\":\"$SUBJECT\n=> https://forge.maarch.org/issues/$US\",\"remove_source_branch\":\"true\",\"squash\":\"false\"}"
MR_DESCRIPTION=$(awk 'BEGIN{RS="\n";ORS="\\n"}1' .gitlab/merge_request_templates/mr_template.md | sed -e "s/{US_ID}/$US/g" | sed -e "s/{US_TITLE}/$SUBJECT/g")
BODY="{\"id\":\"$CI_PROJECT_ID\",\"source_branch\":\"$CI_COMMIT_REF_NAME\",\"target_branch\":\"$TARGET_BRANCH\",\"title\":\"Draft: [$US] $SUBJECT\",\"description\":\"$MR_DESCRIPTION\",\"remove_source_branch\":\"true\",\"squash\":\"false\"}"
echo $BODY
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment