At the end of my build execution, I’d like to publish some information about the artifacts that I published to Gitlab NPM registry.
I know some CI templates such as CodeQuality provide information after the build, directly in the merge request main view:
For now, I’m currently adding a note to the PR;
script:
- 'curl --data-urlencode body="New artifact \`$ARTIFACT_NAME:$NEW_VERSION\` was just published to the NPM registry" --request POST --header "PRIVATE-TOKEN: ${MY_CI_TOKEN}" "https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}/merge_requests/${CI_MERGE_REQUEST_IID}/notes"'
and it renders this way, as a note to the PR:
that’s OK, but I wish I could do something more integrated, such as the CodeQuality template does.
Is it possible to do that, if so how ?
Thank you
What version are you on? Are you using self-managed or GitLab.com?
- GitLab.com
- Runner: gitlab-runner 14.4.0-rc1
Can you link to any docs or other resources so we know where you have been?
A somewhat similar question was asked there Decorate merge request but it ended up with artifact publication; I’d rather not publish any artifact.