https://github.com/kelvintaywl/diff
simple diff tool / server to see if your service in production are up to date
https://github.com/kelvintaywl/diff
github infrastructure release-helper workflow
Last synced: 3 months ago
JSON representation
simple diff tool / server to see if your service in production are up to date
- Host: GitHub
- URL: https://github.com/kelvintaywl/diff
- Owner: kelvintaywl
- Created: 2018-05-18T06:34:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-23T09:38:06.000Z (about 7 years ago)
- Last Synced: 2025-03-22T08:03:11.707Z (7 months ago)
- Topics: github, infrastructure, release-helper, workflow
- Language: Go
- Homepage: https://hub.docker.com/r/kelvintaywl/diff/
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# diff
See commit diffs between Staging and Production.
## Assumptions
* tagged releases represent current production state.
* master branch represent current staging state.## Running
The makefile is your best friend!
### Setup
```bash
# setup dependencies
make dep# build binary
make build
```Copy and modify [.env.sample](.env.sample) to your own settings under a `.env` file.
| environment variable | remarks |
| --- | --- |
| `GITHUB_OWNER` | string value of your GitHub user or organization handler |
| `GITHUB_REPO` | comma-separated string value of repo names, e.g., `repo1,repo2` |
| `GITHUB_ACCESS_TOKEN` | string value of your GitHub access token, preferably of a bot account |### Docker
Available as a Docker image at: https://hub.docker.com/r/kelvintaywl/diff/
### run on local
```bash
make run
# or alternatively, in a verbose mannerGITHUB_ACCESS_TOKEN=yourToken GITHUB_OWNER=handler GITHUB_REPO=repo1,repo2 ./diff
open http://localhost:9999
```or point your browser to http://localhost:9999 to see the JSON response.
### Example response
See [example_output.json](example_output.json)