Skip to content

Commit

Permalink
Add support for gitea
Browse files Browse the repository at this point in the history
  • Loading branch information
misery committed Jul 22, 2024
1 parent 4e06a36 commit 18a226c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions contrib/mercurial_git_push.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@
environment: https://docs.python.org/3/tutorial/venv.html
This hook was tested with "hg serve", hgkeeper, Heptapod, Kallithea,
SCM-Manager, Gitea and Gogs as a remote hosting platform
and a local repository.
Expand All @@ -93,9 +96,6 @@
pretxnchangegroup.rb = /path/to/hook/mercurial_git_push.py
#pretxnchangegroup.rb = /path/to/hook/reviewboard.sh
This hook was tested with "hg serve", hgkeeper, Heptapod, Kallithea,
SCM-Manager and Gogs as a remote hosting platform and a local repository.
### Git
Expand Down Expand Up @@ -1425,6 +1425,11 @@ def __init__(self, name, review_request_class, review_differ_class):
self.repo_name = \
e['HEPTAPOD_PROJECT_NAMESPACE_FULL_PATH'] + '/' + \
e['HEPTAPOD_PROJECT_PATH']
elif 'GITEA_REPO_NAME' in e and 'GITEA_PUSHER_NAME' in e and\
'GITEA_REPO_USER_NAME' in e:
self.submitter = e['GITEA_PUSHER_NAME']
self.repo_name = e['GITEA_REPO_USER_NAME'] + '/' + \
e['GITEA_REPO_NAME']
elif 'GOGS_REPO_NAME' in e and 'GOGS_AUTH_USER_NAME' in e and\
'GOGS_REPO_OWNER_NAME' in e:
self.submitter = e['GOGS_AUTH_USER_NAME']
Expand Down

0 comments on commit 18a226c

Please sign in to comment.