Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

feat(deploy): enable source tracking support for deploy command #1273

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/buildPackages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ jobs:

- name: 'Build All Packages'
run: |
npx lerna version --conventional-commits --yes --no-changelog
npx lerna run build
npx lerna run manifest



- name: 'Run Unit Tests'
if: ${{ inputs.publish == true }}
run: npx lerna run test -- --colors
Expand Down
3 changes: 2 additions & 1 deletion packages/sfpowerscripts-cli/messages/deploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"baselineorgFlagDescription": "The org against which the package skip should be baselined",
"allowUnpromotedPackagesFlagDescription": "Allow un-promoted packages to be installed in production",
"retryOnFailureFlagDescription": "Retry on a failed deployment of a package",
"configFileFlagDescription":"Path to the config file which determines how the packages are deployed based on the filters in release config"
"configFileFlagDescription":"Path to the config file which determines how the packages are deployed based on the filters in release config",
"enableSourceTrackingFlagDescription": "Enable source tracking on the packages being deployed to an org"
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export default class Deploy extends SfpowerscriptsCommand {
releaseconfig: flags.string({
description: messages.getMessage('configFileFlagDescription'),
}),
enablesourcetracking: flags.boolean({
description: messages.getMessage('enableSourceTrackingFlagDescription'),
}),
loglevel: flags.enum({
description: 'logging level for this command invocation',
default: 'info',
Expand Down Expand Up @@ -127,7 +130,7 @@ export default class Deploy extends SfpowerscriptsCommand {
waitTime: this.flags.waittime,
tags: tags,
isTestsToBeTriggered: false,
deploymentMode: DeploymentMode.NORMAL,
deploymentMode: this.flags.enablesourcetracking? DeploymentMode.SOURCEPACKAGES_PUSH: DeploymentMode.NORMAL,
skipIfPackageInstalled: this.flags.skipifalreadyinstalled,
logsGroupSymbol: this.flags.logsgroupsymbol,
currentStage: Stage.DEPLOY,
Expand Down
6 changes: 6 additions & 0 deletions reviewpad.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
workflows:
- name: lint-commits
if:
- $description() != ""
then:
- $commitLint()