Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supported nested groups on [GitLabPipeline] badge #7159

Merged
merged 5 commits into from
Oct 16, 2021

Conversation

calebcartwright
Copy link
Member

Fixes #6427

@calebcartwright calebcartwright added the service-badge New or updated service badge label Oct 16, 2021
@shields-cd shields-cd temporarily deployed to shields-staging-pr-7159 October 16, 2021 17:16 Inactive
@shields-ci
Copy link

shields-ci commented Oct 16, 2021

Messages
📖 ✨ Thanks for your contribution to Shields, @calebcartwright!

Generated by 🚫 dangerJS against 763dafb

@calebcartwright calebcartwright temporarily deployed to shields-staging-pr-7159 October 16, 2021 17:44 Inactive

async handle(
{ project },
{ gitlab_url: baseUrl = 'https://gitlab.com', branch = 'master' }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GitLab now uses main as the default branch name for new repos. In #5318 we made branch a required param but added a legacy redirect to /master for existing users. Moving the route is an opportunity to update the default branch to main (but keep the master redirect on the old route). i.e: /gitlab/pipeline/gitlab-org/gitlab redirects to /gitlab/pipeline-status/gitlab-org/gitlab.svg?branch=master but if you make the URL /gitlab/pipeline-status/gitlab-org/gitlab from the frontend, that implies /gitlab/pipeline-status/gitlab-org/gitlab.svg?branch=main. How does that sound?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, works for me

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@calebcartwright calebcartwright temporarily deployed to shields-staging-pr-7159 October 16, 2021 18:37 Inactive
@shields-cd shields-cd temporarily deployed to shields-staging-pr-7159 October 16, 2021 18:49 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge New or updated service badge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support nested GitLab subgroups for pipeline badge
4 participants