Decorate merge requests with build information (artifact published in git repository)

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;

    - '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}" "${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

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.

1 Like

So, if you were generating unit test reports, you’d generate a file in JUnit XML format, and add it to your pipeline job like this:

         when: always
                 - output.xml
         expire_in: 2 weeks

I believe it’s possible to do something similar for other types of output, like codequality also using artifact reports.