sourcegraph / sourcegraph-public-snapshot

Code AI platform with Code Search & Cody
https://sourcegraph.com
Other
10.12k stars 1.29k forks source link

Import changesets in a few clicks #21801

Open sourcegraph-bot opened 3 years ago

sourcegraph-bot commented 3 years ago

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

sourcegraph-bot commented 3 years ago

Link to feature: https://sourcegraph.productboard.com/feature-board/planning/features/7894956

github-actions[bot] commented 3 years ago

Hey, @sourcegraph/batchers (@eseliger @mrnugget @LawnGnome @malomarrec @chrispine @courier-new) - we have been mentioned. Let's take a look.

malomarrec commented 3 years ago

+1 from customer

import everything dependabot opened

and +1 from customer

malomarrec commented 3 years ago

+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.

malomarrec commented 3 years ago

It sounds like all those use cases would be addressed by:

Next steps: