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
2 changes: 1 addition & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '25'
- uses: wgtechlabs/package-build-flow-action@v2.0.1
with:
npm-token: ${{ secrets.NPM_TOKEN }}
Expand Down
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Thanks for your interest in contributing to **GitHub Labels Template**! Here's h

## Prerequisites

- [Node.js](https://nodejs.org) (v25+)
- [Bun](https://bun.sh) (v1.0+)
- [GitHub CLI](https://cli.github.com) (`gh`) installed and authenticated

Expand All @@ -19,7 +20,8 @@ bun install

```bash
# Run the CLI locally
bun src/index.ts apply --help
bun run build
node dist/index.js apply --help

# Build for production
bun run build
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ A CLI tool to apply a curated set of GitHub labels to any repository using `gh`
- 📊 **Clear Output**: Structured logging powered by [@wgtechlabs/log-engine](https://github.com/wgtechlabs/log-engine) with color-coded levels and emoji
- 🎨 **ASCII Banner**: Beautiful ANSI Shadow figlet banner with version and author info
- 🤖 **AI Label Generator**: Generate custom labels using GitHub Copilot — interactive pick, refine, and apply
- 🌐 **Dual Runtime**: Works with both `npx` and `bunx`
- 🌐 **Node Runtime + Bun Toolchain**: Runs on Node.js, built and tested with Bun

## Quick Start

```bash
# Using npx
npx github-labels-template apply

# Using bunx
bunx github-labels-template apply
# Using npm exec
npm exec github-labels-template apply
```

That's it. All 23 labels are applied to the current repo.
Expand Down Expand Up @@ -326,6 +326,8 @@ OPTIONS (preview)

This project uses the [Bun test framework](https://bun.sh/docs/cli/test) for testing.

Runtime execution uses Node.js (latest recommended).

```bash
# Run all tests
bun test
Expand Down
9 changes: 7 additions & 2 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
],
"scripts": {
"build": "bun build src/index.ts --outfile dist/index.js --target node --packages external",
"dev": "bun src/index.ts",
"preview": "bun src/index.ts preview",
"dev": "bun run build && node dist/index.js",
"preview": "bun run build && node dist/index.js preview",
"start": "bun run build && node dist/index.js",
"test": "bun test"
},
"engines": {
"node": ">=18",
"node": ">=25",
"bun": ">=1.0"
Comment on lines 19 to 21
},
"keywords": [
Expand All @@ -41,6 +42,7 @@
"picocolors": "^1.1.1"
},
"devDependencies": {
"@types/node": "^25.7.0",
"@types/bun": "latest",
"@types/figlet": "^1.7.0"
}
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "bundler",
"types": ["bun-types"],
"types": ["node", "bun-types"],
"resolveJsonModule": true,
"strict": true,
"skipLibCheck": true,
Expand Down