M
M
monochromer2020-03-23 21:02:38
GitLab
monochromer, 2020-03-23 21:02:38

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

1 answer(s)
S
Sergey Vokhmyanin, 2020-06-18
@Delagen

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 question

Ask a Question

731 491 924 answers to any question