Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
maubot
gitlab
Commits
d2e28fed
Commit
d2e28fed
authored
7 years ago
by
Tulir Asokan
Browse files
Options
Downloads
Patches
Plain Diff
Update long flag keys
parent
90857f1c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gitlab-commands.go
+1
-1
1 addition, 1 deletion
gitlab-commands.go
gitlab-webhook.go
+3
-3
3 additions, 3 deletions
gitlab-webhook.go
with
4 additions
and
4 deletions
gitlab-commands.go
+
1
−
1
View file @
d2e28fed
...
...
@@ -25,7 +25,7 @@ import (
"maunium.net/go/mautrix"
)
var
gitlabToken
=
flag
.
MakeFull
(
"t"
,
"token"
,
"GitLab access token"
,
""
)
.
String
()
var
gitlabToken
=
flag
.
MakeFull
(
"t"
,
"
gitlab-
token"
,
"GitLab access token"
,
""
)
.
String
()
var
gitlabDomain
=
flag
.
MakeFull
(
"d"
,
"gitlab-domain"
,
"GitLab domain"
,
"https://gitlab.com"
)
.
String
()
var
git
*
gitlab
.
Client
...
...
This diff is collapsed.
Click to expand it.
gitlab-webhook.go
+
3
−
3
View file @
d2e28fed
...
...
@@ -27,9 +27,9 @@ import (
flag
"maunium.net/go/mauflag"
)
var
gitlabListenAddr
=
flag
.
MakeFull
(
"l"
,
"
gitlab
"
,
"GitLab listen address"
,
":8080"
)
.
String
()
var
gitlabListenPath
=
flag
.
MakeFull
(
"g"
,
"
gitlab
-path"
,
"GitLab listen path"
,
"/webhooks"
)
.
String
()
var
gitlabSecret
=
flag
.
MakeFull
(
"e"
,
"secret"
,
"GitLab secret"
,
""
)
.
String
()
var
gitlabListenAddr
=
flag
.
MakeFull
(
"l"
,
"
webhook-listen
"
,
"GitLab listen address"
,
":8080"
)
.
String
()
var
gitlabListenPath
=
flag
.
MakeFull
(
"g"
,
"
webhook
-path"
,
"GitLab listen path"
,
"/webhooks"
)
.
String
()
var
gitlabSecret
=
flag
.
MakeFull
(
"e"
,
"
webhook-
secret"
,
"GitLab secret"
,
""
)
.
String
()
func
addRoomToHeaders
(
handler
http
.
Handler
)
http
.
Handler
{
return
http
.
HandlerFunc
(
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment