Skip to content

Commit

Permalink
use main as default branch
Browse files Browse the repository at this point in the history
  • Loading branch information
calebcartwright committed Oct 16, 2021
1 parent dafe285 commit bf35c0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion services/gitlab/gitlab-pipeline-status.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class GitlabPipelineStatus extends BaseSvgScrapingService {

async handle(
{ project },
{ gitlab_url: baseUrl = 'https://gitlab.com', branch = 'master' }
{ gitlab_url: baseUrl = 'https://gitlab.com', branch = 'main' }
) {
const data = await this.fetch({
project,
Expand Down
6 changes: 2 additions & 4 deletions services/gitlab/gitlab-pipeline-status.tester.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ t.create('Pipeline status')

t.create('Pipeline status (nested groups)')
.get(
'/pipeline-status/megabyte-labs/dockerfile/ci-pipeline/ansible-lint.json'
'/pipeline-status/megabyte-labs/dockerfile/ci-pipeline/ansible-lint.json?branch=master'
)
.expectBadge({
label: 'build',
Expand Down Expand Up @@ -44,9 +44,7 @@ t.create('Pipeline status (nonexistent repo)')
})

t.create('Pipeline status (custom gitlab URL)')
.get(
'/pipeline-status/GNOME/pango.json?gitlab_url=https://gitlab.gnome.org&branch=main'
)
.get('/pipeline-status/GNOME/pango.json?gitlab_url=https://gitlab.gnome.org')
.expectBadge({
label: 'build',
message: isBuildStatus,
Expand Down

0 comments on commit bf35c0c

Please sign in to comment.