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.
1 parent c2f13dc commit 33995e0Copy full SHA for 33995e0
brigade.js
@@ -18,10 +18,21 @@ const coverage = (event, project) => {
18
];
19
20
job.env = {
21
- COVERALLS_RUN_LOCALLY: '1',
+ SYMFONY_DEPRECATIONS_HELPER: 'weak',
22
+ CI_NAME: 'brigade',
23
+ CI_BUILD_NUMBER: event.buildID,
24
COVERALLS_REPO_TOKEN: project.secrets.coverallsToken,
25
};
26
27
+ const gh = JSON.parse(event.payload);
28
+ if (gh.pull_request) {
29
+ job.env.CI_PULL_REQUEST = gh.pull_request.number.toString();
30
+ job.env.CI_BRANCH = gh.pull_request.base.ref;
31
+ } else if (gh.ref) {
32
+ const parts = gh.ref.split('/');
33
+ job.env.CI_BRANCH = parts[parts.length - 1];
34
+ }
35
+
36
job.run();
37
38
0 commit comments