Skip to content

Commit

Permalink
fix: path contains unescaped characters
Browse files Browse the repository at this point in the history
  • Loading branch information
No06 committed May 7, 2024
1 parent f942f41 commit a791170
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ async function deleteOlderReleases(keepLatest, keepMinDownloadCount, deleteExpir
try {
const _ = await fetch({
...commonOpts,
path: `/repos/${owner}/${repo}/git/refs/tags/${tagName}`,
path: `/repos/${owner}/${repo}/git/refs/tags/${encodeURI(tagName)}`,
method: "DELETE",
});
} catch (error) {
Expand Down

0 comments on commit a791170

Please sign in to comment.