forked from xanzy/go-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Escape tagName path in release related URLs
Signed-off-by: Sune Keller <[email protected]>
- Loading branch information
Showing
4 changed files
with
106 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -244,6 +244,54 @@ const ( | |
} | ||
}` | ||
|
||
// exampleReleaseResponse provides fixture for Releases tests. | ||
exampleReleaseWithMetadataResponse = `{ | ||
"tag_name": "v0.1.2+example-metadata", | ||
"description": "description", | ||
"name": "Awesome app v0.1 alpha", | ||
"description_html": "description_html", | ||
"created_at": "2019-01-03T01:55:18.203Z", | ||
"author": { | ||
"id": 1, | ||
"name": "Administrator", | ||
"username": "root", | ||
"state": "active", | ||
"avatar_url": "https://www.gravatar.com/avatar/", | ||
"web_url": "http://localhost:3000/root" | ||
}, | ||
"commit": { | ||
"id": "f8d3d94cbd347e924aa7b715845e439d00e80ca4", | ||
"short_id": "f8d3d94c", | ||
"title": "Initial commit", | ||
"created_at": "2019-01-03T01:53:28.000Z", | ||
"parent_ids": [], | ||
"message": "Initial commit", | ||
"author_name": "Administrator", | ||
"author_email": "[email protected]", | ||
"authored_date": "2019-01-03T01:53:28.000Z", | ||
"committer_name": "Administrator", | ||
"committer_email": "[email protected]", | ||
"committed_date": "2019-01-03T01:53:28.000Z" | ||
}, | ||
"assets": { | ||
"count": 2, | ||
"sources": [ | ||
{ | ||
"format": "zip", | ||
"url": "http://localhost:3000/archive/v0.1/awesome-app-v0.1.zip" | ||
}, | ||
{ | ||
"format": "tar.gz", | ||
"url": "http://localhost:3000/archive/v0.1/awesome-app-v0.1.tar.gz" | ||
} | ||
], | ||
"links": [] | ||
} | ||
}` | ||
|
||
// exampleTagName provides a fixture for a tag name. | ||
exampleTagName = "v0.1" | ||
|
||
// exampleTagName provides a fixture for a tag name. | ||
exampleTagNameWithMetadata = "v0.1.2+example-metadata" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters