https://github.com/conduitio/gh-tagger
Tool for tagging multiple repositories at once.
https://github.com/conduitio/gh-tagger
Last synced: about 1 year ago
JSON representation
Tool for tagging multiple repositories at once.
- Host: GitHub
- URL: https://github.com/conduitio/gh-tagger
- Owner: ConduitIO
- License: apache-2.0
- Created: 2022-09-20T15:27:00.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-20T15:53:22.000Z (almost 4 years ago)
- Last Synced: 2025-02-09T13:17:53.460Z (over 1 year ago)
- Language: Go
- Size: 20.5 KB
- Stars: 0
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Github tagger
A set of tools for tagging multiple repositories at once.
## Usage
First build the tools
```
make build
```
Now you have two binaries that you can use together to bump
a bunch of tags in multiple Github repositories.
The commands interact with the Github API so you will need
to provide a [github token](https://github.com/settings/tokens)
in the environment variable `GITHUB_TOKEN`. The token needs
the scope `repo`.
```
# set github token
export GITHUB_TOKEN=my-github-token
# fetch the latest semantic version tag for all repos in
# organization conduitio, bump the minor version and output
# the list of new tags into file repos.txt
./gh-tag-fetcher -bump minor conduitio > repos.txt
# manually edit repos.txt if necessary
# pipe the contents of repos.txt into gh-tag-creator which
# will create the tags according to the list in repos.txt
cat repos.txt | ./gh-tag-creator
```