Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-18T11:09:14.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T13:32:00.103Z (4 months ago)
- Topics: community, go, golang, open-source, thanks
- Language: Go
- Homepage:
- Size: 239 KB
- Stars: 124
- 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-extra - gothanks - 11-10T07:48:02Z|2021-03-01T23:15:34Z| (Go Tools / Routers)
README
![Build Status](https://github.com/psampaz/gothanks/workflows/CI%20Workflow/badge.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/psampaz/gothanks)](https://goreportcard.com/report/github.com/psampaz/gothanks)
[![GoDoc](https://godoc.org/github.com/psampaz/gothanks?status.svg)](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 onThis 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
```
## DockerRun
```
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
ySending 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/logrusThank 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!
```