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

Handle anchors in homepage URI #75

Merged
merged 4 commits into from
Apr 14, 2020
Merged

Handle anchors in homepage URI #75

merged 4 commits into from
Apr 14, 2020

Conversation

johnsyweb
Copy link
Contributor

Context

A recent run terminated with:

Octokit::InvalidRepository: "rubymem/bundler-leak#readme" is invalid as a repository identifier. Use the user/repo (String) format, or the repository ID (Integer), or a hash containing :repo and :user keys.

The repository name came from
https://github.com/rubymem/bundler-leak/blob/master/gemspec.yml#L7

I could not find a repository name specification anywhere but playing with https://github.com/new revealed repository names are formed of alphanumeric characters, hyphens, underscores and full-stops.

Change

Update the GITHUB_URI_PATTERN to better handle such URIs.

Considerations

I considered using Ruby's URI module to extract the path but figured that was unnecessary at this juncture.

@johnsyweb johnsyweb requested a review from orien April 13, 2020 09:45
@johnsyweb johnsyweb merged commit 4ff6545 into master Apr 14, 2020
@johnsyweb johnsyweb deleted the paj/handle-anchors branch August 26, 2020 00:58
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.

4 participants