@featurepeek/circleci
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -21,2 +21,3 @@ #!/usr/bin/env node | ||
const repo = process.env.CIRCLE_PROJECT_REPONAME | ||
const branch = process.env.CIRCLE_BRANCH | ||
const build = process.env.CIRCLE_BUILD_NUM | ||
@@ -32,3 +33,5 @@ const dirDepth = process.argv[2].replace(/^\.\//, '').split('/').length | ||
cutdirs: ARTIFACTS_DEPTH + dirDepth, | ||
pr_url: process.env.CIRCLE_PULL_REQUEST, | ||
org, | ||
repo, | ||
branch, | ||
}, | ||
@@ -35,0 +38,0 @@ } |
{ | ||
"private": false, | ||
"name": "@featurepeek/circleci", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"main": "index.js", | ||
@@ -13,3 +13,3 @@ "bin": { | ||
}, | ||
"gitHead": "c53a5d5279da13d404a697d3ee9c52a923c8e671" | ||
"gitHead": "91b51b975fb0d83e5790d3b6304344bd10ced5a8" | ||
} |
# @featurepeek/circleci | ||
For GitHub and CircleCI | ||
For GitHub and CircleCI. See [documentation](https://docs.featurepeek.com/docs/circleci/). | ||
When a PR kicks of CI, and the build succeeds, artifacts are uploaded to CircleCI's artifacts service. Then our script sends a POST to `https://api.featurepeek.com/api/v1/TBD/static/circleci` with a body like | ||
```json | ||
{ | ||
"artifacts_url": "https://circleci.com/api/v1.1/project/github/featurepeek/wandb-core/8/artifacts", | ||
"cutdirs": 6, | ||
"org": "featurepeek", | ||
"repo": "wandb-core", | ||
"branch": "new-feature-branch", | ||
} | ||
``` | ||
Let me know if you want more info here. These [Built-in Env Vars](https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables) are helpful and easy to add. | ||
`cutdirs` is passed to `wget`. It's useful for trimming off the initial `0/root/project` at the front of every artifacts path. You'll only need it if you do indeed use wget. wget is useful because it retains directory hierarchy of the artifacts instead of saving everything in a flat directory. But if you don't use wget, you can ignore it. | ||
See the `download.sh` file for bash script to download the files saved in artifacts. | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
10245
6
37
25
1