Skip to content

ci(workflows): avoid extra API call in update-stable-titles#59327

Draft
joshtrichards wants to merge 3 commits intomasterfrom
jtr/ci-workflows-update-stable-titles-refactor
Draft

ci(workflows): avoid extra API call in update-stable-titles#59327
joshtrichards wants to merge 3 commits intomasterfrom
jtr/ci-workflows-update-stable-titles-refactor

Conversation

@joshtrichards
Copy link
Copy Markdown
Member

  • Resolves: #

Summary

Avoid the extra API read since the event payload already has what we need.

For pull_request opened and edited events, all of what we need should already be available in context.payload.pull_request.

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Josh <josh.t.richards@gmail.com>
Avoid the extra API read since the event payload already has what we need. The workflow currently calls `pulls.get()` before doing anything. For pull_request `opened` and `edited` events, all of what we need should already be available in `context.payload.pull_request`,

Signed-off-by: Josh <josh.t.richards@gmail.com>
Signed-off-by: Josh <josh.t.richards@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant