trello-cli-unofficial 0.6.9 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -13
- package/bunfig.toml +2 -0
- package/dist/main.js +10709 -10223
- package/package.json +20 -2
- package/scripts/check-coverage.js +67 -0
- package/src/application/use-cases/AuthenticateUserUseCase.ts +2 -2
- package/src/application/use-cases/CreateCardUseCase.ts +2 -2
- package/src/application/use-cases/DeleteCardUseCase.ts +1 -1
- package/src/application/use-cases/GetBoardsUseCase.ts +2 -2
- package/src/application/use-cases/GetCardsUseCase.ts +2 -2
- package/src/application/use-cases/GetListsUseCase.ts +2 -2
- package/src/application/use-cases/MoveCardUseCase.ts +2 -2
- package/src/application/use-cases/UpdateCardUseCase.ts +2 -2
- package/src/domain/repositories/ConfigRepository.ts +1 -1
- package/src/domain/repositories/TrelloRepository.ts +7 -1
- package/src/domain/services/AuthenticationService.ts +2 -2
- package/src/infrastructure/repositories/FileConfigRepository.ts +4 -6
- package/src/infrastructure/repositories/TrelloApiRepository.ts +3 -3
- package/src/presentation/cli/AuthController.ts +38 -0
- package/src/presentation/cli/BoardController.ts +85 -0
- package/src/presentation/cli/CardController.ts +319 -0
- package/src/presentation/cli/CommandController.ts +113 -10
- package/src/presentation/cli/ConfigController.ts +57 -0
- package/src/presentation/cli/MainMenuController.ts +62 -0
- package/src/presentation/cli/TrelloCliController.ts +35 -390
- package/src/presentation/cli/index.ts +5 -0
- package/test_trigger.txt +3 -0
- package/.eslintignore +0 -26
package/README.md
CHANGED
|
@@ -21,7 +21,8 @@ An unofficial Trello CLI using Power-Up authentication, built with Bun for maxim
|
|
|
21
21
|
- 📦 **Move Cards**: Between lists in the same board
|
|
22
22
|
- 🛠️ **Traditional CLI**: Also works as a command-line tool
|
|
23
23
|
- 🤖 **Automated CI/CD**: Semantic versioning and NPM publishing on every release
|
|
24
|
-
-
|
|
24
|
+
- � **Quality Gates**: 95% test coverage threshold enforced in CI/CD
|
|
25
|
+
- �🔒 **Secure Publishing**: NPM provenance with GitHub Actions OIDC
|
|
25
26
|
|
|
26
27
|
## 📦 Installation
|
|
27
28
|
|
|
@@ -164,36 +165,48 @@ tcu
|
|
|
164
165
|
|
|
165
166
|
## 🤖 CI/CD & Automation
|
|
166
167
|
|
|
167
|
-
This project uses automated CI/CD with semantic versioning
|
|
168
|
+
This project uses automated CI/CD with semantic versioning based on **commit messages**:
|
|
168
169
|
|
|
169
170
|
### Version Bumping
|
|
170
171
|
|
|
171
|
-
- `feat:` commits → Minor version bump (0.5.0 → 0.6.0)
|
|
172
|
-
- `fix:` commits → Patch version bump (0.5.0 → 0.5.1)
|
|
173
|
-
- `BREAKING CHANGE:` → Major version bump (0.5.0 → 1.0.0)
|
|
172
|
+
- `feat:` commits → **Minor version bump** (0.5.0 → 0.6.0)
|
|
173
|
+
- `fix:` commits → **Patch version bump** (0.5.0 → 0.5.1)
|
|
174
|
+
- `BREAKING CHANGE:` in commit body → **Major version bump** (0.5.0 → 1.0.0)
|
|
175
|
+
- Other commits (docs, test, chore) → **No release**
|
|
174
176
|
|
|
175
177
|
### Automated Publishing
|
|
176
178
|
|
|
177
179
|
Every push to `main` branch triggers:
|
|
178
|
-
1. **CI Pipeline**: Linting, type checking, tests, and build
|
|
179
|
-
2. **Release Pipeline**:
|
|
180
|
-
3. **
|
|
180
|
+
1. **CI Pipeline**: Linting, type checking, tests, coverage, and build
|
|
181
|
+
2. **Release Pipeline**: Automatic version bump based on commit message
|
|
182
|
+
3. **NPM Publishing**: Package published with provenance and signed builds
|
|
183
|
+
4. **GitHub Release**: Automatic release notes and changelog
|
|
181
184
|
|
|
182
185
|
### Conventional Commits
|
|
183
186
|
|
|
184
187
|
```bash
|
|
185
|
-
# Feature commit (minor version)
|
|
188
|
+
# Feature commit (minor version bump)
|
|
186
189
|
git commit -m "feat: add new card templates"
|
|
187
190
|
|
|
188
|
-
# Bug fix (patch version)
|
|
191
|
+
# Bug fix (patch version bump)
|
|
189
192
|
git commit -m "fix: handle network timeouts gracefully"
|
|
190
193
|
|
|
191
|
-
# Breaking change (major version)
|
|
192
|
-
git commit -m "feat!: redesign authentication flow
|
|
194
|
+
# Breaking change (major version bump) - Method 1
|
|
195
|
+
git commit -m "feat!: redesign authentication flow"
|
|
193
196
|
|
|
194
|
-
|
|
197
|
+
# Breaking change (major version bump) - Method 2
|
|
198
|
+
git commit -m "feat: redesign authentication flow
|
|
199
|
+
|
|
200
|
+
BREAKING CHANGE: token format changed from legacy API to Power-Up"
|
|
201
|
+
|
|
202
|
+
# Non-releasing commits
|
|
203
|
+
git commit -m "docs: update installation guide"
|
|
204
|
+
git commit -m "test: add integration tests"
|
|
205
|
+
git commit -m "chore: update dependencies"
|
|
195
206
|
```
|
|
196
207
|
|
|
208
|
+
**Important:** Version bumps are **automatic** and based on the **commit message when merged to main**, not PR titles or descriptions.
|
|
209
|
+
|
|
197
210
|
## 🛠️ Development
|
|
198
211
|
|
|
199
212
|
### Project Structure
|
package/bunfig.toml
ADDED