Skip to content

Ntropy Pull Request Comment Trigger v1.0.1

Actions
Look for a trigger word in a pull-request description or comment, so that later steps can know whether or not to run
1.0.0
Latest
Star (0)

Pull Request Comment Trigger

Look for a "trigger word" in a pull-request description or comment, so that later steps can know whether or not to run.

Example usage in a workflow

Your workflow needs to listen to the following events:

on:
  pull_request:
    types: [opened]
  issue_comment:
    types: [created]

And then you can use the action in your jobs like this:

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: khan/pull-request-comment-trigger@master
        id: check
        with:
          trigger: '@deploy'
          reaction: rocket
        env:
          GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
      - run: 'echo Found it!'
        if: steps.check.outputs.triggered == 'true'

Reaction must be one of the reactions here: https://developer.github.com/v3/reactions/#reaction-types And if you specify a reaction, you have to provide the GITHUB_TOKEN env vbl.

Ntropy Pull Request Comment Trigger v1.0.1 is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Look for a trigger word in a pull-request description or comment, so that later steps can know whether or not to run
1.0.0
Latest

Ntropy Pull Request Comment Trigger v1.0.1 is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.