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

fix: github-script v7 regression #909

Merged
merged 1 commit into from
Dec 13, 2024
Merged

Conversation

MaxFrank13
Copy link
Member

This fix is based on a recommendation from a GH issue in the github-script repository: actions/github-script#448 (comment)

@MaxFrank13 MaxFrank13 requested a review from a team as a code owner December 12, 2024 14:31
@@ -58,7 +58,7 @@ jobs:
base: 'master',
})
// Get the PR that relates to the tagged commit
const getRelatedPrResponse = await github.rest.repos.listPullRequestsAssociatedWithCommit({
const getRelatedPrResponse = await github.rest.repos.listPullRequestsAssociatedWithCommit.endpoint.merge({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not super familiar with the GitHub API and how this is used, but I'm okay with giving this a try since the workflow is already broken. We can always revert if it doesn't work.

@MaxFrank13 MaxFrank13 merged commit b1abce0 into master Dec 13, 2024
6 checks passed
@MaxFrank13 MaxFrank13 deleted the mfrank/fix-github-script branch December 13, 2024 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants