@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.
- package/README.md +104 -18
- package/VERSION +1 -1
- package/dist/index.js +793 -0
- package/dist/templates/base.json +12 -0
- package/dist/templates/conventional.json +52 -0
- package/dist/templates/github.json +47 -0
- package/package.json +59 -36
- package/templates/base.json +1 -1
- package/templates/conventional.json +51 -52
- package/templates/github.json +1 -1
- package/.env.base +0 -2
- package/.github/CODEOWNERS +0 -1
- package/.github/FUNDING.yml +0 -2
- package/.github/ISSUE_TEMPLATE/build.md +0 -9
- package/.github/ISSUE_TEMPLATE/chore.md +0 -9
- package/.github/ISSUE_TEMPLATE/ci.md +0 -9
- package/.github/ISSUE_TEMPLATE/documentation.md +0 -9
- package/.github/ISSUE_TEMPLATE/feature.md +0 -9
- package/.github/ISSUE_TEMPLATE/fix.md +0 -9
- package/.github/ISSUE_TEMPLATE/performance.md +0 -9
- package/.github/ISSUE_TEMPLATE/refactor.md +0 -9
- package/.github/ISSUE_TEMPLATE/style.md +0 -9
- package/.github/ISSUE_TEMPLATE/test.md +0 -9
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -28
- package/.github/workflows/tests.yml +0 -36
- package/CHANGELOG.md +0 -23
- package/CITATION.cff +0 -13
- package/CODE_OF_CONDUCT.md +0 -121
- package/CONTRIBUTING.md +0 -2
- package/SECURITY.md +0 -9
- package/app/api.ts +0 -136
- package/app/ascii.ts +0 -18
- package/app/commands.ts +0 -117
- package/app/config.ts +0 -9
- package/app/functions.ts +0 -43
- package/app/ghitgud.ts +0 -18
- package/app/library.ts +0 -157
- package/app/types.ts +0 -8
- package/dist/app/api.js +0 -127
- package/dist/app/ascii.js +0 -20
- package/dist/app/commands.js +0 -89
- package/dist/app/config.js +0 -12
- package/dist/app/functions.js +0 -37
- package/dist/app/ghitgud.js +0 -19
- package/dist/app/library.js +0 -122
- package/dist/app/types.js +0 -2
- package/dist/tests/library.test.js +0 -81
- package/scripts/clean.sh +0 -2
- package/tests/library.test.ts +0 -77
- package/tsconfig.json +0 -113
|
@@ -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
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
}
|
package/templates/base.json
CHANGED
|
@@ -1,53 +1,52 @@
|
|
|
1
1
|
[
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
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
|
+
]
|
package/templates/github.json
CHANGED
package/.env.base
DELETED
package/.github/CODEOWNERS
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
* @airscripts
|
package/.github/FUNDING.yml
DELETED
|
@@ -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
|