Home > Software design >  Run automatically Script when GitHub Issue has been closed
Run automatically Script when GitHub Issue has been closed

Time:11-11

I would like to run automatically a (python) Script, when a GitHub Issue has been closen. The Script should send another user an message via a Chatbot, so it need to be a custom script, where i can manipulate the data etc.

Any ideas how this could be achieved?

CodePudding user response:

The easiest would be GitHub Actions's issues trigger:

on:
  issues:
    types: [closed]
jobs:
  Run:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/setup-python@v2
        with:
          python-version: 3.9
      - run: python ...
  • Related