Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mergestat/bulk

CLI for running bulk actions (ad-hoc scripts) on sets of Git repositories
https://github.com/mergestat/bulk

Last synced: 7 days ago
JSON representation

CLI for running bulk actions (ad-hoc scripts) on sets of Git repositories

Awesome Lists containing this project

README

        

# bulk

`bulk` is a CLI for running bulk actions (ad-hoc scripts) on sets of Git repositories.
Often, it can be useful to run some action(s) against a grouping of repositories (all the repos in an org, all repos of a certain language, all rails repos, all golang repos etc.)

## Examples

The `GITHUB_TOKEN` env variable must be set to fetch repositories from a GitHub org or user.

### Check if every repo in an org has a `LICENSE` file

```yaml
# bulk.yaml
repos:
githubOrgRepos:
- org: mergestat

actions:
# - command: cat LICENSE
- command: >-
if [[ -f "LICENSE" ]]; then echo ✅; else echo ❌;fi
```

## Roadmap
- [ ] File based output mode - create an output file for the results of commands run in each repo
- [ ] Logging improvements
- [ ] Support repo caching, so that a new clone is not needed on every run
- [ ] Release with GoReleaser