github.pullRequests stopped working #25352
-
I had a working script and it stopped working. I didn’t have any notice or warning of a change in Actions. I was using:
Now it seems by the documentation github.pullRequests don’t exist anymore and I get the error: Any hints here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@staticdev Please use |
Beta Was this translation helpful? Give feedback.
-
That worked as charm! Thanks a lot @yanjingzhu! |
Beta Was this translation helpful? Give feedback.
@staticdev Please use
github.pulls.merge
.In
actions/github-script@v2
,github
object is a pre-authenticated octokit/rest.js client.According to https://octokit.github.io/rest.js/v18 , pull request merge function is this :