ci: Fix JS style issues

This commit is contained in:
Florian Bruhin 2023-08-17 14:51:53 +02:00
parent ffbbc3d9e7
commit 8795b88d35
1 changed files with 2 additions and 6 deletions

View File

@ -54,11 +54,7 @@ jobs:
}
console.log(`release_branches: ${release_branches}`);
// Get newest release branch (biggest version number)
const sorted = release_branches.sort(
function (a, b) {
return a.localeCompare(b, undefined, { numeric: true, sensitivity: 'base' });
}
);
const sorted = release_branches.sort((a, b) => a.localeCompare(b, undefined, { numeric: true, sensitivity: 'base' }));
console.log(`sorted: ${sorted}`);
return sorted.at(-1);
result-encoding: string
@ -190,7 +186,7 @@ jobs:
repo: context.repo.repo,
release_id: "${{ needs.prepare.outputs.release_id }}",
draft: false,
body: "Check the [changelog](https://github.com/qutebrowser/qutebrowser/blob/master/doc/changelog.asciidoc) for changes in this release."
body: "Check the [changelog](https://github.com/qutebrowser/qutebrowser/blob/master/doc/changelog.asciidoc) for changes in this release.",
})
irc:
timeout-minutes: 2