Skip to content

SP-992: Add Git capabilities to config package export/import#379

Draft
Zgjim Haziri (ZgjimHaziri) wants to merge 1 commit into
SP-873-single-package-exportfrom
SP-992-git-capabilities-package-commands
Draft

SP-992: Add Git capabilities to config package export/import#379
Zgjim Haziri (ZgjimHaziri) wants to merge 1 commit into
SP-873-single-package-exportfrom
SP-992-git-capabilities-package-commands

Conversation

@ZgjimHaziri

Copy link
Copy Markdown
Contributor

Description

Adds --gitProfile / --gitBranch Git support to the single-package commands config package export and config package import, mirroring the existing behavior on the t2tc package and legacy config commands and reusing the existing GitService (pushToBranch / pullFromBranch).

  • config package export --gitBranch <branch>: pushes the package in its unzipped package layout to the branch instead of writing to the working directory (--zip is ignored on the Git path).
  • config package import --gitBranch <branch>: pulls the branch and imports the package; mutually exclusive with --file / --directory.
  • --gitProfile without --gitBranch is rejected, consistent with the other commands.

Stacked on top of #378 (single package export). The base will retarget to main once #378 merges; PR CI (build / test) only runs against a main base, so it will execute after retargeting (locally: yarn build + full yarn test pass).

Relevant links

Checklist

  • I have self-reviewed this PR
  • I have tested the change and proved that it works in different scenarios
  • I have updated docs if needed

Made with Cursor

Add --gitProfile/--gitBranch options to 'config package export' and
'config package import', reusing the existing GitService that already
backs the 't2tc package' and legacy 'config' commands.

- export: when --gitBranch is set, the package is pushed unzipped to the
  branch (--zip is ignored for the Git path).
- import: when --gitBranch is set, the branch is pulled and the package
  is imported; --gitBranch is mutually exclusive with --file/--directory.

Includes-AI-Code: true
Co-authored-by: Cursor <cursoragent@cursor.com>
@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant