Skip to content

Commit

Permalink
stop printing and set output of getLabels to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
FireLemons committed Feb 5, 2022
1 parent 030e88d commit 24b861d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ async function getColumnCardIssues (columnId) {
// Get a list of labels for an issue
// @param {number} issueNumber The number of the issue to fetch labels for
// @return {Promise} A promise representing fetching of the labels for an issue
// @fulfilled {Array} An array of label strings
// @fulfilled {Array} An array of label strings with all characters lower case
// @throws {TypeError} for a parameter of the incorrect type
// @throws {RangeError} when issueNumber is less than 1
// @throws {Error} if an error occurs while trying to fetch the project data
Expand All @@ -161,10 +161,7 @@ async function getIssueLabels (issueNumber) {
issue_number: issueNumber
})

console.log("LOLOLOLOLOLOLO")
console.log(labelObjectList)

return labelObjectList.data.map((labelObject) => labelObject.name)
return labelObjectList.data.map((labelObject) => labelObject.name.toLowerCase())
}

// Get the project with name passed into projectName from the current repo
Expand Down

0 comments on commit 24b861d

Please sign in to comment.