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

[sourceforge] add repo param to last commit service #10935

Merged
merged 2 commits into from
Mar 9, 2025

Conversation

jNullj
Copy link
Member

@jNullj jNullj commented Mar 8, 2025

some sourceforge projects have multiple repositories, so we need to
specify the repository to use for the last commit service.

should be backward compitable with redirect

fixes #10921

some sourceforge projects have multiple repositories, so we need to
specify the repository to use for the last commit service.
Copy link
Contributor

github-actions bot commented Mar 8, 2025

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

Generated by 🚫 dangerJS against 445edcf

@jNullj jNullj force-pushed the jNullj/issue10921 branch from b96249f to 18bd3a0 Compare March 8, 2025 19:55
@jNullj jNullj force-pushed the jNullj/issue10921 branch from 18bd3a0 to 445edcf Compare March 8, 2025 20:11
@jNullj jNullj marked this pull request as ready for review March 8, 2025 20:21
@jNullj jNullj added the service-badge New or updated service badge label Mar 8, 2025
@jNullj
Copy link
Member Author

jNullj commented Mar 8, 2025

Tested locally and it seems to work

@jNullj
Copy link
Member Author

jNullj commented Mar 8, 2025

The change is ready for review, but i just realized this problem is not specific to this badge, its relevant to multiple sourceforge badges. 😅
Also we use here a fetch that is already defined in the sourceforge-base.
Lets merge this for now and i will make a follow up PR with changes to the base one.

Copy link
Contributor

github-actions bot commented Mar 9, 2025

🚀 Updated review app: https://pr-10935-badges-shields.fly.dev

@chris48s
Copy link
Member

chris48s commented Mar 9, 2025

Thanks. Yes. This same problem will apply to (for example) the SourceForge Commit Count badge. Although I think a lot of the sourceforge badges won't need any changes because they are project-level rather than repo-level.

Anyway, this PR fixes a thing that was broken. Further fixes can come in another PR.

@chris48s chris48s added this pull request to the merge queue Mar 9, 2025
Merged via the queue into badges:master with commit 231a48f Mar 9, 2025
23 checks passed
jNullj added a commit to jNullj/shields-fun-fork that referenced this pull request Mar 15, 2025
follow-up to badges#10935
sourceforge commit count also requires the new repo param for some projects.
github-merge-queue bot pushed a commit that referenced this pull request Mar 16, 2025
…er (#10954)

* [sourceforge] update commit count service to support repo param

follow-up to #10935
sourceforge commit count also requires the new repo param for some projects.

* [sourceforge] add redirector for legacy commit count URLs

* fix missing openapi path
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.

Unable to get last-commit of some projects on sourceforge.
2 participants