Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
7f61f3cc
Unverified
Commit
7f61f3cc
authored
Apr 10, 2020
by
Stephanie Closson
Committed by
GitHub
Apr 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: 404 is returned as an exception. Catch and if 404, don't worry about it (#23505)
parent
3dde8585
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
packages/grafana-toolkit/src/cli/utils/githubRelease.ts
+7
-0
No files found.
packages/grafana-toolkit/src/cli/utils/githubRelease.ts
View file @
7f61f3cc
...
...
@@ -77,7 +77,14 @@ class GitHubRelease {
if
(
latestRelease
.
data
.
tag_name
===
`v
${
pluginInfo
.
version
}
`
)
{
await
this
.
git
.
client
.
delete
(
`releases/
${
latestRelease
.
data
.
id
}
`
);
}
}
catch
(
reason
)
{
if
(
reason
.
response
.
status
!==
404
)
{
// 404 just means no release found. Not an error. Anything else though, re throw the error
throw
reason
;
}
}
try
{
// Now make the release
const
newReleaseResponse
=
await
this
.
git
.
client
.
post
(
'releases'
,
{
tag_name
:
`v
${
pluginInfo
.
version
}
`
,
...
...
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