@airscript/ghitgud 1.0.2 → 2.0.0

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.
Files changed (50) hide show
  1. package/README.md +104 -18
  2. package/VERSION +1 -1
  3. package/dist/index.js +793 -0
  4. package/dist/templates/base.json +12 -0
  5. package/dist/templates/conventional.json +52 -0
  6. package/dist/templates/github.json +47 -0
  7. package/package.json +59 -36
  8. package/templates/base.json +1 -1
  9. package/templates/conventional.json +51 -52
  10. package/templates/github.json +1 -1
  11. package/.env.base +0 -2
  12. package/.github/CODEOWNERS +0 -1
  13. package/.github/FUNDING.yml +0 -2
  14. package/.github/ISSUE_TEMPLATE/build.md +0 -9
  15. package/.github/ISSUE_TEMPLATE/chore.md +0 -9
  16. package/.github/ISSUE_TEMPLATE/ci.md +0 -9
  17. package/.github/ISSUE_TEMPLATE/documentation.md +0 -9
  18. package/.github/ISSUE_TEMPLATE/feature.md +0 -9
  19. package/.github/ISSUE_TEMPLATE/fix.md +0 -9
  20. package/.github/ISSUE_TEMPLATE/performance.md +0 -9
  21. package/.github/ISSUE_TEMPLATE/refactor.md +0 -9
  22. package/.github/ISSUE_TEMPLATE/style.md +0 -9
  23. package/.github/ISSUE_TEMPLATE/test.md +0 -9
  24. package/.github/PULL_REQUEST_TEMPLATE.md +0 -28
  25. package/.github/workflows/tests.yml +0 -36
  26. package/CHANGELOG.md +0 -23
  27. package/CITATION.cff +0 -13
  28. package/CODE_OF_CONDUCT.md +0 -121
  29. package/CONTRIBUTING.md +0 -2
  30. package/SECURITY.md +0 -9
  31. package/app/api.ts +0 -136
  32. package/app/ascii.ts +0 -18
  33. package/app/commands.ts +0 -117
  34. package/app/config.ts +0 -9
  35. package/app/functions.ts +0 -43
  36. package/app/ghitgud.ts +0 -18
  37. package/app/library.ts +0 -157
  38. package/app/types.ts +0 -8
  39. package/dist/app/api.js +0 -127
  40. package/dist/app/ascii.js +0 -20
  41. package/dist/app/commands.js +0 -89
  42. package/dist/app/config.js +0 -12
  43. package/dist/app/functions.js +0 -37
  44. package/dist/app/ghitgud.js +0 -19
  45. package/dist/app/library.js +0 -122
  46. package/dist/app/types.js +0 -2
  47. package/dist/tests/library.test.js +0 -81
  48. package/scripts/clean.sh +0 -2
  49. package/tests/library.test.ts +0 -77
  50. package/tsconfig.json +0 -113
@@ -0,0 +1,12 @@
1
+ [
2
+ {
3
+ "name": "bug",
4
+ "color": "d73a4a",
5
+ "description": "Something isn't working"
6
+ },
7
+ {
8
+ "name": "feature",
9
+ "color": "a2eeef",
10
+ "description": "New feature or request"
11
+ }
12
+ ]
@@ -0,0 +1,52 @@
1
+ [
2
+ {
3
+ "name": "build",
4
+ "color": "0052cc",
5
+ "description": "Changes that affect the build system or external dependencies."
6
+ },
7
+ {
8
+ "name": "chore",
9
+ "color": "8c8c8c",
10
+ "description": "General maintenance such as dependency updates."
11
+ },
12
+ {
13
+ "name": "ci",
14
+ "color": "6a3d1c",
15
+ "description": "Continuous integration changes."
16
+ },
17
+ {
18
+ "name": "documentation",
19
+ "color": "0e8a16",
20
+ "description": "Improvements or additions to documentation."
21
+ },
22
+ {
23
+ "name": "feature",
24
+ "color": "1d7a1d",
25
+ "description": "New feature or request."
26
+ },
27
+ {
28
+ "name": "fix",
29
+ "color": "d73a49",
30
+ "description": "Something isn't working."
31
+ },
32
+ {
33
+ "name": "performance",
34
+ "color": "b60205",
35
+ "description": "Code changes that improve performance."
36
+ },
37
+ {
38
+ "name": "refactor",
39
+ "color": "fbca04",
40
+ "description": "Changes that neither fix a bug nor add a feature but improve the code."
41
+ },
42
+ {
43
+ "name": "style",
44
+ "color": "fef2c0",
45
+ "description": "Changes related to code style, like formatting."
46
+ },
47
+ {
48
+ "name": "test",
49
+ "color": "d4c5f9",
50
+ "description": "Adding or updating tests."
51
+ }
52
+ ]
@@ -0,0 +1,47 @@
1
+ [
2
+ {
3
+ "name": "bug",
4
+ "color": "d73a4a",
5
+ "description": "Something isn't working"
6
+ },
7
+ {
8
+ "name": "documentation",
9
+ "color": "0075ca",
10
+ "description": "Improvements or additions to documentation"
11
+ },
12
+ {
13
+ "name": "duplicate",
14
+ "color": "cfd3d7",
15
+ "description": "This issue or pull request already exists"
16
+ },
17
+ {
18
+ "name": "enhancement",
19
+ "color": "a2eeef",
20
+ "description": "New feature or request"
21
+ },
22
+ {
23
+ "name": "good first issue",
24
+ "color": "7057ff",
25
+ "description": "Good for newcomers"
26
+ },
27
+ {
28
+ "name": "help wanted",
29
+ "color": "008672",
30
+ "description": "Extra attention is needed"
31
+ },
32
+ {
33
+ "name": "invalid",
34
+ "color": "e4e669",
35
+ "description": "This doesn't seem right"
36
+ },
37
+ {
38
+ "name": "question",
39
+ "color": "d876e3",
40
+ "description": "Further information is requested"
41
+ },
42
+ {
43
+ "name": "wontfix",
44
+ "color": "ffffff",
45
+ "description": "This will not be worked on"
46
+ }
47
+ ]
package/package.json CHANGED
@@ -1,38 +1,61 @@
1
1
  {
2
- "name": "@airscript/ghitgud",
3
- "version": "1.0.2",
4
- "description": "A simple CLI to give superpowers to GitHub.",
5
- "main": "dist/app/ghitgud.js",
6
- "bin": {
7
- "ghitgud": "dist/app/ghitgud.js"
8
- },
9
- "dependencies": {
10
- "commander": "^14.0.0",
11
- "dotenv": "^16.5.0",
12
- "figlet": "^1.8.1"
13
- },
14
- "scripts": {
15
- "test": "vitest",
16
- "build": "rm -rf dist && tsc",
17
- "start": "node dist/app/ghitgud.js"
18
- },
19
- "repository": {
20
- "type": "git",
21
- "url": "git+https://github.com/airscripts/ghitgud.git"
22
- },
23
- "author": "airscripts",
24
- "license": "MIT",
25
- "bugs": {
26
- "url": "https://github.com/airscripts/ghitgud/issues"
27
- },
28
- "homepage": "https://github.com/airscripts/ghitgud#readme",
29
- "devDependencies": {
30
- "@types/figlet": "^1.7.0",
31
- "@types/node": "^24.0.0",
32
- "typescript": "^5.8.3",
33
- "vitest": "^3.2.3"
34
- },
35
- "directories": {
36
- "test": "tests"
37
- }
2
+ "name": "@airscript/ghitgud",
3
+ "version": "2.0.0",
4
+ "description": "A simple CLI to give superpowers to GitHub.",
5
+ "main": "dist/index.js",
6
+ "files": [
7
+ "dist",
8
+ "templates",
9
+ "VERSION"
10
+ ],
11
+ "bin": {
12
+ "ghitgud": "dist/index.js"
13
+ },
14
+ "engines": {
15
+ "node": ">=24",
16
+ "pnpm": ">=10"
17
+ },
18
+ "dependencies": {
19
+ "commander": "^14.0.0",
20
+ "consola": "3.4.2",
21
+ "dotenv": "^16.5.0",
22
+ "figlet": "^1.8.1"
23
+ },
24
+ "scripts": {
25
+ "test": "vitest",
26
+ "test:coverage": "vitest run --coverage",
27
+ "build": "rm -rf dist && vite build && cp -r templates dist/",
28
+ "start": "node dist/index.js",
29
+ "typecheck": "tsc --noEmit",
30
+ "lint": "eslint src/ tests/",
31
+ "format": "prettier --write .",
32
+ "format:check": "prettier --check .",
33
+ "clean": "rm -rf dist coverage"
34
+ },
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/airscripts/ghitgud.git"
38
+ },
39
+ "author": "airscripts",
40
+ "license": "MIT",
41
+ "bugs": {
42
+ "url": "https://github.com/airscripts/ghitgud/issues"
43
+ },
44
+ "homepage": "https://github.com/airscripts/ghitgud#readme",
45
+ "devDependencies": {
46
+ "@eslint/js": "10.0.1",
47
+ "@types/figlet": "^1.7.0",
48
+ "@types/node": "^24.0.0",
49
+ "@vitest/coverage-v8": "^3.2.4",
50
+ "eslint": "10.3.0",
51
+ "eslint-config-prettier": "10.1.8",
52
+ "prettier": "3.8.3",
53
+ "typescript": "^5.8.3",
54
+ "typescript-eslint": "8.59.2",
55
+ "vite": "^8.0.11",
56
+ "vitest": "^3.2.4"
57
+ },
58
+ "directories": {
59
+ "test": "tests"
60
+ }
38
61
  }
@@ -9,4 +9,4 @@
9
9
  "color": "a2eeef",
10
10
  "description": "New feature or request"
11
11
  }
12
- ]
12
+ ]
@@ -1,53 +1,52 @@
1
1
  [
2
- {
3
- "name": "build",
4
- "color": "0052cc",
5
- "description": "Changes that affect the build system or external dependencies."
6
- },
7
- {
8
- "name": "chore",
9
- "color": "8c8c8c",
10
- "description": "General maintenance such as dependency updates."
11
- },
12
- {
13
- "name": "ci",
14
- "color": "6a3d1c",
15
- "description": "Continuous integration changes."
16
- },
17
- {
18
- "name": "documentation",
19
- "color": "0e8a16",
20
- "description": "Improvements or additions to documentation."
21
- },
22
- {
23
- "name": "feature",
24
- "color": "1d7a1d",
25
- "description": "New feature or request."
26
- },
27
- {
28
- "name": "fix",
29
- "color": "d73a49",
30
- "description": "Something isn't working."
31
- },
32
- {
33
- "name": "performance",
34
- "color": "b60205",
35
- "description": "Code changes that improve performance."
36
- },
37
- {
38
- "name": "refactor",
39
- "color": "fbca04",
40
- "description": "Changes that neither fix a bug nor add a feature but improve the code."
41
- },
42
- {
43
- "name": "style",
44
- "color": "fef2c0",
45
- "description": "Changes related to code style, like formatting."
46
- },
47
- {
48
- "name": "test",
49
- "color": "d4c5f9",
50
- "description": "Adding or updating tests."
51
- }
52
- ]
53
-
2
+ {
3
+ "name": "build",
4
+ "color": "0052cc",
5
+ "description": "Changes that affect the build system or external dependencies."
6
+ },
7
+ {
8
+ "name": "chore",
9
+ "color": "8c8c8c",
10
+ "description": "General maintenance such as dependency updates."
11
+ },
12
+ {
13
+ "name": "ci",
14
+ "color": "6a3d1c",
15
+ "description": "Continuous integration changes."
16
+ },
17
+ {
18
+ "name": "documentation",
19
+ "color": "0e8a16",
20
+ "description": "Improvements or additions to documentation."
21
+ },
22
+ {
23
+ "name": "feature",
24
+ "color": "1d7a1d",
25
+ "description": "New feature or request."
26
+ },
27
+ {
28
+ "name": "fix",
29
+ "color": "d73a49",
30
+ "description": "Something isn't working."
31
+ },
32
+ {
33
+ "name": "performance",
34
+ "color": "b60205",
35
+ "description": "Code changes that improve performance."
36
+ },
37
+ {
38
+ "name": "refactor",
39
+ "color": "fbca04",
40
+ "description": "Changes that neither fix a bug nor add a feature but improve the code."
41
+ },
42
+ {
43
+ "name": "style",
44
+ "color": "fef2c0",
45
+ "description": "Changes related to code style, like formatting."
46
+ },
47
+ {
48
+ "name": "test",
49
+ "color": "d4c5f9",
50
+ "description": "Adding or updating tests."
51
+ }
52
+ ]
@@ -44,4 +44,4 @@
44
44
  "color": "ffffff",
45
45
  "description": "This will not be worked on"
46
46
  }
47
- ]
47
+ ]
package/.env.base DELETED
@@ -1,2 +0,0 @@
1
- GHITGUD_GITHUB_REPO=
2
- GHITGUD_GITHUB_TOKEN=
@@ -1 +0,0 @@
1
- * @airscripts
@@ -1,2 +0,0 @@
1
- github: [airscripts]
2
- ko_fi: airscript
@@ -1,9 +0,0 @@
1
- ---
2
- name: Build
3
- about: Got a build system problem? Let’s fix it!
4
- title: ''
5
- labels: build
6
- ---
7
-
8
- **What’s wrong with the build?**
9
- Describe the issue in the build process.
@@ -1,9 +0,0 @@
1
- ---
2
- name: Chore
3
- about: General upkeep time!
4
- title: ''
5
- labels: chore
6
- ---
7
-
8
- **What needs maintenance or updates?**
9
- Let us know what tasks should be done.
@@ -1,9 +0,0 @@
1
- ---
2
- name: CI
3
- about: Continuous Integration to the rescue!
4
- title: ''
5
- labels: ci
6
- ---
7
-
8
- **What needs fixing in the CI pipeline?**
9
- Describe what went wrong or needs improvement in CI.
@@ -1,9 +0,0 @@
1
- ---
2
- name: Documentation
3
- about: Help us improve our docs!
4
- title: ''
5
- labels: documentation
6
- ---
7
-
8
- **What’s missing from the docs?**
9
- Point out what needs better explanation or an update.
@@ -1,9 +0,0 @@
1
- ---
2
- name: Feature
3
- about: Suggest something awesome for this project!
4
- title: ''
5
- labels: feature
6
- ---
7
-
8
- **What amazing feature do you want to see?**
9
- Tell us your brilliant idea!
@@ -1,9 +0,0 @@
1
- ---
2
- name: Fix
3
- about: Found something broken? Let's fix it!
4
- title: ''
5
- labels: fix
6
- ---
7
-
8
- **What’s not working?**
9
- Describe the bug and how we can fix it.
@@ -1,9 +0,0 @@
1
- ---
2
- name: Performance
3
- about: Speed it up!
4
- title: ''
5
- labels: performance
6
- ---
7
-
8
- **How can we make it faster?**
9
- Share ideas on improving the performance.
@@ -1,9 +0,0 @@
1
- ---
2
- name: Refactor
3
- about: Time to clean up the code!
4
- title: ''
5
- labels: refactor
6
- ---
7
-
8
- **What needs to be improved?**
9
- Let us know what part of the code can be cleaner or more efficient.
@@ -1,9 +0,0 @@
1
- ---
2
- name: Style
3
- about: Let's make it look prettier!
4
- title: ''
5
- labels: style
6
- ---
7
-
8
- **What needs a style touch-up?**
9
- Tell us how we can make it look awesome.
@@ -1,9 +0,0 @@
1
- ---
2
- name: Tests
3
- about: Let’s add or fix some tests!
4
- title: ''
5
- labels: tests
6
- ---
7
-
8
- **What needs testing?**
9
- Tell us what should be covered with tests.
@@ -1,28 +0,0 @@
1
- # Pull Request
2
-
3
- Please fill out the details below to submit your pull request.
4
-
5
- ## Label:
6
-
7
- - **Choose one label for your PR:**
8
- - [ ] **Feature**
9
- - [ ] **Bug**
10
- - [ ] **Documentation**
11
- - [ ] **Styling**
12
- - [ ] **Refactor**
13
- - [ ] **Performance**
14
- - [ ] **Tests**
15
- - [ ] **Chore**
16
- - [ ] **Build**
17
- - [ ] **CI**
18
-
19
- ## Linked Issues:
20
-
21
- - **This PR closes the following issue(s):**
22
- - Closes #<issue-number>
23
- - (Add any other related issues here)
24
-
25
- ## Solution:
26
-
27
- - **Describe the solution:**
28
- - Briefly explain what you've done and how it addresses the issue.
@@ -1,36 +0,0 @@
1
- name: Tests
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- pull_request:
9
- branches:
10
- - main
11
-
12
- jobs:
13
- test:
14
- runs-on: ubuntu-latest
15
-
16
- steps:
17
- - name: Checkout code
18
- uses: actions/checkout@v4
19
-
20
- - name: Setup Node.js
21
- uses: actions/setup-node@v4
22
-
23
- with:
24
- node-version: 22
25
-
26
- - name: Install pnpm
27
- uses: pnpm/action-setup@v4
28
-
29
- with:
30
- version: 10
31
-
32
- - name: Install dependencies
33
- run: pnpm install
34
-
35
- - name: Run tests
36
- run: pnpm run test
package/CHANGELOG.md DELETED
@@ -1,23 +0,0 @@
1
- # Changelog
2
- All notable changes to this project will be documented in this file.
3
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) with some edits,
4
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
-
6
- # 1.0.2
7
-
8
- ## What's Changed
9
-
10
- - noop: deployment trigger
11
-
12
- # 1.0.1
13
-
14
- ## What's Changed
15
-
16
- - refactor: change the base metadata folder
17
-
18
- # 1.0.0
19
-
20
- ## What's Changed
21
-
22
- - feat: add base cli with labels, ping and config commands;
23
- - feat: add github label templates;
package/CITATION.cff DELETED
@@ -1,13 +0,0 @@
1
- cff-version: 1.2.0
2
- message: If you use this software in your work, please cite it using the following metadata
3
- title: Ghitgud
4
- authors:
5
- - family-names: Sardone
6
- given-names: Francesco
7
- keywords:
8
- - credit
9
- - citation
10
- version: 1.0.2
11
- date-released: 2025-06-13
12
- license: GPL-3.0
13
- repository-code: https://github.com/airscripts/ghitgud