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

feat: populate packageName from package.json #290

Merged
merged 2 commits into from
Oct 17, 2019
Merged

feat: populate packageName from package.json #290

merged 2 commits into from
Oct 17, 2019

Conversation

bcoe
Copy link
Contributor

@bcoe bcoe commented Oct 17, 2019

fixes #289.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 17, 2019
@codecov
Copy link

codecov bot commented Oct 17, 2019

Codecov Report

Merging #290 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #290   +/-   ##
=======================================
  Coverage   81.68%   81.68%           
=======================================
  Files          24       24           
  Lines        2964     2964           
  Branches      246      246           
=======================================
  Hits         2421     2421           
  Misses        531      531           
  Partials       12       12

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8bf4b01...32112c1. Read the comment docs.

@bcoe bcoe merged commit e9a01e7 into master Oct 17, 2019
@bcoe bcoe deleted the use-pkg-json branch October 17, 2019 17:51
@@ -81,6 +89,7 @@ export class Node extends ReleasePR {
changelogEntry,
version: candidate.version,
packageName: this.packageName,
contents,
Copy link
Collaborator

Choose a reason for hiding this comment

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

@bcoe I just discovered a bug here while switching from sandbox.stub to using a mock: it caught an unexpected extra call to get the contents for package.json. The reason is that the PackageJson constructor was never updated to set this.contents so GitHub.getChangeSet() has to reach back out to to get it. PR coming up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fetch packageName parameter from repository itself
4 participants