Skip to content

Commit c577f3a

Browse files
committed
added branch sync workflow
1 parent d550988 commit c577f3a

File tree

4 files changed

+26
-15
lines changed

4 files changed

+26
-15
lines changed

.github/workflows/comment-on-issue.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Comment on New Issue"
1+
name: "Comment on the Issue"
22

33
on:
44
issues:

.github/workflows/echo.yml

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/format-issue-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ jobs:
1313
- name: Format issue title
1414
uses: recursivezero/action-club/.github/actions/format-issue-title@v0.2.57
1515
with:
16-
prefix: RTY
16+
prefix: ${{ vars.PROJECT_PREFIX }}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Issue Sync with Branch
2+
run-name: Notify whenever a branch created using issue title
3+
4+
on:
5+
create:
6+
ref_type: branch # Ensure to trigger when a branch is created
7+
8+
permissions:
9+
issues: write # Required to comment and add labels
10+
contents: read # Required to read the repo metadata
11+
12+
jobs:
13+
notify:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Repo
17+
uses: actions/checkout@v4
18+
19+
- name: Link Branch to Issue
20+
# Point this to your centralized repository
21+
uses: recursivezero/action-club/.github/actions/branch-notify@v0.2.57
22+
with:
23+
issue_prefix: ${{ vars.PROJECT_PREFIX }} # e.g., "RTY"
24+
branch_name: ${{ github.event.ref }}

0 commit comments

Comments
 (0)