Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try don't use the REST API to get PR message in CI build #15091

Closed
ArkadiuszMichalski opened this issue May 5, 2024 · 0 comments
Closed

Try don't use the REST API to get PR message in CI build #15091

ArkadiuszMichalski opened this issue May 5, 2024 · 0 comments

Comments

@ArkadiuszMichalski
Copy link
Contributor

Actually we use REST API (https://api.github.com) to get PR message:

$last_commit = @(Invoke-RestMethod ${{ github.event.pull_request._links.commits.href }})[0] | Select-Object -Last 1

I noticed that this API is limited , and I experienced this limit myself recently. It would be best to avoid using this approach if possible, or as a last resort add authentication to increase the limit.

I'll try to find some command directly in git that will return the message of the last commit in PR (Github Action does not expose this information directly or I haven't figured it out yet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant