diff --git a/.github/workflows/comment-on-issue.yml b/.github/workflows/comment-on-issue.yml index b54b4c5..387ff7a 100644 --- a/.github/workflows/comment-on-issue.yml +++ b/.github/workflows/comment-on-issue.yml @@ -1,4 +1,4 @@ -name: "Comment on New Issue" +name: "Comment on the Issue" on: issues: diff --git a/.github/workflows/echo.yml b/.github/workflows/echo.yml deleted file mode 100644 index aef8b65..0000000 --- a/.github/workflows/echo.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Organization CI -on: - push: - branches: [$default-branch] - pull_request: - branches: [$default-branch] -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - - name: Run a one-line script - run: echo Hello from Action-Club diff --git a/.github/workflows/format-issue-title.yml b/.github/workflows/format-issue-title.yml index 603ef00..f797a3f 100644 --- a/.github/workflows/format-issue-title.yml +++ b/.github/workflows/format-issue-title.yml @@ -13,4 +13,4 @@ jobs: - name: Format issue title uses: recursivezero/action-club/.github/actions/format-issue-title@v0.2.57 with: - prefix: RTY + prefix: ${{ vars.PROJECT_PREFIX }} diff --git a/.github/workflows/issue-branch-sync.yml b/.github/workflows/issue-branch-sync.yml new file mode 100644 index 0000000..276b98d --- /dev/null +++ b/.github/workflows/issue-branch-sync.yml @@ -0,0 +1,24 @@ +name: Issue Sync with Branch +run-name: Notify whenever a branch created using issue title + +on: + create: + ref_type: branch # Ensure to trigger when a branch is created + +permissions: + issues: write # Required to comment and add labels + contents: read # Required to read the repo metadata + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v4 + + - name: Link Branch to Issue + # Point this to your centralized repository + uses: recursivezero/action-club/.github/actions/branch-notify@v0.2.57 + with: + issue_prefix: ${{ vars.PROJECT_PREFIX }} # e.g., "RTY" + branch_name: ${{ github.event.ref }}