Skip to content

This action fetches a pull request based on simple inputs for use in non pull request triggers

License

Notifications You must be signed in to change notification settings

dkershner6/get-pull-request-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

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-pull-request-action

This action fetches a pull request based on simple inputs for use in non pull request triggers

Usage

Simplest Possible Use (This works from an issue_comment trigger for a pull request):

      - uses: dkershner6/get-pull-request-action@v1
        id: get-pr
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          
      - run: echo ${{ fromJSON(steps.get-pr.outputs.pr).title }} # Make sure to use the fromJSON filter

Most Complicated Possible Use:

      - uses: dkershner6/get-pull-request-action@v1
        id: get-pr
        with:
          github-token: ${{ secrets.YOUR_PAT }} # PAT or similar required for cross-repo
          repo-owner: "someotherrepoowner"
          repo-name: "someotherreponame"
          pull-number: 7
          
      - run: echo ${{ fromJSON(steps.get-pr.outputs.pr).title }} # Make sure to use the fromJSON filter

About

This action fetches a pull request based on simple inputs for use in non pull request triggers

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published