-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Replace GOGS with GITEA in variable names #103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
i'll probably rewrite the Dockerfile. |
The WebHook name is still "gogs" and route includes |
Current coverage is 2.24% (diff: 100%)@@ master #103 diff @@
========================================
Files 32 32
Lines 7521 7521
Methods 0 0
Messages 0 0
Branches 0 0
========================================
Hits 169 169
Misses 7335 7335
Partials 17 17
|
@@ -26,7 +26,7 @@ var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLe | |||
type PullRequestType int | |||
|
|||
const ( | |||
PULL_REQUEST_GOGS PullRequestType = iota | |||
PULL_REQUEST_GITEA PullRequestType = iota | |||
PLLL_ERQUEST_GIT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cleaning this up as well would be nice :)
Also maybe renaming the init-files? :) |
Typo cleaned
|
Init files renamed
|
What about this one? 😄 https://github.com/go-gitea/gitea/blob/master/scripts/systemd/gogs.service |
Also fixes #102 with latest commit (uses "gitea" in all init scripts) |
@@ -26,8 +26,8 @@ var PullRequestQueue = sync.NewUniqueQueue(setting.Repository.PullRequestQueueLe | |||
type PullRequestType int | |||
|
|||
const ( | |||
PULL_REQUEST_GOGS PullRequestType = iota | |||
PLLL_ERQUEST_GIT | |||
PULL_REQUEST_GITEA PullRequestType = iota |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Constants should be named lowerCamelCase for unexported ones and UpperCamelCase for exported ones.
https://github.com/golang/go/wiki/CodeReviewComments#mixed-caps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use a separate PR for cleaning that up ? I'm just focusing on ^GOGS^GITEA here...
(and maybe we could use some automatici linting check to spot those)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please see #110
Still use GOGS_WORK_DIR and GOGS_CUSTOM env variables as a fallback if the equivalent GITEA_* are not set, warning user about the need for change. Does not change "gogs" to "gitea" in webhook type name Because "gogs" hook type is part of the API (routes) and used in templates... Closes gogs#87
LGTM |
* Add GetFormatPatch receiver for a repository Includes test * Use binary for GetFormatPatch Also add missing test file * Add empty line
Still use GOGS_WORK_DIR and GOGS_CUSTOM env variables
as a fallback if the equivalent GITEA_* are not set,
warning user about the need for change.
Also change "gogs" to "gitea" in webhook type name
Closes #87