Skip to content

Dreamcodeio/whats-the-pr-branch

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

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is the PR branch name?

Do you need the branch name without a prefix like feature or hotfix? Use this action to remove the prefix and get the result as output

Example:

name: CI

on: 
  pull_request:
    types: [opened, labeled]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: Dreamcodeio/whats-the-pr-branch@master
      id: branchName
      with:
        prefix: feature/,hotfix/
    - name: What's the PR branch name? 
      run: echo "${{ steps.branchName.outputs.branchName }}" 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published