Skip to content

Commit

Permalink
feat: implement as a git sub-command
Browse files Browse the repository at this point in the history
By exposing the package as `git-pr` we are able to call it as `git pr`. This is a nice UX improvement.
  • Loading branch information
Joris Conijn committed Feb 20, 2022
1 parent d4dcc4d commit 5d22e4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ radon = "^5.1.0"

[tool.poetry.scripts]
pull-request-codecommit = "pull_request_codecommit:main"
git-pr = "pull_request_codecommit:main"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
packages=setuptools.find_packages(where="."),
install_requires=[
"click==8.0.3",
"junit-xml==1.9",
],
entry_points={
"console_scripts": [
"pull-request-codecommit = pull_request_codecommit:main",
"git-pr = pull_request_codecommit:main",
],
},
python_requires=">=3.8",
Expand Down

0 comments on commit 5d22e4f

Please sign in to comment.