ccntrq / git-jira-branch

Manage branches for your Jira tickets
https://www.npmjs.com/package/git-jira-branch
MIT License
11 stars 2 forks source link

feat: add tidy command that removes branches for finished tickets #509

Open ccntrq opened 2 weeks ago

ccntrq commented 2 weeks ago

Deletes branches for tickets that are done.

Closes: #257

github-actions[bot] commented 2 weeks ago

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 75.3% 976 / 1296
🔵 Statements 75.3% 976 / 1296
🔵 Functions 74.62% 50 / 67
🔵 Branches 94.21% 163 / 173
File Coverage
File Stmts % Branch % Funcs % Lines Uncovered Lines
Changed Files
e2e-test/util.ts 0% 0% 0% 0% 1-7, 9-18, 20-23, 26, 28, 30-31, 33, 35, 37-41, 43, 45-47, 49-50, 52-59, 61-68, 70-73, 75-78, 80-83, 85-88
src/cli.ts 88.88% 100% 50% 88.88% 60, 62-64, 69
src/types.ts 85.89% 100% 50% 85.89% 123-124, 131-138, 182
src/commands/tidy/tidy.command.ts 41.86% 100% 100% 41.86% 15-33, 35-40
src/commands/tidy/tidy.handler.ts 11.11% 100% 0% 11.11% 7-15, 17-36, 38-40, 42-47, 49-50
src/utils/associated-branch.ts 100% 100% 100% 100%
Unchanged Files
commitlint.config.js 0% 0% 0% 0% 1-4
src/main.ts 0% 0% 0% 0% 1, 3-5, 7-12, 14-16, 18, 20-23, 25-31, 33-44, 46-50
src/commands/create/create.command.ts 77.27% 100% 100% 77.27% 31-40
src/commands/create/create.handler.ts 95% 90% 100% 95% 41, 79-80
src/commands/delete/delete.command.ts 67.56% 100% 100% 67.56% 34-41, 44-47
src/commands/delete/delete.handler.ts 84.84% 100% 100% 84.84% 37-41
src/commands/info/info.command.ts 67.85% 100% 100% 67.85% 16-24
src/commands/info/info.handler.ts 100% 100% 100% 100%
src/commands/list/list.command.ts 68.75% 100% 100% 68.75% 8-12
src/commands/open/open.command.ts 100% 100% 100% 100%
src/commands/open/open.handler.ts 60.71% 100% 75% 60.71% 10-20
src/commands/switch/switch.command.ts 86.95% 100% 100% 86.95% 17-19
src/commands/switch/switch.handler.ts 100% 100% 100% 100%
src/schema/branch-not-merged.ts 100% 100% 100% 100%
src/schema/no-associated-branch.ts 100% 100% 100% 100%
src/services/app-config.ts 92.68% 100% 87.5% 92.68% 88-93
src/services/git-client.ts 89.22% 100% 100% 89.22% 146-147, 149-164
src/services/jira-client.ts 90% 91.66% 100% 90% 61-63, 91-95
src/test/mock-implementations.ts 100% 100% 100% 100%
src/test/util.ts 88.23% 90.9% 85.71% 88.23% 51, 53-55
src/test/dummies/dummyJiraIssue.ts 100% 100% 100% 100%
src/utils/branch-formatter.ts 100% 100% 100% 100%
src/utils/issue-formatter.ts 97.01% 62.5% 100% 97.01% 42, 55
src/utils/jira-key-from-branch.ts 87.5% 100% 75% 87.5% 17-19
src/utils/jira-key.ts 100% 100% 100% 100%
src/utils/result-formatter.ts 83.33% 100% 0% 83.33% 8, 11
src/utils/slugger.ts 100% 100% 100% 100%
src/utils/url-opener.ts 21.42% 100% 0% 21.42% 7, 9-10, 12-14, 17-22, 25, 28, 30-37
Generated in workflow #1908 for commit ff2107d by the Vitest Coverage Report Action