Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Testsuite Server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Feneas
federation
Testsuite Server
Commits
5081d982
Commit
5081d982
authored
Dec 14, 2018
by
zauberstuhl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix replace all slash in project slug
related to subgroup support
parent
728c9d90
Pipeline
#877
passed with stages
in 3 minutes and 30 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
build.go
build.go
+1
-1
webhook_create.go
webhook_create.go
+1
-1
No files found.
build.go
View file @
5081d982
...
...
@@ -312,7 +312,7 @@ func (build *Build) Update(status BuildStatus) error {
_
,
err
:=
build
.
Project
.
ApiRequest
(
"POST"
,
fmt
.
Sprintf
(
"/projects/%s/statuses/%s"
,
strings
.
Replace
(
build
.
Project
.
Slug
,
"/"
,
"%2F"
,
1
),
strings
.
Replace
(
build
.
Project
.
Slug
,
"/"
,
"%2F"
,
-
1
),
build
.
MergeRequest
.
Sha
),
values
)
if
err
!=
nil
{
...
...
webhook_create.go
View file @
5081d982
...
...
@@ -82,7 +82,7 @@ func createGitlabHook(project Project) error {
serverUrl
:=
fmt
.
Sprintf
(
"%s/hook"
,
confd
.
StringDefault
(
"server.domain"
,
"http://localhost:8181"
))
path
:=
fmt
.
Sprintf
(
"/projects/%s/hooks"
,
strings
.
Replace
(
project
.
Slug
,
"/"
,
"%2F"
,
1
))
"/projects/%s/hooks"
,
strings
.
Replace
(
project
.
Slug
,
"/"
,
"%2F"
,
-
1
))
resp
,
err
:=
project
.
ApiRequest
(
"GET"
,
path
,
url
.
Values
{})
if
err
!=
nil
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment