Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
pngwn committed Aug 6, 2024
1 parent d582eb8 commit 35e5601
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/filter-paths/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function run() {

let files: any[] = [];

if (context.payload.event_name === "pull_request") {
if (context.eventName === "pull_request") {
for await (const response of octokit.paginate.iterator(
octokit.rest.pulls.listFiles,
{
Expand All @@ -40,7 +40,7 @@ async function run() {
)) {
files = [...files, ...parse_data(response.data)];
}
} else if (context.payload.event_name === "push") {
} else if (context.eventName === "push") {
const response = await octokit.rest.repos.getCommit({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit 35e5601

Please sign in to comment.