We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbbec7b commit 028c27cCopy full SHA for 028c27c
components/server/ee/src/prebuilds/github-app.ts
@@ -350,6 +350,11 @@ export class GithubApp {
350
try {
351
const installationId = ctx.payload.installation?.id;
352
const cloneURL = ctx.payload.repository.clone_url;
353
+ // we are only interested in PRs that want to contribute to our repo
354
+ if (ctx.payload.pull_request?.base?.repo?.clone_url !== cloneURL) {
355
+ log.info("Ignoring inverse PR", ctx.payload.pull_request);
356
+ return;
357
+ }
358
const pr = ctx.payload.pull_request;
359
const contextURL = pr.html_url;
360
let { user, project } = await this.findOwnerAndProject(installationId, cloneURL);
0 commit comments