-
Notifications
You must be signed in to change notification settings - Fork 4
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
Gitlab harvesting feature #1
Conversation
…2e1243f7544953c16b18e4c in codemetapy)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks good to me! (one minor type), I'll merge it when proycon/codemetapy#19 is ready (and will prepare new releases afterwards)
info "Git cloning $SOURCEREPO..." | ||
if git clone "$SOURCEREPO" "$CACHEDIR/$ID" 2> "$TMPLOG" >&2; then | ||
info "Git light cloning $SOURCEREPO..." | ||
if git clone --filter=blob:limit=999k "$SOURCEREPO" "$CACHEDIR/$ID" 2> "$TMPLOG" >&2; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha! This is a good idea, I didn't know about this feature yet.
The harvester can make use of the Github API to query metdata from GitHub, but this allows only limited anonymous requests. Please set the | ||
environment variable `$GITHUB_TOKEN` to a [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token), if you use Docker you should pass it to the container using `--env-arg GITHUB_TOKEN=$GITHUB_TOKEN`. | ||
The harvester can make use of the Github/GitLab API to query metdata from GitHub/GitLab, but this allows only limited anonymous requests. Please set the | ||
environment variable `$GITHUB_TOKEN`/`$GITLAB_TOKEN` to a [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) / [gitlab p. access token] (https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html), if you use Docker you should pass it to the container using `--env-arg GITHUB_TOKEN=$GITHUB_TOKEN`/`--env-arg GITLAB_TOKEN=$GITLAB_TOKEN`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing space in the markdown link syntax
…s is different from gitlab/github.com)
… handling of selfhosted via GitApi or WebScraping
Merged now, thanks! |
Harvesting of gitlab repositories specifying GITLAB_TOKEN.
Backward compatibility Ok.
To work has effectively has to be combined with codemetapy modifications