Skip to content

Conversation

@mickgmdb
Copy link
Collaborator

[v1.60.0]

  • Removed the --bitbucket-username, --bitbucket-token, and --bitbucket-oauth-token flags in favour of KF_BITBUCKET_* environment variables when authenticating to Bitbucket.
  • Added provider-specific kingfisher scan subcommands (for example kingfisher scan github …) that translate into the legacy flags under the hood. The new layout keeps backwards compatibility while removing the wall of provider options from kingfisher scan --help.
  • Updated the README so every provider example (GitHub, GitLab, Bitbucket, Azure Repos, Gitea, Hugging Face, Slack, Jira, Confluence, S3, GCS, Docker) uses the new subcommand style.
  • Legacy provider flags (for example --github-user, --gitlab-group, --bitbucket-workspace, --s3-bucket) still work but now emit a deprecation warning to encourage migration to the new kingfisher scan <provider> flow.
  • Kept the direct kingfisher scan /path/to/dir flow for local filesystem / local git repo scans while adding a --list-only switch to each provider subcommand so repository enumeration no longer requires the standalone github repos, gitlab repos, etc. commands.
  • Removed the legacy top-level provider commands (kingfisher github, kingfisher gitlab, kingfisher gitea, kingfisher bitbucket, kingfisher azure, kingfisher huggingface) now that enumeration lives under kingfisher scan <provider> --list-only.
  • Fixed bug in test when run on Windows

Copilot AI review requested due to automatic review settings October 24, 2025 04:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR introduces a major restructure of the Kingfisher CLI by replacing legacy top-level provider commands with provider-specific subcommands under kingfisher scan. Key changes include removing Bitbucket authentication flags in favor of environment variables, adding deprecation warnings for legacy flags, and consolidating repository enumeration under --list-only switches.

  • Replaced top-level provider commands with kingfisher scan <provider> subcommands
  • Removed Bitbucket authentication flags in favor of KF_BITBUCKET_* environment variables
  • Added --list-only flag to provider subcommands for repository enumeration

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

.args(["scan", "bitbucket", "--help"])
.assert()
.stdout(contains("kingfisher scan bitbucket [OPTIONS]"));
.stdout(is_match(r"kingfisher(\\.exe)? scan bitbucket \[OPTIONS\]").unwrap());
Copy link

Copilot AI Oct 24, 2025

Choose a reason for hiding this comment

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

The regex pattern should use raw string literal syntax consistently. The double backslash \\. is unnecessary in a raw string and should be \. instead. The pattern should be r"kingfisher(\.exe)? scan bitbucket \[OPTIONS\]".

Suggested change
.stdout(is_match(r"kingfisher(\\.exe)? scan bitbucket \[OPTIONS\]").unwrap());
.stdout(is_match(r"kingfisher(\.exe)? scan bitbucket \[OPTIONS\]").unwrap());

Copilot uses AI. Check for mistakes.
@mickgmdb mickgmdb merged commit 52a898e into main Oct 24, 2025
1 of 3 checks passed
mickgmdb added a commit that referenced this pull request Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants