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

feat: add git lfs admin option #10748

Closed
wants to merge 13 commits into from
Closed

feat: add git lfs admin option #10748

wants to merge 13 commits into from

Conversation

viceice
Copy link
Member

@viceice viceice commented Jul 7, 2021

Changes:

This add a git lfs admin option, which is disabled by default. It suppress pulling lfs objects on clone / fetch / pull.

Context:

this is a preparation for #6842

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@viceice
Copy link
Member Author

viceice commented Jul 7, 2021

/cc @fgblomqvist

@viceice
Copy link
Member Author

viceice commented Jul 7, 2021

@rarkins I think this can be a breaking for some users, if they use git-lfs. Should we enable it by default to not break? or auto enable with a warning when gitNoVerify is set but allowGitLfs is disabled?

@HonkingGoose HonkingGoose added the breaking Breaking change, requires major version bump label Jul 7, 2021
Copy link
Collaborator

@HonkingGoose HonkingGoose left a comment

Choose a reason for hiding this comment

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

The docs need to explain better what the reader should do to get things working. 😉

docs/usage/self-hosted-configuration.md Outdated Show resolved Hide resolved
docs/usage/self-hosted-configuration.md Outdated Show resolved Hide resolved
@HonkingGoose HonkingGoose self-requested a review July 7, 2021 15:24
HonkingGoose
HonkingGoose previously approved these changes Jul 7, 2021
@viceice viceice marked this pull request as ready for review July 7, 2021 15:27
Copy link
Contributor

@fgblomqvist fgblomqvist left a comment

Choose a reason for hiding this comment

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

I think it'll be fine without any warnings, since the docs do mention that you need to configure gitNoVerify as well.

docs/usage/self-hosted-configuration.md Show resolved Hide resolved
lib/config/definitions.ts Outdated Show resolved Hide resolved
lib/config/definitions.ts Outdated Show resolved Hide resolved
viceice and others added 8 commits July 30, 2021 09:21
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>
@viceice viceice removed the breaking Breaking change, requires major version bump label Jul 30, 2021
@viceice viceice marked this pull request as ready for review July 30, 2021 08:41
@viceice
Copy link
Member Author

viceice commented Jul 30, 2021

I've now implemented all required configuration for git-lfs to work. It's also enabled by default so for most people it's a non breaking.

It's only breaking for self-hosted users who need to override the gitLfsInclude option, because it's missing some files.

Copy link
Collaborator

@HonkingGoose HonkingGoose left a comment

Choose a reason for hiding this comment

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

Some improvements to the wording. 😉

docs/usage/configuration-options.md Outdated Show resolved Hide resolved
docs/usage/configuration-options.md Outdated Show resolved Hide resolved
docs/usage/configuration-options.md Outdated Show resolved Hide resolved
docs/usage/configuration-options.md Outdated Show resolved Hide resolved
docs/usage/self-hosted-configuration.md Outdated Show resolved Hide resolved
Co-authored-by: HonkingGoose <34918129+HonkingGoose@users.noreply.github.com>

Ignore the default project level approval(s), so that Renovate bot can automerge its merge requests, without needing approval(s).
Under the hood, it creates a MR-level approval rule where `approvals_required` is set to `0`.
This option works only when `automerge=true`, `automergeType=pr` and `gitLabAutomerge=true`.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
This option works only when `automerge=true`, `automergeType=pr` and `gitLabAutomerge=true`.
To use `gitLabIgnoreApprovals` you need to set `automerge=true`, `automergeType=pr` and `gitLabAutomerge=true`.

Maybe this is clearer?

@rarkins rarkins marked this pull request as draft October 22, 2021 07:28
@rarkins
Copy link
Collaborator

rarkins commented Jan 28, 2022

@viceice should we close this for now?

@viceice
Copy link
Member Author

viceice commented Jan 28, 2022

No, i like to move this forward.

@viceice viceice mentioned this pull request Feb 9, 2022
6 tasks
@steschi
Copy link

steschi commented Oct 2, 2022

Is there a chance for renovate to support git-lfs eventually?

@rarkins
Copy link
Collaborator

rarkins commented Oct 19, 2022

Closing due to staleness

@rarkins rarkins closed this Oct 19, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 19, 2022
@rarkins rarkins deleted the feat/supress-lfs-pull branch September 16, 2023 16:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants