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

Gitlab harvesting feature #1

Merged
merged 11 commits into from
Aug 17, 2022
Merged

Gitlab harvesting feature #1

merged 11 commits into from
Aug 17, 2022

Conversation

xmichele
Copy link

Harvesting of gitlab repositories specifying GITLAB_TOKEN.
Backward compatibility Ok.
To work has effectively has to be combined with codemetapy modifications

@proycon proycon self-requested a review July 14, 2022 15:02
Copy link
Owner

@proycon proycon left a 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
Copy link
Owner

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`.
Copy link
Owner

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

@proycon proycon self-assigned this Jul 18, 2022
@proycon proycon added the enhancement New feature or request label Jul 18, 2022
proycon added a commit that referenced this pull request Aug 17, 2022
@proycon proycon merged commit 5a8c47f into proycon:master Aug 17, 2022
@proycon
Copy link
Owner

proycon commented Aug 17, 2022

Merged now, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants