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

Parse GitHub from website links #40

Merged
merged 7 commits into from
Oct 12, 2022
Merged

Parse GitHub from website links #40

merged 7 commits into from
Oct 12, 2022

Conversation

cthoyt
Copy link
Collaborator

@cthoyt cthoyt commented Oct 11, 2022

Closes #37

Anyone want to flesh this out with additional logic for other types? e.g. twitter?

@jvfe
Copy link
Collaborator

jvfe commented Oct 12, 2022

Awesome! I believe this logic could be adapted and generalized for other types (i.e. twitter, gitlab, etc). So thanks a lot!

@cthoyt
Copy link
Collaborator Author

cthoyt commented Oct 12, 2022

@jvfe feel free to push to either this branch or we can finish up here and you can continue in your own - whatever's more comfortable

src/pyorcidator/helper.py Outdated Show resolved Hide resolved
tests/test_helper.py Outdated Show resolved Hide resolved
@jvfe
Copy link
Collaborator

jvfe commented Oct 12, 2022

@jvfe feel free to push to either this branch or we can finish up here and you can continue in your own - whatever's more comfortable

For sure! I'll take a look as soon as I'm able.

@jvfe jvfe self-requested a review October 12, 2022 00:38
Copy link
Collaborator

@jvfe jvfe left a comment

Choose a reason for hiding this comment

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

Great way of generalizing this! I think this can be merged as is. It's already a big improvement and adding further external links will be very simple.

@jvfe jvfe linked an issue Oct 12, 2022 that may be closed by this pull request
@jvfe jvfe merged commit 8291b97 into master Oct 12, 2022
jvfe added a commit that referenced this pull request Oct 12, 2022
- Resolves conflict generated by #40

* master:
  test: Expand tests for getting external IDs
  Update helper.py
  Generalize URL compression
  Update helper.py
  Update helper.py
  Update helper.py
  Parse GitHub from website links
@cthoyt cthoyt deleted the parse-github branch October 12, 2022 11:39
@cthoyt
Copy link
Collaborator Author

cthoyt commented Oct 12, 2022

@lubianat can you change the project settings to enforce squash/merge and also auto-delete branches after merge?

@lubianat
Copy link
Owner

lubianat commented Oct 12, 2022 via email

@cthoyt
Copy link
Collaborator Author

cthoyt commented Oct 12, 2022

Go to https://github.com/lubianat/pyorcidator/settings, scroll about 2/3 the way down, then you will see the following settings (below is the Bioregistry repo)

Screen Shot 2022-10-12 at 13 47 54

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.

Parse websites and social links
3 participants