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: add bot for npm publication through wombat #184

Merged
merged 15 commits into from
Dec 30, 2019
Merged

feat: add bot for npm publication through wombat #184

merged 15 commits into from
Dec 30, 2019

Conversation

bcoe
Copy link
Contributor

@bcoe bcoe commented Dec 19, 2019

Bot for publishing to npm from cloud function, using wombat dressing room.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 19, 2019
@bcoe bcoe changed the title [WIP] feat: add bot for npm publication through wombat feat: add bot for npm publication through wombat Dec 20, 2019
@bcoe bcoe force-pushed the publish-bot branch 2 times, most recently from 5952336 to 18a8531 Compare December 22, 2019 00:01
@bcoe bcoe requested review from tbpg and chingor13 December 26, 2019 21:23
Copy link
Contributor

@JustinBeckwith JustinBeckwith left a comment

Choose a reason for hiding this comment

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

LGTM w/ nits

packages/publish/package.json Show resolved Hide resolved
@@ -0,0 +1,21 @@
/**
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we use new license headers please?

Copy link
Contributor

Choose a reason for hiding this comment

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

(here and below)

packages/publish/src/index.d.ts Show resolved Hide resolved
packages/publish/src/publish.ts Outdated Show resolved Hide resolved
packages/publish/src/publish.ts Show resolved Hide resolved
packages/publish/src/publish.ts Show resolved Hide resolved
dest.on('error', reject);
dest.on('close', () => {
app.log.info('finished unpacking tarball');
return resolve();
Copy link
Contributor

Choose a reason for hiding this comment

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

Being pedantic, but can you split up the return and resolve?

packages/publish/src/publish.ts Outdated Show resolved Hide resolved
@@ -0,0 +1,142 @@
/**
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean to check in the tarball above?


// Skip publication unless it's explicitly enabled.
if (!remoteConfiguration) {
app.log.info(`publish not configured for (${repoName})`);
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider using the repo name as a prefix for all logs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 rather than doing so in this PR, perhaps we could create a tracking issue to override the default logger for all our bots; it would be nice to add a bit more context in the logs in general.

packages/publish/src/publish.ts Outdated Show resolved Hide resolved
packages/publish/test/fixtures/config/valid-config.yml Outdated Show resolved Hide resolved
packages/publish/test/publish.ts Show resolved Hide resolved
@bcoe bcoe merged commit 851e77d into master Dec 30, 2019
@bcoe bcoe deleted the publish-bot branch December 30, 2019 21:16
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.

None yet

4 participants