Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/actions/assigner/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ const fs = __importStar(__nccwpck_require__(7147));
function getIssueNum() {
const issue = github.context.payload.issue;
if (!issue) {
return undefined;
const pr = github.context.payload.pull_request;
if (!pr) {
return undefined;
}
else {
return pr.number;
}
}
else {
return issue.number;
Expand Down
7 changes: 6 additions & 1 deletion .github/actions/assigner/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ type GHClient = ReturnType<typeof github.getOctokit>;
function getIssueNum(): number | undefined {
const issue = github.context.payload.issue;
if (!issue) {
return undefined;
const pr = github.context.payload.pull_request;
if (!pr) {
return undefined;
} else {
return pr.number;
}
} else {
return issue.number;
}
Expand Down