Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -947,6 +947,57 @@ DevShelf is powered by the open-source community! We provide tailored issue temp

---

## ⚡ GitHub Action (`RitualDev-Lab/DevShelf`)

Keep your open-source developer tool or free public API automatically synchronized with **DevShelf** on every release or push using our reusable GitHub Action.

1. Add a `.devshelf.yml` manifest at the root of your repository:

```yaml
name: FastLint CLI
type: cli
category: CLI & Developer Utilities
description: Blazing fast open-source linter with zero paywalls.
url: https://fastlint.example.dev
repo: https://github.com/example/fastlint
license: MIT
freeTier: 100% Free & Open Source
statusTags: [Open Source, Offline]
```

2. Add the workflow to `.github/workflows/devshelf-sync.yml`:

```yaml
name: Sync to DevShelf
on:
release:
types: [published]
push:
branches: [main]
paths: ['.devshelf.yml']

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: RitualDev-Lab/DevShelf@v1
with:
manifest_path: '.devshelf.yml'
# Optional: PAT with repo scope to open a direct PR (falls back to Edge API / Issue link)
# github_token: ${{ secrets.DEVSHELF_TOKEN }}
```

| Input / Output | Kind | Default | Description |
| :--- | :---: | :--- | :--- |
| `manifest_path` | Input | `.devshelf.yml` | Path to the manifest file in your repository |
| `github_token` | Input | `""` | Optional PAT to open a direct PR on `RitualDev-Lab/DevShelf` |
| `submission_endpoint` | Input | `https://mcp.ritualdev.in/api/v1/devshelf/submit` | Submission API fallback endpoint |
| `dry_run` | Input | `false` | Validate and normalize manifest without network calls |
| `tool_name`, `valid`, `sync_mode`, `pr_url`, `issue_url` | Output | — | Normalized metadata, sync mode, PR URL, and prefilled submission URL |

---

## 🛠️ How to Contribute via Pull Request (PR)
1. Fork this repository and clone your fork.
2. Add your entry to the appropriate JSON file in the `shelf/` directory (`shelf/apis.json`, `shelf/cli-tools.json`, `shelf/ai-tools.json`, etc.).
Expand Down
51 changes: 51 additions & 0 deletions scripts/build-readme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1255,6 +1255,57 @@ DevShelf is powered by the open-source community! We provide tailored issue temp

---

## ⚡ GitHub Action (${B}RitualDev-Lab/DevShelf${B})

Keep your open-source developer tool or free public API automatically synchronized with **DevShelf** on every release or push using our reusable GitHub Action.

1. Add a ${B}.devshelf.yml${B} manifest at the root of your repository:

${BT}yaml
name: FastLint CLI
type: cli
category: CLI & Developer Utilities
description: Blazing fast open-source linter with zero paywalls.
url: https://fastlint.example.dev
repo: https://github.com/example/fastlint
license: MIT
freeTier: 100% Free & Open Source
statusTags: [Open Source, Offline]
${BT}

2. Add the workflow to ${B}.github/workflows/devshelf-sync.yml${B}:

${BT}yaml
name: Sync to DevShelf
on:
release:
types: [published]
push:
branches: [main]
paths: ['.devshelf.yml']

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: RitualDev-Lab/DevShelf@v1
with:
manifest_path: '.devshelf.yml'
# Optional: PAT with repo scope to open a direct PR (falls back to Edge API / Issue link)
# github_token: \${{ secrets.DEVSHELF_TOKEN }}
${BT}

| Input / Output | Kind | Default | Description |
| :--- | :---: | :--- | :--- |
| ${B}manifest_path${B} | Input | ${B}.devshelf.yml${B} | Path to the manifest file in your repository |
| ${B}github_token${B} | Input | ${B}""${B} | Optional PAT to open a direct PR on ${B}RitualDev-Lab/DevShelf${B} |
| ${B}submission_endpoint${B} | Input | ${B}https://mcp.ritualdev.in/api/v1/devshelf/submit${B} | Submission API fallback endpoint |
| ${B}dry_run${B} | Input | ${B}false${B} | Validate and normalize manifest without network calls |
| ${B}tool_name${B}, ${B}valid${B}, ${B}sync_mode${B}, ${B}pr_url${B}, ${B}issue_url${B} | Output | — | Normalized metadata, sync mode, PR URL, and prefilled submission URL |

---

## 🛠️ How to Contribute via Pull Request (PR)
1. Fork this repository and clone your fork.
2. Add your entry to the appropriate JSON file in the ${B}shelf/${B} directory (${B}shelf/apis.json${B}, ${B}shelf/cli-tools.json${B}, ${B}shelf/ai-tools.json${B}, etc.).
Expand Down
5 changes: 5 additions & 0 deletions tests/phase4-growth-flywheel.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ test("Phase 4: Reusable GitHub Action & .devshelf.yml parser/validator work clea
const actionRaw = fs.readFileSync(actionYmlPath, "utf8");
assert.ok(actionRaw.includes("manifest_path"));
assert.ok(actionRaw.includes("action-entry.mjs"));
assert.ok(actionRaw.includes("branding:"));
assert.ok(actionRaw.includes("icon: 'book-open'"));
assert.ok(actionRaw.includes("color: 'purple'"));
const readmeRaw = fs.readFileSync(path.resolve(process.cwd(), "README.md"), "utf8");
assert.ok(readmeRaw.includes("RitualDev-Lab/DevShelf@v1"));

const sampleYaml = `
# DevShelf Manifest
Expand Down