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

Set bugtracker resource for SpaceDock mods with GitHub repos #3384

Merged
merged 1 commit into from
May 27, 2021

Conversation

HebaruSan
Copy link
Member

Motivation

The resources.bugtracker property links to a place where users can report problems with a mod. It is available in the GUI and the status page. It can be set manually in a netkan or automatically for mods hosted on GitHub (see #3061).

It would be nice to set this for mods on SpaceDock as well so we can jump to issues lists conveniently for more mods.

Changes

Now if a mod on SpaceDock has a source code link of the form https://github.com/owner/repo/whatever, we will call out to the GitHub API to check whether that repo has issues enabled. If so, then resources.bugtracker will be set to the repo's issues link.

@HebaruSan HebaruSan added Enhancement Easy This is easy to fix Pull request Netkan Issues affecting the netkan data Metadata Issues specific for our metadata labels May 26, 2021
@HebaruSan HebaruSan requested a review from DasSkelett May 26, 2021 17:49
Copy link
Member

@DasSkelett DasSkelett left a comment

Choose a reason for hiding this comment

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

Good idea. Let's see how big the wave will be.

@DasSkelett DasSkelett merged commit 4f2812e into KSP-CKAN:master May 27, 2021
@HebaruSan HebaruSan deleted the feature/netkan-sd-bugtrackers branch May 27, 2021 15:45
@HebaruSan
Copy link
Member Author

Let's see how big the wave will be.

I think the final count is somewhere around 350, plus or minus a few due to some GitHub rate limiting shenanigans. The next webhooks-only pass should be smaller but still quite a few, I would think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Easy This is easy to fix Enhancement Metadata Issues specific for our metadata Netkan Issues affecting the netkan data Pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants