Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trieloff/tidelift-all
Small helper script to add a tidelift policy file to many repositories at once
https://github.com/trieloff/tidelift-all
Last synced: 9 days ago
JSON representation
Small helper script to add a tidelift policy file to many repositories at once
- Host: GitHub
- URL: https://github.com/trieloff/tidelift-all
- Owner: trieloff
- License: apache-2.0
- Created: 2019-08-12T18:47:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-12T19:02:35.000Z (about 5 years ago)
- Last Synced: 2024-11-18T08:12:16.570Z (2 months ago)
- Language: Shell
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tidelift All
> A rising tide lifts all the boats
`tidelift-all.sh` is a small shell script that applies a uniform Tidelift policy (in the form of a `tidelift.yml` file) to a number of GitHub repositories
## Usage
```bash
$ sh tidelift-all.sh my-repo my-other-repo
```Or if you want to apply it to many repos:
```bash
$ curl "https://api.github.com/search/repositories?q=org:adobe" | jq .items[].name | xargs sh tidelift-all.sh -o adobe
```## Advanced Usage
### `-o` `--org` Select a different GitHub username or org
The default value is `adobe`, but you can override this with your user name by running
```bash
$ sh tidelift-all.sh -o trieloff
```### `-f` `--file` Add a different file
The default value is `.tidelift.yml`, but you can override this with any other file name by running
```bash
$ sh tidelift-all.sh -f .renovaterc.json
```### `-m` `--message` Change the commit message
The default value is `chore(tidelift): adding list of forbidden licenses`, but you can override this with a more accurate commit message by running
```bash
$ sh tidelift-all.sh -m "foo bar"
```### `-w` `--overwrite` Overwrite files
The default behavior is to skip repositories that already contain the specified file. With `-w` you can force overwriting.
## Limitations
- [ ] does not support patching of configs
- [x] `adobe` org is hardcoded
- [ ] it's really just a simple script and I like it that way
- [ ] contributions welcome## License
Apache-2.0