Skip to content

Commit a5e514c

Browse files
committed
refactor: remove commented code
1 parent 5bd5d16 commit a5e514c

File tree

2 files changed

+0
-26
lines changed

2 files changed

+0
-26
lines changed

dist/index.mjs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -72877,19 +72877,6 @@ const commit = async (config, files, message, tag) => {
7287772877
}
7287872878

7287972879
if (tag) {
72880-
// const tagResponse = await octokit.request('POST /repos/{owner}/{repo}/git/tags', {
72881-
// owner,
72882-
// repo,
72883-
// tag,
72884-
// message: tag,
72885-
// object: commitResponse.data.sha,
72886-
// type: 'commit',
72887-
// headers,
72888-
// })
72889-
72890-
// if (debug) {
72891-
// echo`${JSON.stringify(tagResponse.data, null, 2)}`
72892-
// }
7289372880
// Update Reference
7289472881
// https://docs.github.com/en/rest/git/refs?apiVersion=2022-11-28#update-a-reference
7289572882
const updateTagResponse = await octokit.request('POST /repos/{owner}/{repo}/git/refs', {

src/commit.mjs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -128,19 +128,6 @@ export const commit = async (config, files, message, tag) => {
128128
}
129129

130130
if (tag) {
131-
// const tagResponse = await octokit.request('POST /repos/{owner}/{repo}/git/tags', {
132-
// owner,
133-
// repo,
134-
// tag,
135-
// message: tag,
136-
// object: commitResponse.data.sha,
137-
// type: 'commit',
138-
// headers,
139-
// })
140-
141-
// if (debug) {
142-
// echo`${JSON.stringify(tagResponse.data, null, 2)}`
143-
// }
144131
// Update Reference
145132
// https://docs.github.com/en/rest/git/refs?apiVersion=2022-11-28#update-a-reference
146133
const updateTagResponse = await octokit.request('POST /repos/{owner}/{repo}/git/refs', {

0 commit comments

Comments
 (0)