mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-24 16:41:48 +00:00
fixes the guide comment remover [no gbp] (#90866)
Co-authored-by: harryob <55142896+harryob@users.noreply.github.com>
This commit is contained in:
@@ -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...");
|
||||
|
||||
Reference in New Issue
Block a user