https://github.com/psampaz/gothanks
GoThanks automatically stars Go's official repository and your go.mod github dependencies, providing a simple way to say thanks to the maintainers of the modules you use and the contributors of Go itself.
https://github.com/psampaz/gothanks
community go golang open-source thanks
Last synced: 8 months ago
JSON representation
GoThanks automatically stars Go's official repository and your go.mod github dependencies, providing a simple way to say thanks to the maintainers of the modules you use and the contributors of Go itself.
- Host: GitHub
- URL: https://github.com/psampaz/gothanks
- Owner: psampaz
- License: mit
- Created: 2019-11-10T07:48:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-02-18T11:09:14.000Z (almost 3 years ago)
- Last Synced: 2024-11-04T17:47:34.408Z (about 1 year ago)
- Topics: community, go, golang, open-source, thanks
- Language: Go
- Homepage:
- Size: 239 KB
- Stars: 126
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ccamel - psampaz/gothanks - GoThanks automatically stars Go's official repository and your go.mod github dependencies, providing a simple way to say thanks to the maintainers of the modules you use and the contributors of Go itself. (Go)
- awesome-go-cn - gothanks
- awesome-go - gothanks - GoThanks automatically stars your go.mod github dependencies, sending this way some love to their maintainers. (Go Tools / Routers)
- fucking-awesome-go - gothanks - GoThanks automatically stars your go.mod github dependencies, sending this way some love to their maintainers. (Go Tools / Routers)
- awesome-go-plus - gothanks - GoThanks automatically stars your go.mod github dependencies, sending this way some love to their maintainers.  (Go Tools / Routers)
- awesome-go - gothanks - GoThanks automatically stars your go.mod github dependencies, sending this way some love to their maintainers. (Go Tools / Routers)
- awesome-go-with-stars - gothanks - GoThanks automatically stars your go.mod github dependencies, sending this way some love to their maintainers. (Go Tools / Routers)
- awesome-go - gothanks - GoThanks automatically stars your go.mod github dependencies, sending this way some love to their maintainers. (Go Tools / Routers)
- awesome-go-cn - gothanks
- awesome-go - gothanks - GoThanks automatically stars your go.mod github dependencies, sending this way some love to their maintainers. (Go Tools / Routers)
- awesome-go-extra - gothanks - 11-10T07:48:02Z|2021-03-01T23:15:34Z| (Go Tools / Routers)
- awesome-go - gothanks - GoThanks automatically stars your go.mod github dependencies, sending this way some love to their maintainers. (Go Tools / Routers)
- awesome-go - gothanks - GoThanks automatically stars your go.mod github dependencies, sending this way some love to their maintainers. (Go Tools / Routers)
- awesome-go-cn - gothanks
- awesome-Char - gothanks - GoThanks automatically stars your go.mod github dependencies, sending this way some love to their maintainers. (Go Tools / Routers)
README


[](https://goreportcard.com/report/github.com/psampaz/gothanks)
[](https://godoc.org/github.com/psampaz/gothanks)
Give thanks (in the form of a GitHub ★) to your fellow Go modules maintainers.
# About
GoThanks performs the following operations
- Sends a star to Go's repo (github.com/golang.go)
- Reads your go.mod file and sends a star to every Github repository that your app/library depends on
This is a simple way to say thanks to the maintainers of the modules you use and the contributors of Go itself.
# Credits
GoThanks is a Go port of symfony/thanks implemented by Nicolas Grekas (nicolas-grekas) for PHP.
Original idea by Doug Tangren (softprops) for Rust.
# Installation
```go
$ go get -u github.com/psampaz/gothanks
```
# Usage
In order to run GoThanks you need to have a valid [Github Access Token](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line) with `public_repo` scope.
You can pass the token as an argument to GoThanks or store it in an environmental variable named GITHUB_TOKEN.
Inside the folder where your go.mod lives run:
```go
$ ./gothanks -github-token=xxxxxx
```
or
```go
$ export GITHUB_TOKEN=xxxxx
$ ./gothanks
```
## Docker
Run
```
docker run -it --rm -v $(pwd):/home psampaz/gothanks:latest -github-token=xxxxxx
```
or
```
docker run -it --rm -v $(pwd):/home --env GITHUB_TOKEN=xxxxxx psampaz/gothanks:latest
```
# Example
```go
$ ./gothanks
Welcome to GoThanks :)
You are about to star you beloved dependencies.
Press y to continue or n to abort
y
Sending your love..
Repository github.com/golang/go is already starred!
Repository github.com/golang/net is already starred!
Sending a star to github.com/google/go-github
Sending a star to github.com/stretchr/testify
Sending a star to github.com/sirupsen/logrus
Thank you!
```
You can also run it on non-interactive environments using `-y` flag.
```go
$ ./gothanks -y
Welcome to GoThanks :)
Sending your love..
Repository github.com/golang/go is already starred!
Repository github.com/google/go-github is already starred!
Repository github.com/sirkon/goproxy is already starred!
Repository github.com/golang/crypto is already starred!
Repository github.com/golang/net is already starred!
Repository github.com/golang/oauth2 is already starred!
Thank you!
```