Answer the question
In order to leave comments, you need to log in
How to call a script when creating an issue?
Can I use Gitlab CI/CD tools to call a script stored in a repository when creating an issue in the same repository?
I found how to do this using WebHook, but I don’t want to raise a separate web service for this, but I want to have a config something like:
on:
issues: ['created']
jobs:
process:
script:
- npm run some-script
Answer the question
In order to leave comments, you need to log in
CI / CD is not designed for this, these are tasks tied to a commit.
You can write some kind of wrapper that will pull tasks by WebHook, gitlab api allows this, another question is how you will determine which commit to pull tasks
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question