Open sourcegraph-bot opened 3 years ago
Hey, @sourcegraph/batchers (@eseliger @mrnugget @LawnGnome @malomarrec @chrispine @courier-new) - we have been mentioned. Let's take a look.
+1 from customer
What I would ideally like to do with my batch change is track a bunch of existing PRs for a package release, the PRs automatically get created by dependabot. But the importChangesets property examples in the documentation all depend on a PR number for the externalIDs property which I won't know and would have to lookup.
Ideally I would be able to do a search by branch name to import these dependabot PRs since all the dependabot PRs use a uniform branch name. So I am able to find all those branches in a SourceGraph search with this query: repo:myorg/.* rev:dependabot/pip/And incorporate that into my YAML file.
It sounds like all those use cases would be addressed by:
batch-change/my-batch-change-name
) and imports changesets with this label into the batch change.Next steps:
Motivation
User Problem
~Assumption~ ✅ : importing changesets has a lot of value and looks great when shown, but is hard to do in practice as it requires listing the PRs one by one in a spec file.
Use cases:
Ideas
campaign:whatever/whatever
and adds them to that campaign.gh
CLI might have some nice options that would let you do something likegh pr list -whatever | xargs gh pr update label=campaign:whatever/whatever
. It does not support searching by branch name though.rev:this/branch/name
. Could be useful for example to bring dependabot updates into Batch Changes, as they use standard branch names.