Skip to content
Open
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
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34773,9 +34773,9 @@ async function run() {
throw new Error('GITHUB_TOKEN is required');
}
const context = github.context;
// Only run on pull request events
if (context.eventName !== 'pull_request') {
core.info(`❌ Event ${context.eventName} is not supported. Only pull_request events are handled.`);
// Only run on pull_request and pull_request_review events
if (context.eventName !== 'pull_request' && context.eventName !== 'pull_request_review') {
core.info(`❌ Event ${context.eventName} is not supported. Only pull_request and pull_request_review events are handled.`);
return;
}
if (!context.payload.pull_request) {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ async function run(): Promise<void> {

const context = github.context;

// Only run on pull request events
if (context.eventName !== 'pull_request') {
core.info(`❌ Event ${context.eventName} is not supported. Only pull_request events are handled.`);
// Only run on pull_request and pull_request_review events
if (context.eventName !== 'pull_request' && context.eventName !== 'pull_request_review') {
core.info(`❌ Event ${context.eventName} is not supported. Only pull_request and pull_request_review events are handled.`);
return;
}

Expand Down