Skip to content

Commit

Permalink
Update branch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rkshaon authored Dec 15, 2024
1 parent c1c7874 commit e0ee19d
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/branch.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1 @@
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 e0ee19d

Please sign in to comment.