Skip to content

A GitHub Action to detect if an issue comment on a pull request happens

License

Notifications You must be signed in to change notification settings

jmatsu/detect-issue-comment-to-pr-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A GitHub Action to detect if an issue comment on a pull request happens

Resources

License

Stars

Watchers

Forks

Packages

No packages published