From 49f95c395d9fb40c5d79ccf48bf5e2aa21e3cdec Mon Sep 17 00:00:00 2001 From: RecursiveZero Date: Thu, 5 Feb 2026 22:29:06 +0530 Subject: [PATCH] [RAC-260002]: changes for marketplace; move actions to member folder --- .github/workflows/auto-assign-project.yml | 2 +- .github/workflows/comment-on-issue.yml | 1 + .github/workflows/format-issue-title.yml | 2 +- .github/workflows/issue-branch-sync.yml | 2 +- .github/workflows/markdown-lint.yml | 2 +- .github/workflows/version-bump.yml | 4 +- .markdownlint.json | 28 -- CHANGELOG.md | 316 ------------------ README.md | 10 +- action.yml | 18 + docs/Usage.md | 2 +- .../branch-notify/action.yml | 0 .../branch-notify/sync_branch.sh | 0 .../bump-version/action.yml | 0 .../actions => member}/bump-version/bump.sh | 0 .../bump-version/changelog.sh | 0 .../format-issue-title/action.yml | 0 .../format-issue-title/format.sh | 0 .../md-lint/.markdownlint.json | 0 .../actions => member}/md-lint/action.yml | 0 .../project-setup/action.yml | 1 - .../project-setup/project-init.sh | 0 package-lock.json | 6 +- package.json | 4 +- scripts/setup-hooks.sh | 37 -- src/index.js | 1 - 26 files changed, 33 insertions(+), 403 deletions(-) delete mode 100644 .markdownlint.json create mode 100644 action.yml rename {.github/actions => member}/branch-notify/action.yml (100%) rename {.github/actions => member}/branch-notify/sync_branch.sh (100%) rename {.github/actions => member}/bump-version/action.yml (100%) rename {.github/actions => member}/bump-version/bump.sh (100%) rename {.github/actions => member}/bump-version/changelog.sh (100%) rename {.github/actions => member}/format-issue-title/action.yml (100%) rename {.github/actions => member}/format-issue-title/format.sh (100%) rename {.github/actions => member}/md-lint/.markdownlint.json (100%) rename {.github/actions => member}/md-lint/action.yml (100%) rename {.github/actions => member}/project-setup/action.yml (97%) rename {.github/actions => member}/project-setup/project-init.sh (100%) delete mode 100755 scripts/setup-hooks.sh delete mode 100644 src/index.js diff --git a/.github/workflows/auto-assign-project.yml b/.github/workflows/auto-assign-project.yml index 0e17648..633c99a 100644 --- a/.github/workflows/auto-assign-project.yml +++ b/.github/workflows/auto-assign-project.yml @@ -19,7 +19,7 @@ jobs: - name: Initialize Project Sidebar & Status env: GH_TOKEN: ${{ secrets.RZ_PROJECT }} - uses: recursivezero/action-club/.github/actions/project-setup@main + uses: recursivezero/action-club/member/project-setup with: issue_url: ${{ github.event.issue.html_url || github.event.pull_request.html_url }} issue_number: ${{ github.event.issue.number || github.event.pull_request.number }} diff --git a/.github/workflows/comment-on-issue.yml b/.github/workflows/comment-on-issue.yml index 899efac..ad42893 100644 --- a/.github/workflows/comment-on-issue.yml +++ b/.github/workflows/comment-on-issue.yml @@ -11,6 +11,7 @@ on: description: "Issue number" required: true type: number + comment_body: description: "Comment text" required: true diff --git a/.github/workflows/format-issue-title.yml b/.github/workflows/format-issue-title.yml index 1554413..c217bce 100644 --- a/.github/workflows/format-issue-title.yml +++ b/.github/workflows/format-issue-title.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Format issue title - uses: recursivezero/action-club/.github/actions/format-issue-title@main + uses: recursivezero/action-club/member/format-issue-title with: prefix: RAC # change this as per your convention dry_run: false diff --git a/.github/workflows/issue-branch-sync.yml b/.github/workflows/issue-branch-sync.yml index 8365bf7..85db398 100644 --- a/.github/workflows/issue-branch-sync.yml +++ b/.github/workflows/issue-branch-sync.yml @@ -18,7 +18,7 @@ jobs: - name: Link Branch to Issue # Point this to your centralized repository - uses: recursivezero/action-club/.github/actions/branch-notify@main + uses: recursivezero/action-club/.github/actions/branch-notify with: issue_prefix: "RAC" # change this as per your convention branch_name: ${{ github.event.ref }} diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml index 9425413..ea0838a 100644 --- a/.github/workflows/markdown-lint.yml +++ b/.github/workflows/markdown-lint.yml @@ -30,4 +30,4 @@ jobs: node-version: "20" - name: Lint Markdown files - uses: recursivezero/action-club/.github/actions/md-lint@main + uses: recursivezero/action-club/member/md-lint diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml index b821310..872560f 100644 --- a/.github/workflows/version-bump.yml +++ b/.github/workflows/version-bump.yml @@ -13,8 +13,8 @@ jobs: runs-on: ubuntu-latest steps: - name: Run bump-version action - uses: recursivezero/action-club/.github/actions/bump-version@main + uses: recursivezero/action-club/member/bump-version with: node-version: "18" enable-bump: "true" - enable-changelog: "true" # toggle changelog update + enable-changelog: "true" # toggle changelog update diff --git a/.markdownlint.json b/.markdownlint.json deleted file mode 100644 index 9ec8b56..0000000 --- a/.markdownlint.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "default": true, - "MD003": { - "style": "consistent" - }, - "MD029": false, - "MD033": { - "allowed_elements": [ - "summary", - "details", - "mark", - "kbd" - ] - }, - "MD007": { - "indent": 2 - }, - "MD013": { - "line_length": 240, - "code_block_line_length": 100, - "tables": false - }, - "no-hard-tabs": false, - "whitespace": false, - "no-duplicate-heading": { - "siblings_only": true - } -} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f79ce4..2ef5987 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,319 +7,3 @@ All notable changes to this repository will be documented in this file. - Initial release. - Added git hooks - Added common workflows and actions - -## [v0.1.2] - Thu, Jan 08 2026 - -- chore: bump patch version -- [main]: added user name -- [main]: quoted text -- [main]: added version bump workflow -- [main]: update action and scripts in package.json -- [main]: workflow, actions and hooks added -- Initial commit - -## [v0.2.0] - Fri, Jan 09 2026 - -- chore: bump minor version -- [main]: update readme with details of workflow #minor -- docs: update changelog for v0.1.2 - -## [v0.2.1] - Thu, Jan 15 2026 - -- chore: bump patch version -- Update badge from template to action in README -- docs: update changelog for v0.2.0 - -## [v0.2.2] - Sat, Jan 17 2026 - -- chore: bump patch version -- [main]: added sync description workflow -- docs: update changelog for v0.2.1 - -## [v0.2.3] - Sat, Jan 17 2026 - -- chore: bump patch version -- [main]: add run-name and echo the op while workflow runs -- docs: update changelog for v0.2.2 - -## [v0.2.4] - Sat, Jan 17 2026 - -- chore: bump patch version -- [main]: now using PAT to grab first line of README -- docs: update changelog for v0.2.3 - -## [v0.2.5] - Sat, Jan 17 2026 - -- chore: bump patch version -- [main]: getting first meaningful line -- docs: update changelog for v0.2.4 - -## [v0.2.6] - Sat, Jan 17 2026 - -- chore: bump patch version -- [main]: -- docs: update changelog for v0.2.5 - -## [v0.2.7] - Mon, Jan 19 2026 - -- chore: bump patch version -- [main]: change issue title job action -- docs: update changelog for v0.2.6 - -## [v0.2.8] - Mon, Jan 19 2026 - -- chore: bump patch version -- [main]: update changelog syntax in workflow -- docs: update changelog for v0.2.7 - -## [v0.2.9] - Tue, Jan 20 2026 - -- chore: bump patch version -- update action with event pull_request_target -- docs: update changelog for v0.2.8 - -## [v0.2.10] - Wed, Jan 28 2026 - -- chore: bump patch version -- [main]: update logic if already exist then do not change issue-title again -- docs: update changelog for v0.2.9 - -## [v0.2.11] - Wed, Jan 28 2026 - -- chore: bump patch version -- [main]: move markdown lint inside action file -- docs: update changelog for v0.2.10 - -## [v0.2.12] - Wed, Jan 28 2026 - -- chore: bump patch version -- [main]: add node setup inside md-lint action -- docs: update changelog for v0.2.11 - -## [v0.2.14] - Wed, Jan 28 2026 - -- chore: bump patch version -- [main]: enable changelog now - -## [v0.2.15] - Wed, Jan 28 2026 - -- chore: bump patch version -- [main]: update description only when README updated -- docs: update changelog for v0.2.14 - -## [v0.2.16] - Wed, Jan 28 2026 - -- chore: bump patch version -- [main]: added bump_type input to handle manually workflow trigger for bump-version action -- docs: update changelog for v0.2.15 - -## [v0.2.17] - Wed, Jan 28 2026 - -- chore: bump patch version -- [main]: undo last change -- [main]: added cliff.toml for summarize changelog -- docs: update changelog for v0.2.16 - -## [v0.2.18] - Fri, Jan 30 2026 - -- chore: bump patch version -- added workflow template folder and author in composite actions -- docs: update changelog for v0.2.17 - -## [v0.2.19] - Fri, Jan 30 2026 - -- chore: bump patch version -- reusable workflow -- docs: update changelog for v0.2.18 - -## [v0.2.20] - Fri, Jan 30 2026 - -- chore: bump patch version -- remove workflow-templates -- docs: update changelog for v0.2.19 - -## [v0.2.21] - Sun, Feb 01 2026 - -- chore: bump patch version -- [main]: docs folder added; reusable workflow -- docs: update changelog for v0.2.20 - -## [v0.2.22] - Sun, Feb 01 2026 - -- chore: bump patch version -- [main]: Merge branch 'main' of github.rz:recursivezero/action-club -- [main]: update filename -- docs: update changelog for v0.2.21 - -## [v0.2.23] - Sun, Feb 01 2026 - -- chore: bump patch version -- [main]: checking again -- docs: update changelog for v0.2.22 - -## [v0.2.24] - Sun, Feb 01 2026 - -- chore: bump patch version -- [main]: Merge branch 'main' of github.rz:recursivezero/action-club -- [main]: remove name -- docs: update changelog for v0.2.23 - -## [v0.2.25] - Sun, Feb 01 2026 - -- chore: bump patch version -- [main]: adding secrets in workflow _call -- docs: update changelog for v0.2.24 - -## [v0.2.26] - Sun, Feb 01 2026 - -- chore: bump patch version -- [main]: added repo name -- docs: update changelog for v0.2.25 - -## [v0.2.27] - Sun, Feb 01 2026 - -- chore: bump patch version -- [main]: Merge branch 'main' of github.rz:recursivezero/action-club -- [main]: track reusable workflow -- docs: update changelog for v0.2.26 - -## [v0.2.28] - Sun, Feb 01 2026 - -- chore: bump patch version -- [main]: update track approach -- docs: update changelog for v0.2.27 - -## [v0.2.29] - Sun, Feb 01 2026 - -- chore: bump patch version -- added wiki sync workflow -- docs: update changelog for v0.2.28 - -## [v0.2.30] - Sun, Feb 01 2026 - -- chore: bump patch version -- added permissions -- docs: update changelog for v0.2.29 - -## [v0.2.31] - Sun, Feb 01 2026 - -- chore: bump patch version -- update docs -- docs: update changelog for v0.2.30 - -## [v0.2.32] - Sun, Feb 01 2026 - -- chore: bump patch version -- update docs -- docs: update changelog for v0.2.31 - -## [v0.2.33] - Sun, Feb 01 2026 - -- chore: bump patch version -- update wiki -- docs: update changelog for v0.2.32 - -## [v0.2.34] - Sun, Feb 01 2026 - -- chore: bump patch version -- wiki wf -- docs: update changelog for v0.2.33 - -## [v0.2.35] - Sun, Feb 01 2026 - -- chore: bump patch version -- wf -- docs: update changelog for v0.2.34 - -## [v0.2.36] - Sun, Feb 01 2026 - -- chore: bump patch version -- added HEAD -- docs: update changelog for v0.2.35 - -## [v0.2.37] - Sun, Feb 01 2026 - -- chore: bump patch version -- added workflow_dispatch -- docs: update changelog for v0.2.36 - -## [v0.2.38] - Sun, Feb 01 2026 - -- chore: bump patch version -- set x -- docs: update changelog for v0.2.37 - -## [v0.2.39] - Sun, Feb 01 2026 - -- chore: bump patch version -- now check -- docs: update changelog for v0.2.38 - -## [v0.2.40] - Sun, Feb 01 2026 - -- chore: bump patch version -- remove checkout -- docs: update changelog for v0.2.39 - -## [v0.2.41] - Sun, Feb 01 2026 - -- chore: bump patch version -- usage -- docs: update changelog for v0.2.40 - -## [v0.2.42] - Sun, Feb 01 2026 - -- chore: bump patch version -- use rsync -- docs: update changelog for v0.2.41 - -## [v0.2.43] - Sun, Feb 01 2026 - -- chore: bump patch version -- update HOME.md -- docs: update changelog for v0.2.42 - -## [v0.2.44] - Tue, Feb 03 2026 - -- chore: bump patch version -- context check -- docs: update changelog for v0.2.43 - -## [v0.2.45] - Tue, Feb 03 2026 - -- chore: bump patch version -- added greet -- greeting -- docs: update changelog for v0.2.44 - -## [v0.2.46] - Tue, Feb 03 2026 - -- chore: bump patch version -- [main]: Merge branch 'main' of github.rz:recursivezero/action-club -- [main]: added workflow docs -- docs: update changelog for v0.2.45 - -## [v0.2.47] - Tue, Feb 03 2026 - -- chore: bump patch version -- [main]: Merge branch 'main' of github.rz:recursivezero/action-club -- [main]: configure git user for wiki pages -- docs: update changelog for v0.2.46 - -## [v0.2.48] - Tue, Feb 03 2026 - -- chore: bump patch version -- [main]: using js in actions -- docs: update changelog for v0.2.47 - -## [v0.2.51] - Wed, Feb 04 2026 - -- chore: bump patch version -- [main]: bump version workflow -- [main]: added badge -- [main]: change condition -- [main]: added bash and script both -- [main]: added badge -- [main]: Merge branch 'main' of github.rz:recursivezero/action-club -- [main]: added comment body -- docs: update changelog for v0.2.48 diff --git a/README.md b/README.md index f3b2099..e722fc4 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,5 @@ # Action Club -[![Auto Format Issue Title](https://github.com/recursivezero/action-club/actions/workflows/format-issue-title.yml/badge.svg)](https://github.com/recursivezero/action-club/actions/workflows/format-issue-title.yml) - -[![Comment on Issue](https://github.com/recursivezero/action-club/actions/workflows/comment-on-issue.yml/badge.svg)](https://github.com/recursivezero/action-club/actions/workflows/comment-on-issue.yml) - -[![Assign Project](https://github.com/recursivezero/action-club/actions/workflows/auto-assign-project.yml/badge.svg)](https://github.com/recursivezero/action-club/actions/workflows/auto-assign-project.yml) - ![Action][action] ![License][license] ![Open Issues][issues] @@ -67,9 +61,9 @@ This workflow runs when we push code into `main` branch then it update the packa See what’s new in each version: [CHANGELOG.md](./CHANGELOG.md) -> :copyright: _RecursiveZero_ Private Limited +:copyright: _RecursiveZero_ Private Limited -> + [action]: https://badgen.net/badge/icon/github?icon=github&label=action [license]: https://badgen.net/github/license/recursivezero/action-club diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..f2d67e4 --- /dev/null +++ b/action.yml @@ -0,0 +1,18 @@ +name: "Action Club" +description: "Contains multiple actions. See README for usage." +author: "recursivezero" + +branding: + icon: "activity" + color: "gray-dark" + +runs: + using: "composite" + steps: + - name: Action-Club + id: action-club + run: | + echo "See README for available actions:" + echo " - action-a" + echo " - action-b" + shell: bash diff --git a/docs/Usage.md b/docs/Usage.md index 255df3f..c9e6101 100644 --- a/docs/Usage.md +++ b/docs/Usage.md @@ -24,7 +24,7 @@ jobs: - uses: actions/checkout@v4 - name: Lint Markdown files - uses: recursivezero/action-club/.github/actions/test-token@main + uses: recursivezero/action-club/member/test-token@main ``` hope it helps. diff --git a/.github/actions/branch-notify/action.yml b/member/branch-notify/action.yml similarity index 100% rename from .github/actions/branch-notify/action.yml rename to member/branch-notify/action.yml diff --git a/.github/actions/branch-notify/sync_branch.sh b/member/branch-notify/sync_branch.sh similarity index 100% rename from .github/actions/branch-notify/sync_branch.sh rename to member/branch-notify/sync_branch.sh diff --git a/.github/actions/bump-version/action.yml b/member/bump-version/action.yml similarity index 100% rename from .github/actions/bump-version/action.yml rename to member/bump-version/action.yml diff --git a/.github/actions/bump-version/bump.sh b/member/bump-version/bump.sh similarity index 100% rename from .github/actions/bump-version/bump.sh rename to member/bump-version/bump.sh diff --git a/.github/actions/bump-version/changelog.sh b/member/bump-version/changelog.sh similarity index 100% rename from .github/actions/bump-version/changelog.sh rename to member/bump-version/changelog.sh diff --git a/.github/actions/format-issue-title/action.yml b/member/format-issue-title/action.yml similarity index 100% rename from .github/actions/format-issue-title/action.yml rename to member/format-issue-title/action.yml diff --git a/.github/actions/format-issue-title/format.sh b/member/format-issue-title/format.sh similarity index 100% rename from .github/actions/format-issue-title/format.sh rename to member/format-issue-title/format.sh diff --git a/.github/actions/md-lint/.markdownlint.json b/member/md-lint/.markdownlint.json similarity index 100% rename from .github/actions/md-lint/.markdownlint.json rename to member/md-lint/.markdownlint.json diff --git a/.github/actions/md-lint/action.yml b/member/md-lint/action.yml similarity index 100% rename from .github/actions/md-lint/action.yml rename to member/md-lint/action.yml diff --git a/.github/actions/project-setup/action.yml b/member/project-setup/action.yml similarity index 97% rename from .github/actions/project-setup/action.yml rename to member/project-setup/action.yml index 398a2d2..19e4c57 100644 --- a/.github/actions/project-setup/action.yml +++ b/member/project-setup/action.yml @@ -32,7 +32,6 @@ runs: run: | # 1. Grant execute permissions to the shell script in the action folder chmod +x ${{ github.action_path }}/project-init.sh - # 2. Execute the logic script with passed arguments # Argument 1: URL, Argument 2: Number, Argument 3: Status Name ${{ github.action_path }}/project-init.sh \ diff --git a/.github/actions/project-setup/project-init.sh b/member/project-setup/project-init.sh similarity index 100% rename from .github/actions/project-setup/project-init.sh rename to member/project-setup/project-init.sh diff --git a/package-lock.json b/package-lock.json index 46a9142..1ba1f1e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@recursivezero/action-club", - "version": "0.2.51", + "version": "2.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@recursivezero/action-club", - "version": "0.2.51", + "version": "2.0.0", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -82,4 +82,4 @@ } } } -} +} \ No newline at end of file diff --git a/package.json b/package.json index 7de8c36..56960f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@recursivezero/action-club", - "version": "0.2.51", + "version": "2.0.0", "private": false, "displayName": "Action club", "description": "collection of useful and smart github actions and workflows", @@ -56,4 +56,4 @@ "last 1 safari version" ] } -} +} \ No newline at end of file diff --git a/scripts/setup-hooks.sh b/scripts/setup-hooks.sh deleted file mode 100755 index 34b1d7c..0000000 --- a/scripts/setup-hooks.sh +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash -set -e - -SOURCE_HOOKS_DIR=".githooks" -GIT_HOOKS_DIR=".git/hooks" - -# Ensure we are inside a git repository -if [ ! -d "$GIT_HOOKS_DIR" ]; then - echo "Error: Run this script from the root of a Git repository." - exit 1 -fi - -# Install all valid git hooks from .githooks -for HOOK in "$SOURCE_HOOKS_DIR"/*; do - [ -f "$HOOK" ] || continue - - HOOK_NAME=$(basename "$HOOK") - - # Allow only valid git hook names - case "$HOOK_NAME" in - pre-*|post-*|commit-msg|prepare-commit-msg) - ;; - *) - echo "Skipping non-hook file: $HOOK_NAME" - continue - ;; - esac - - cp "$HOOK" "$GIT_HOOKS_DIR/$HOOK_NAME" - # 🔒 CRLF → LF (critical for Windows) - sed -i 's/\r$//' "$GIT_HOOKS_DIR/$HOOK_NAME" - chmod +x "$GIT_HOOKS_DIR/$HOOK_NAME" - - echo "Installed hook: $HOOK_NAME" -done - -echo "All hooks have been set up successfully." diff --git a/src/index.js b/src/index.js deleted file mode 100644 index f6fe0cd..0000000 --- a/src/index.js +++ /dev/null @@ -1 +0,0 @@ -console.log('template repository'); \ No newline at end of file