what are you trying to achieve: Pull request decoration in GitLab without manually importing or editing the project. I would like to continue creating projects automatically when the first analysis occurs and setting the GitLab project ID from the command line without needing admin permissions.
what have you tried so far to achieve this
Pull request decoration works, but only if I manually import the project or edit the settings. In a previous version, one didn’t have to manually set the ALM integration configuration and the project ID.
@punkstarman Hi and welcome to our community
I’m not sure I understand what is your issue here.
If you’re trying to find a way to setup PR settings through scanner commands, you can do that via the sonar.pullrequest parameter.
If you’re trying to setup PR settings through API, well it’s not possible AFAIK
I would like to continue creating projects automatically when the first analysis occurs
Does your question about creating project or running analysis?
If you can clarify, it’d be easier for me
Thanks.
Kind regards,
Christophe
The sonar.pullrequest parameter isn’t enough. I want pull request decoration, too. This can be configured through the API through the alm_setting/set_gitlab_binding endpoint, but I wanted to avoid having to use this because it requires giving admin permissions to the project.