I was wondering if there is currently a way to use GitLab’s CI/CD to automatically merge pull requests based on a number of conditions (target/source branch, tag, etc) on the SaaS (Gitlab.com) version? While I appreciate it might go against the GitLab flow, we might have a use case for such an implementation.
Is it possible to run an API call in CI/CD jobs on GitLab.com via something like cUrl or maybe there is an easier way? I can only find examples for various images that use pre-existing libraries, nothing custom.
Yes, the script part of your CI jobs is just a Bash script, so you can do anything that you would normally do in Bash. If you need a tool like curl, you just need to make sure that it is installed in the Docker image for that job.
I managed to build a pipeline in two flavours: bash & js, but I think I am going to stick with the Node image since most of my team is familiar with JS so there may be more hands on deck to help with maintenance.