Skip to content

A github action that retrieves the pull request branch name and sets it in the output for other actions to use

License

Notifications You must be signed in to change notification settings

pactsafe/pr-branch-name

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pull Request Branch Name

A github action that retrieves the pull request branch name and sets it in the output for other actions to use. This fork allows us to set a custom limit that the outputted branch name will be.

Originally sourced from @mdecoleman/pr-branch-name

Usage

- uses: pactsafe/[email protected]
  id: branch-name
  with:
    max-length: 25 # This is the maximum length of the branch name
    repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: echo ${{ steps.branch-name.outputs.branch }}

License

The scripts and documentation in this project are released under the MIT License

About

A github action that retrieves the pull request branch name and sets it in the output for other actions to use

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%