Skip to content

Move version handling code out of PublishAction and into ChangeManager. - #244

Merged
QZ (qz2017) merged 2 commits into
masterfrom
qz2017/publish_config
Jun 21, 2017
Merged

QZ (qz2017) merged 2 commits into
masterfrom
qz2017/publish_config

Conversation

@qz2017

@qz2017 QZ (qz2017) commented Jun 20, 2017 •

Copy link
Copy Markdown
Contributor

Refactor PublishAction class to only deal with publishing process and leave the change handling logic to ChangeManager.

@octogonz

Copy link
Copy Markdown
Collaborator

Please add a meaningful PR description -- did you change any actual functionality? Why did we need this PR? etc.

if (orderedChanges.length > 0) {
changeManager.load(changesPath,
this._prereleaseToken,
this._addCommitDetails.value);

@octogonz Pete Gonzalez (octogonz) Jun 20, 2017 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Would anyone really call load() without these parameters? If not, why should they be optional? It increases our test surface and could introduce mistakes if people forget to provide one of the parameters. #WontFix

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Test code actually calls load with default parameters.


In reply to: 123116612 [](ancestors = 123116612)

return this._allPackages;
}

public apply(shouldCommit: boolean): void {

@octogonz Pete Gonzalez (octogonz) Jun 20, 2017 •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

apply [](start = 9, length = 5)

Add a comment explaining what this does #Resolved

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.

3 participants