Skip to content

A Github Action for finding details about a PR relating to the workflow run

License

Notifications You must be signed in to change notification settings

matrix-org/pr-details-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pr-details-action

A Github Action for finding details about a PR relating to the workflow run

Example for running from a workflow_run reacting to a pull_request workflow.

steps:
  - id: details
    uses: matrix-org/pr-details-action@v1
    with:
      owner: ${{ github.event.workflow_run.head_repository.owner.login }}
      branch: ${{ github.event.workflow_run.head_branch }}

Inputs

Input Type Description Workflow run example
owner string The github username of the owner of the head branch ${{ github.event.workflow_run.head_repository.owner.login }}
branch string The name of the head branch ${{ github.event.workflow_run.head_branch }}

Outputs

Output Description
pr_id The ID of the PR found
head_branch The head branch of the PR found
base_branch The base branch of the PR found
data The JSON data of the pull request API object

About

A Github Action for finding details about a PR relating to the workflow run

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •