Skip to content

Commit

Permalink
Merge pull request #264 from codecov/1.3.2
Browse files Browse the repository at this point in the history
Overwrite pull_request_target pr number
  • Loading branch information
thomasrockhu authored Apr 2, 2021
2 parents c6a36d2 + d9a1bbc commit 1ee0196
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.3.2
- # Overwrites pr number for pull_request_target events

## 1.3.1

### Fixes
Expand Down
3 changes: 3 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59636,6 +59636,9 @@ var buildExec = function () {
if (overridePr) {
execArgs.push('-P', "" + overridePr);
}
else if ("" + context.eventName == 'pull_request_target') {
execArgs.push('-P', "" + context.payload.number);
}
if (overrideTag) {
execArgs.push('-T', "" + overrideTag);
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codecov-action",
"version": "1.3.1",
"version": "1.3.2",
"description": "Upload coverage reports to Codecov from GitHub Actions",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/buildExec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ const buildExec = () => {
}
if (overridePr) {
execArgs.push('-P', `${overridePr}`);
} else if (
`${context.eventName}` == 'pull_request_target'
) {
execArgs.push('-P', `${context.payload.number}`);
}
if (overrideTag) {
execArgs.push('-T', `${overrideTag}`);
Expand Down

0 comments on commit 1ee0196

Please sign in to comment.