Skip to content

Commit

Permalink
fix bug (#98026)
Browse files Browse the repository at this point in the history
  • Loading branch information
it-harrison authored Nov 29, 2024
1 parent 7f85b16 commit 8b5de4d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/github-actions/gov-team/create-cc-completed-ticket.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ async function closeIssue(number) {

// create completed ticket
async function createCompletedTicket(title, milestone) {
const URL = "issues";
const payload = {
owner,
repo,
Expand All @@ -145,7 +144,7 @@ async function createCompletedTicket(title, milestone) {
payload.milestone = milestone;
}

const { data: { number } } = await axiosInstanceGH.post(URL, payload);
const { data: { number } } = await axiosInstanceGH.post("issues", payload);
return number;
}

Expand Down Expand Up @@ -252,7 +251,7 @@ async function main() {
const _milestone = milestone?.number ?? null;

// create completed ticket
const newTicketNumber = await createCompletedTicket(newTitle, _milestone.number);
const newTicketNumber = await createCompletedTicket(newTitle, _milestone);

// close ticket
await closeIssue(newTicketNumber);
Expand Down

0 comments on commit 8b5de4d

Please sign in to comment.