fixes the guide comment remover [no gbp] (#90866)

Co-authored-by: harryob <55142896+harryob@users.noreply.github.com>
This commit is contained in:
harry
2025-04-28 10:01:19 +01:00
committed by Shadow-Quill
parent eb777110f3
commit 9b02707c3c

View File

@@ -16,7 +16,11 @@ function escapeRegex(string) {
}
export async function removeGuideComments({ github, context }) {
const originalBody = (await github.rest.pulls.get(context.issue)).body;
const originalBody = (await github.rest.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
})).data.body;
if (!originalBody) {
console.log("PR body is empty, skipping...");