Skip to content

Commit

Permalink
feat: add branch and pkg name to monitor analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
odinn1984 committed Jun 2, 2019
1 parent 464b784 commit b91d2ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/monitor.ts
Expand Up @@ -59,6 +59,10 @@ export async function monitor(root, meta, info: SingleDepRootResult, targetFile)
const target = await projectMetadata.getInfo(pkg);
const targetFileRelativePath = targetFile ? path.relative(root, targetFile) : '';

if (target && target.branch) {
analytics.add('targetBranch', target.branch);
}

// TODO(kyegupov): async/await
return new Promise((resolve, reject) => {
request({
Expand Down

0 comments on commit b91d2ae

Please sign in to comment.