more logging

This commit is contained in:
dcvz 2024-08-01 18:13:41 +02:00
parent d47949f8ee
commit ae39aa82fa

View file

@ -20,10 +20,10 @@ jobs:
const findPRNumber = async () => {
const pulls = await github.rest.pulls.list({ owner, repo });
console.log(pulls);
for await (const { data } of github.paginate.iterator(pulls)) {
for (const pull of data) {
console.log(pull);
console.log(pull.head);
console.log(pull.user);
if (pull.head.sha === '${{ github.event.workflow_run.head_sha }}' && pull.user.id === '${{ github.event.sender.id }}') {
return pull.number;
}