Skip to content
A GitHub Action to detect if an issue comment on a pull request happens
Dockerfile Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows
.gitignore
Dockerfile
LICENSE
README.md
action.yml
entry-point.sh

README.md

Detect an issue comment on a pull request

This action detects if an issue comment event happens on a pull request.

Versions

See Releases page.

Inputs and Outpus

See action.yml of your version.

Example

Please make sure your workflow will run on issue_comment events.

on: 
  issue_comment

Add this action to steps.

- uses: jmatsu/detect-issue-comment-to-pr-action@<tag>
  id: filter
  env:
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: echo "I'm a pull request (${{ steps.filter.outputs.pull_number }})"
  if: steps.filter.outputs.is_pull_request == 'true'
- run: echo "I'm not a pull request"
  if: steps.filter.outputs.is_pull_request != 'true'

For more detail, please read action.yml and workflow examples

License

MIT License

You can’t perform that action at this time.