Skip to content

Commit

Permalink
chore: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Jan 15, 2025
1 parent 3089ac2 commit 0a203b8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions scripts/github-release.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ export async function parseGitRepo(remote = 'origin', opts) {

export function createReleaseClient(type) {
switch (type) {
// case 'gitlab':
// return createGitLabClient();
case 'github':
return createGitHubClient();
default:
Expand Down Expand Up @@ -91,13 +89,8 @@ export async function createRelease(
};

if (gitDryRun) {
// const repo = await client.repos.get({
// owner: releaseOptions.owner,
// repo: releaseOptions.repo,
// });
const host = 'github.com';
console.info(
// JSON.stringify(releaseOptions)
`${c.bgMagenta('[dry-run]')} 🔗 https://${host}/${releaseOptions.owner}/${releaseOptions.repo}/releases/tag/${releaseOptions.tag_name} 🏷️ (GitHub Release)`
);
return Promise.resolve();
Expand Down

0 comments on commit 0a203b8

Please sign in to comment.