ai-cr 3.2.2__py3-none-any.whl → 3.3.0__py3-none-any.whl
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.
- {ai_cr-3.2.2.dist-info → ai_cr-3.3.0.dist-info}/LICENSE +21 -21
- {ai_cr-3.2.2.dist-info → ai_cr-3.3.0.dist-info}/METADATA +1 -1
- ai_cr-3.3.0.dist-info/RECORD +41 -0
- {ai_cr-3.2.2.dist-info → ai_cr-3.3.0.dist-info}/WHEEL +1 -1
- gito/__main__.py +4 -4
- gito/bootstrap.py +90 -90
- gito/cli.py +255 -244
- gito/cli_base.py +104 -94
- gito/commands/__init__.py +1 -1
- gito/commands/deploy.py +138 -138
- gito/commands/fix.py +160 -160
- gito/commands/gh_post_review_comment.py +111 -111
- gito/commands/gh_react_to_comment.py +217 -217
- gito/commands/linear_comment.py +53 -53
- gito/commands/repl.py +30 -30
- gito/commands/version.py +8 -8
- gito/config.toml +450 -448
- gito/constants.py +15 -14
- gito/context.py +19 -19
- gito/core.py +520 -508
- gito/env.py +8 -7
- gito/gh_api.py +116 -116
- gito/issue_trackers.py +50 -50
- gito/pipeline.py +83 -83
- gito/pipeline_steps/jira.py +62 -62
- gito/pipeline_steps/linear.py +85 -85
- gito/project_config.py +85 -85
- gito/report_struct.py +136 -136
- gito/tpl/answer.j2 +25 -25
- gito/tpl/github_workflows/components/env-vars.j2 +11 -11
- gito/tpl/github_workflows/components/installs.j2 +23 -23
- gito/tpl/github_workflows/gito-code-review.yml.j2 +32 -32
- gito/tpl/github_workflows/gito-react-to-comments.yml.j2 +70 -70
- gito/tpl/partial/aux_files.j2 +8 -8
- gito/tpl/questions/changes_summary.j2 +55 -55
- gito/tpl/questions/release_notes.j2 +26 -26
- gito/tpl/questions/test_cases.j2 +37 -37
- gito/utils.py +267 -267
- ai_cr-3.2.2.dist-info/RECORD +0 -41
- {ai_cr-3.2.2.dist-info → ai_cr-3.3.0.dist-info}/entry_points.txt +0 -0
gito/constants.py
CHANGED
@@ -1,14 +1,15 @@
|
|
1
|
-
from pathlib import Path
|
2
|
-
from .env import Env
|
3
|
-
|
4
|
-
PROJECT_GITO_FOLDER = ".gito"
|
5
|
-
PROJECT_CONFIG_FILE_NAME = "config.toml"
|
6
|
-
PROJECT_CONFIG_FILE_PATH = Path(".gito") / PROJECT_CONFIG_FILE_NAME
|
7
|
-
PROJECT_CONFIG_BUNDLED_DEFAULTS_FILE = Path(__file__).resolve().parent / PROJECT_CONFIG_FILE_NAME
|
8
|
-
HOME_ENV_PATH = Path("~/.gito/.env").expanduser()
|
9
|
-
JSON_REPORT_FILE_NAME = "code-review-report.json"
|
10
|
-
GITHUB_MD_REPORT_FILE_NAME = "code-review-report.md"
|
11
|
-
EXECUTABLE = "gito"
|
12
|
-
TEXT_ICON_URL = 'https://raw.githubusercontent.com/Nayjest/Gito/main/press-kit/logo/gito-bot-1_64top.png' # noqa: E501
|
13
|
-
HTML_TEXT_ICON = f'<a href="https://github.com/Nayjest/Gito"><img src="{TEXT_ICON_URL}" align="left" width=64 height=50 title="Gito v{Env.gito_version}"/></a>' # noqa: E501
|
14
|
-
HTML_CR_COMMENT_MARKER = '<!-- GITO_COMMENT:CODE_REVIEW_REPORT -->'
|
1
|
+
from pathlib import Path
|
2
|
+
from .env import Env
|
3
|
+
|
4
|
+
PROJECT_GITO_FOLDER = ".gito"
|
5
|
+
PROJECT_CONFIG_FILE_NAME = "config.toml"
|
6
|
+
PROJECT_CONFIG_FILE_PATH = Path(".gito") / PROJECT_CONFIG_FILE_NAME
|
7
|
+
PROJECT_CONFIG_BUNDLED_DEFAULTS_FILE = Path(__file__).resolve().parent / PROJECT_CONFIG_FILE_NAME
|
8
|
+
HOME_ENV_PATH = Path("~/.gito/.env").expanduser()
|
9
|
+
JSON_REPORT_FILE_NAME = "code-review-report.json"
|
10
|
+
GITHUB_MD_REPORT_FILE_NAME = "code-review-report.md"
|
11
|
+
EXECUTABLE = "gito"
|
12
|
+
TEXT_ICON_URL = 'https://raw.githubusercontent.com/Nayjest/Gito/main/press-kit/logo/gito-bot-1_64top.png' # noqa: E501
|
13
|
+
HTML_TEXT_ICON = f'<a href="https://github.com/Nayjest/Gito"><img src="{TEXT_ICON_URL}" align="left" width=64 height=50 title="Gito v{Env.gito_version}"/></a>' # noqa: E501
|
14
|
+
HTML_CR_COMMENT_MARKER = '<!-- GITO_COMMENT:CODE_REVIEW_REPORT -->'
|
15
|
+
REFS_VALUE_ALL = '!all'
|
gito/context.py
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
from dataclasses import dataclass, field
|
2
|
-
from typing import Iterable, TYPE_CHECKING
|
3
|
-
|
4
|
-
from unidiff.patch import PatchSet, PatchedFile
|
5
|
-
from git import Repo
|
6
|
-
|
7
|
-
|
8
|
-
if TYPE_CHECKING:
|
9
|
-
from .project_config import ProjectConfig
|
10
|
-
from .report_struct import Report
|
11
|
-
|
12
|
-
|
13
|
-
@dataclass
|
14
|
-
class Context:
|
15
|
-
report: "Report"
|
16
|
-
config: "ProjectConfig"
|
17
|
-
diff: PatchSet | Iterable[PatchedFile]
|
18
|
-
repo: Repo
|
19
|
-
pipeline_out: dict = field(default_factory=dict)
|
1
|
+
from dataclasses import dataclass, field
|
2
|
+
from typing import Iterable, TYPE_CHECKING
|
3
|
+
|
4
|
+
from unidiff.patch import PatchSet, PatchedFile
|
5
|
+
from git import Repo
|
6
|
+
|
7
|
+
|
8
|
+
if TYPE_CHECKING:
|
9
|
+
from .project_config import ProjectConfig
|
10
|
+
from .report_struct import Report
|
11
|
+
|
12
|
+
|
13
|
+
@dataclass
|
14
|
+
class Context:
|
15
|
+
report: "Report"
|
16
|
+
config: "ProjectConfig"
|
17
|
+
diff: PatchSet | Iterable[PatchedFile]
|
18
|
+
repo: Repo
|
19
|
+
pipeline_out: dict = field(default_factory=dict)
|