The only caveat was which PR from the sister repo to select since it's possible to have multiple open PRs in a given repo. I opted to scan the PR that was most recently updated in the related repo, since I think that would address most cases.
Also this doesn't work for the rollup packages since multiple packages feed a rollup, so open to suggestions there. As the code stands, it will still assign team dbt to a rollup package.
Issue #13
I added comments that describe the code flow.
The only caveat was which PR from the sister repo to select since it's possible to have multiple open PRs in a given repo. I opted to scan the PR that was most recently updated in the related repo, since I think that would address most cases.
Also this doesn't work for the rollup packages since multiple packages feed a rollup, so open to suggestions there. As the code stands, it will still assign team dbt to a rollup package.