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

Support deleting labels #5

Open
jwodder opened this issue Oct 19, 2023 · 0 comments
Open

Support deleting labels #5

jwodder opened this issue Oct 19, 2023 · 0 comments
Labels
cmd:apply Relates to the `apply` subcommand configuration Telling the program what to do enhancement New feature or request therefor

Comments

@jwodder
Copy link
Owner

jwodder commented Oct 19, 2023

  • Give [profile.<name>] a delete: list[str] field naming labels to delete if present.

  • Give [profile.<name>] a delete-extra: bool field that, if true (default false) causes all labels in a repository that are not listed in the profile to be deleted

    • When doing this, the user should probably be asked to confirm each deletion unless a --force or --yes option was given on the command line.
      • All confirmations should be performed before executing anything, so that the user can quit in the middle without messing anything up.
  • Add a delete <label-name> ... subcommand?

@jwodder jwodder added cmd:apply Relates to the `apply` subcommand configuration Telling the program what to do enhancement New feature or request therefor labels Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd:apply Relates to the `apply` subcommand configuration Telling the program what to do enhancement New feature or request therefor
Projects
None yet
Development

No branches or pull requests

1 participant