Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 22, 2024
1 parent 8efa8f0 commit 0bb5c00
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions scripts/gh_scripts/weekly_status_report.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function main() {

await prepareRecentComments(config.leads)
.then((results) => lines.push(...results))

const openPullRequests = await fetchOpenPullRequests()
const nonDraftPullRequests = openPullRequests.filter((pull) => !pull.draft)

Expand Down Expand Up @@ -80,7 +80,7 @@ function getConfig() {
/**
* Returns the Slack ID of the lead having the given GitHub username.
*
* @param {string} githubUsername
* @param {string} githubUsername
* @param {Array<Lead>} leads
* @returns {string} The lead's Slack ID, or "UNKNOWN"
*/
Expand Down Expand Up @@ -164,7 +164,7 @@ async function prepareUntriagedIssues() {
})

const output = [
'*Untriaged Issues*',
'*Untriaged Issues*',
` <${searchResultsUrl}|Issues> with the "Needs: Triage" label:`
]
for (const issue of untriagedIssues) {
Expand Down Expand Up @@ -198,7 +198,7 @@ function prepareUnassignedPullRequests(pullRequests) {
* their priorities.
*
* @param {Array<Record>} pullRequests Non-draft pull request records
* @param {Array<Lead>} leads
* @param {Array<Lead>} leads
* @returns {Array<string>} Messages with links to each lead's PRs
*/
function prepareAssignedPullRequests(pullRequests, leads) {
Expand Down Expand Up @@ -262,8 +262,8 @@ function prepareAssignedPullRequests(pullRequests, leads) {
* PRs labeled with any of the `excludedLabels` will not be included in the
* output of this function.
*
* @param {Array<Record>} pullRequests
* @param {Array<Lead>} leads
* @param {Array<Record>} pullRequests
* @param {Array<Lead>} leads
* @returns {Array<string>} Messages with the current status of each staff PR
*/
function prepareStaffPullRequests(pullRequests, leads) {
Expand Down Expand Up @@ -301,7 +301,7 @@ function prepareStaffPullRequests(pullRequests, leads) {
const assigneeName = pull.assignee?.login
// Issue title and link:
output.push(` • <${pull.html_url}|*#${pull.number}* | ${pull.title}>`)

// Creator, assignee, and priority:
const now = Date.now()
const openedAt = Date.parse(pull.created_at)
Expand All @@ -319,8 +319,8 @@ function prepareStaffPullRequests(pullRequests, leads) {
* Prepares and returns messages about each given lead's pull requests that are labeled
* `Needs: Submitter Input`.
*
* @param {Array<Record>} pullRequests
* @param {Array<Lead>} leads
* @param {Array<Record>} pullRequests
* @param {Array<Lead>} leads
* @returns {Array<string>} Messages about PRs that require submitter input before being reviewed
*/
function prepareSubmitterInput(pullRequests, leads) {
Expand Down Expand Up @@ -351,8 +351,8 @@ function prepareSubmitterInput(pullRequests, leads) {
* Slack message is composed by joining each line of text in the `lines`
* array with newline characters.
*
* @param {Array<string>} lines
* @param {string} slackChannel
* @param {Array<string>} lines
* @param {string} slackChannel
* @returns {Promise<Response>}
*/
async function publishToSlack(lines, slackChannel) {
Expand Down

0 comments on commit 0bb5c00

Please sign in to comment.