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 bd85150 commit ef58845Copy full SHA for ef58845
scripts/report_binary_size.js
@@ -165,6 +165,10 @@ function constructRequestPath() {
165
const pullRequestNumber = process.env.GITHUB_PULL_REQUEST_NUMBER;
166
const pullRequestBaseSha = process.env.GITHUB_PULL_REQUEST_BASE_SHA;
167
path += `?pull_request=${pullRequestNumber}&base_commit=${pullRequestBaseSha}`;
168
+ } else if (process.env.GITHUB_EVENT_NAME === 'push') {
169
+ const ref = process.env.GITHUB_REF; // 'refs/heads/<some-branch-name>'
170
+ const branch = ref.substring('refs/heads/'.length);
171
+ path += `?branch=${branch}`;
172
}
173
return path;
174
0 commit comments