chore(deps-dev): bump eslint from 7.32.0 to 8.2.0, run [weblate steam oreversion orespongeversions gitlabcoverage] (#7235)
* chore(deps-dev): bump eslint from 7.32.0 to 8.2.0 Bumps [eslint](https://github.com/eslint/eslint) from 7.32.0 to 8.2.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint/eslint/compare/v7.32.0...v8.2.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * deps: update ts-eslint plugins * chore: apply linter fixes Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Caleb Cartwright <caleb.cartwright@outlook.com> Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com>
This commit is contained in:
@@ -95,13 +95,7 @@ export default class GitlabCoverage extends BaseSvgScrapingService {
|
||||
}
|
||||
}
|
||||
|
||||
async fetch({
|
||||
user,
|
||||
repo,
|
||||
branch,
|
||||
gitlab_url: baseUrl = 'https://gitlab.com',
|
||||
job_name: jobName,
|
||||
}) {
|
||||
async fetch({ user, repo, branch, baseUrl = 'https://gitlab.com', jobName }) {
|
||||
// Since the URL doesn't return a usable value when an invalid job name is specified,
|
||||
// it is recommended to not use the query param at all if not required
|
||||
jobName = jobName ? `?job=${jobName}` : ''
|
||||
@@ -124,13 +118,16 @@ export default class GitlabCoverage extends BaseSvgScrapingService {
|
||||
return Number(coverage.slice(0, -1))
|
||||
}
|
||||
|
||||
async handle({ user, repo, branch }, { gitlab_url, job_name }) {
|
||||
async handle(
|
||||
{ user, repo, branch },
|
||||
{ gitlab_url: baseUrl, job_name: jobName }
|
||||
) {
|
||||
const { message: coverage } = await this.fetch({
|
||||
user,
|
||||
repo,
|
||||
branch,
|
||||
gitlab_url,
|
||||
job_name,
|
||||
baseUrl,
|
||||
jobName,
|
||||
})
|
||||
return this.constructor.render({
|
||||
coverage: this.constructor.transform({ coverage }),
|
||||
|
||||
Reference in New Issue
Block a user