Skip to content

Commit 16095cf

Browse files
authored
ci: update base head to include owner (aws#5501)
Update base head URL
1 parent 321abff commit 16095cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/notify.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ const needsTestFiles =
1515
module.exports = async ({ github, context }) => {
1616
const owner = context.repo.owner
1717
const repo = context.repo.repo
18+
const author = context.payload.pull_request.head.repo.owner.login
1819

1920
const response = await github.rest.repos.compareCommitsWithBasehead({
2021
owner,
2122
repo,
22-
basehead: `${context.payload.pull_request.base.ref}...${context.payload.pull_request.head.ref}`,
23+
basehead: `${owner}:${context.payload.pull_request.base.ref}...${author}:${context.payload.pull_request.head.ref}`,
2324
})
2425

2526
const filenames = response.data.files.map((file) => file.filename)

0 commit comments

Comments
 (0)