Skip to content

Commit

Permalink
branch name generate automation
Browse files Browse the repository at this point in the history
  • Loading branch information
rkshaon committed Dec 3, 2024
1 parent dd6b16f commit d4e9cf6
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Custom Branch Naming

on:
issues:
types: [opened]

jobs:
create-branch:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Generate branch name
run: |
ISSUE_NUMBER=${{ github.event.issue.number }}
ISSUE_TITLE=${{ github.event.issue.title }}
BRANCH_NAME="feature/${ISSUE_NUMBER}-$(echo ${ISSUE_TITLE} | tr '[:upper:]' '[:lower:]' | tr ' ' '-')"
echo "Branch Name: ${BRANCH_NAME}"

0 comments on commit d4e9cf6

Please sign in to comment.