Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlab-settings
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Custom issue tracker
    • Custom issue tracker
  • Merge requests 2
    • Merge requests 2
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Commits
Collapse sidebar
  • repos
  • relengreleng
  • gitlab-settings
  • Merge requests
  • !3

roll settings commands into a single wrapper using click

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Brennen Bearnes requested to merge brennen/unify-settings into main Jul 23, 2021
  • Overview 1
  • Commits 1
  • Pipelines 0
  • Changes 6

This is still a little clunky and repetitive, code-wise, but a nicer interface.

The settings script now has 3 subcommands:

diff    Show differences between instance and settings.yaml
update  Update settings on instance to match local settings.yaml.
view    Show all instance settings.

Additionally, it takes parameters for instance URL and token, which can also be specified by environment variables.

TODO:

  • make target instance configurable

Background:

  • https://click.palletsprojects.com/en/8.0.x/
  • https://pypi.org/project/click/
Edited Jul 30, 2021 by Brennen Bearnes
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: brennen/unify-settings