You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I mostly use GitHub, so my suggestion is based around that ecosystem.
At the moment, the source of the list of repositories to alter is either (a) everything owned by a user/organisation, or (b) a specific set of repositories.
What I often do is use a GitHub code or repository search to find the set of target repositories first, then feed that into multi-gitter.
I propose adding a --repo-search flag (GitHub only, initially) that would use the flag as an SCM-specific search query that would gather the set of target repositories. The syntax accepted by the flag would be that supported by the underlying SCM, and would be passed through directly.
Example searches:
partial names with boolean queries: owner:buildkite-plugins in:name docker AND plugin
one or multiple owners owner:cultureamp owner:jamestelfer fork:true in:name plugin
Key drawback to this approach is that it is possible that it is not consistent across executions, making it potentially tricky for commands like merge or status. Ultimately there is some level of similar potential for instability in existing options like --topic, but it's worth calling out.
In my use I tend to work with this by ensuring that the PRs created have a set of tags to make status and merging easy to query by other means. In GitHub, searching by the PR's base branch or tags is quite straightforward, allowing PRs created by multiple runs of multi-gitter to be tracked and updated as a group.
GitHub search query syntax (this is the legacy search, as the API does not yet use the new search engine).
The initial discussion centred around using code search. This is a common use case for me (finding which repositories reference a certain library, or use a method/idiom that we're targeting for evolution).
The text was updated successfully, but these errors were encountered:
I mostly use GitHub, so my suggestion is based around that ecosystem.
At the moment, the source of the list of repositories to alter is either (a) everything owned by a user/organisation, or (b) a specific set of repositories.
What I often do is use a GitHub code or repository search to find the set of target repositories first, then feed that into
multi-gitter
.I propose adding a
--repo-search
flag (GitHub only, initially) that would use the flag as an SCM-specific search query that would gather the set of target repositories. The syntax accepted by the flag would be that supported by the underlying SCM, and would be passed through directly.Example searches:
owner:buildkite-plugins in:name docker AND plugin
owner:cultureamp owner:jamestelfer fork:true in:name plugin
Key drawback to this approach is that it is possible that it is not consistent across executions, making it potentially tricky for commands like
merge
orstatus
. Ultimately there is some level of similar potential for instability in existing options like--topic
, but it's worth calling out.In my use I tend to work with this by ensuring that the PRs created have a set of tags to make status and merging easy to query by other means. In GitHub, searching by the PR's base branch or tags is quite straightforward, allowing PRs created by multiple runs of
multi-gitter
to be tracked and updated as a group.Relevant GitHub documentation:
The initial discussion centred around using code search. This is a common use case for me (finding which repositories reference a certain library, or use a method/idiom that we're targeting for evolution).
The text was updated successfully, but these errors were encountered: