Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/garypwhite/tag-your-git
DSL driven git tagging
https://github.com/garypwhite/tag-your-git
go golang incoming-webhooks labels
Last synced: 19 days ago
JSON representation
DSL driven git tagging
- Host: GitHub
- URL: https://github.com/garypwhite/tag-your-git
- Owner: GaryPWhite
- Created: 2020-02-09T17:48:18.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-18T14:41:17.000Z (about 4 years ago)
- Last Synced: 2024-06-20T00:32:15.066Z (7 months ago)
- Topics: go, golang, incoming-webhooks, labels
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tag your git!
This program is intended to help you apply labels (tags) to a github repo's pull requests.
Under development now, this appliance would require:
```zsh
export TYG_TAGS = '{ { paths: ["some-directory/*","maybe-more-but-one-works-too"], tags: ["tag-as-some-directory", "anothertag"] },...}'
# ^ TYG_TAGS could (should?) be a /etc/tag-your-git/tags.json file.
export TYG_GIT_API_KEY =
# /etc/tag-your-git/git-api-key"
```you can override files with environment variables, and environment variables with command line arguments.
then you may use the command line to either `tag` a particular PR, or `listen` for incoming webhooks. `listen` as a command will be something to deploy into a docker image / using a hosting service. Stay tuned for a docker image on docker hub and/or a preferred deployment mechanism.
After deployment, we'd set an incoming webhook from git to hit the `listen`ing service, and expect that tag-your-git would read from the provided tags, and post tags appropriately.