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

Fix common github sync issues #246

Merged
merged 4 commits into from
Jul 18, 2018

Conversation

colszowka
Copy link
Member

@colszowka colszowka commented Jul 18, 2018

Following on #245 this deals with a bunch of common issues when syncing repos from github based on the repo reference found in the rubygem links:

  • Sometimes the reference has .git appended, which leads to a bunch of interesting problems in conjunction with Githubs GraphQL API
  • Some repos are plain and simply gone without any futher notice
  • Some repos are referenced from a gem, yet empty

Most notably, for 100% gone 404 repos this puts the repo on an ignore list for 2 weeks, ensuring that it will not pollute github with unneccessary requests. It also drops the .git part at the end of detected repo urls, and ensures the sync does not crash if there are no commits on the repo at all.

I could not find info on allowed characters in repo names on github, so I assume . is permitted, hence it's only restricting the .git ending

@colszowka colszowka merged commit 521399c into master Jul 18, 2018
@colszowka colszowka deleted the co-fix-common-github-ref-invalidities branch July 18, 2018 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant