Can anyone tell me that how to fetch the user name who merged the pr by the octokit.request api call.
I can fetch all the prs from octokit.request method with the query parameter state=all value. It is returning the array having all PRs (open and closed all). We can see that PRs with merged_at value is not equal to null are the pr which are merged.
Now how to find the user name who merged this pr.
Let me answer my question.
These are the steps.
commit.commit.commiter.name==='GitHub'. this will filter and take those commit only by which the PR is merged.mergedPRs.user.login === filteredCommit.commit.author.login.You got the answer, it will tell you the pr is created and merged by same person or not.