We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dbd8ff3 + 33995e0 commit 0f57e94Copy full SHA for 0f57e94
brigade.js
@@ -18,10 +18,20 @@ const coverage = (event, project) => {
18
];
19
20
job.env = {
21
- COVERALLS_RUN_LOCALLY: '1',
+ CI_NAME: 'brigade',
22
+ CI_BUILD_NUMBER: event.buildID,
23
COVERALLS_REPO_TOKEN: project.secrets.coverallsToken,
24
};
25
26
+ const gh = JSON.parse(event.payload);
27
+ if (gh.pull_request) {
28
+ job.env.CI_PULL_REQUEST = gh.pull_request.number.toString();
29
+ job.env.CI_BRANCH = gh.pull_request.base.ref;
30
+ } else if (gh.ref) {
31
+ const parts = gh.ref.split('/');
32
+ job.env.CI_BRANCH = parts[parts.length - 1];
33
+ }
34
+
35
job.run();
36
37
0 commit comments