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

Depfu for Gitlab repos #7474

Open
kris7t opened this issue Jan 10, 2022 · 1 comment
Open

Depfu for Gitlab repos #7474

kris7t opened this issue Jan 10, 2022 · 1 comment

Comments

@kris7t
Copy link

@kris7t kris7t commented Jan 10, 2022

📋 Description

The Depfu service is using the /github/shields endpoint of Depfu, which means it can only query the status of Github repos. It would be nice to be able to query Gitlab repos.

🔗 Data

Depfu also has a https://depfu.com/gitlab/shields/${userRepo} endpoint, which acts the same as the /github/shields endpoint, but for Gitlab repos.

🎤 Motivation

While Depfu provides built-in badges, their style cannot be customized (e.g., ?style=flat-square), so it would be still useful to have this as a shields.io badge.

@chris48s
Copy link
Member

@chris48s chris48s commented Jan 10, 2022

I think the way to do this will be to make new routes

  • /depfu/github/:userRepo+
  • /depfu/gitlab/:userRepo+

and then redirect /depfu/anything/else to /depfu/github/anything/else for backwards compatibility

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants