# Inter repo pipelines?

**URL:** <https://forum.buildkite.community/t/inter-repo-pipelines/1597>\
**Category:** General\
**Created:** [June 14, 2021, 4:22pm UTC](https://forum.buildkite.community/t/inter-repo-pipelines/1597 "2021-06-14T16:22:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nrdxp](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/nrdxp/32/971_2.png) [@nrdxp](https://forum.buildkite.community/u/nrdxp)\
**Post date:** [June 14, 2021, 4:22pm UTC](https://forum.buildkite.community/t/inter-repo-pipelines/1597/1 "2021-06-14T16:22:03Z")

</div>

I got this request from one of our developers at work, and I’m just trying to boil down the best way to approach it:

So I have two repositories, one public (repo A), and one private (B), both using buildkite for CI.

When a PR is opened on repo A, we would like it to trigger the build pipeline on B and report back to GitHub in the form of a status check on A.

I have already considered that I may need to make B a submodule of A and just do it that way, but I’m just wondering if there might be a better way to do this?

---

<div class="post-metadata">

**Author:** ![paula](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/paula/32/954_2.png) [@paula](https://forum.buildkite.community/u/paula)\
**Post date:** [June 15, 2021, 6:28pm UTC](https://forum.buildkite.community/t/inter-repo-pipelines/1597/2 "2021-06-15T18:28:34Z")

</div>

Hi @nrdxp!

Welcome to the community! 🤗  
We had an internal discussion and we think that using submodules would be the best way to approach this. An alternative could be with API calls. You can easily trigger builds via the API, but reporting back to GitHub as a status check is something I’m not completely sure about it 🤔  
But using submodules should work.

Cheers!

---

<div class="post-metadata">

**Author:** ![nrdxp](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/nrdxp/32/971_2.png) [@nrdxp](https://forum.buildkite.community/u/nrdxp)\
**Post date:** [June 16, 2021, 12:45pm UTC](https://forum.buildkite.community/t/inter-repo-pipelines/1597/3 "2021-06-16T12:45:23Z")

</div>

Thanks you 🙏  
I’ll got ahead and wire it up with submodules then.

---

<div class="post-metadata">

**Author:** ![nrdxp](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.buildkite.community/nrdxp/32/971_2.png) [@nrdxp](https://forum.buildkite.community/u/nrdxp)\
**Post date:** [June 19, 2021, 2:34am UTC](https://forum.buildkite.community/t/inter-repo-pipelines/1597/4 "2021-06-19T02:34:49Z")

</div>

Just FYI in case anyone else comes across this. I decided not to use submodules after all, but simply cloned the repo as a pipeline step, and then overrode the BUILDKITE\_REPO var with the hook mentioned in [another thread](https://forum.buildkite.community/t/overwrite-default-environment-variables-e-g-buildkite-repo-via-pipeline-upload/1455/3).
