{"id":13564451,"url":"https://github.com/psampaz/gothanks","last_synced_at":"2025-04-03T21:30:55.872Z","repository":{"id":54238847,"uuid":"220758117","full_name":"psampaz/gothanks","owner":"psampaz","description":"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.","archived":false,"fork":false,"pushed_at":"2023-02-18T11:09:14.000Z","size":245,"stargazers_count":126,"open_issues_count":1,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-04T17:47:34.408Z","etag":null,"topics":["community","go","golang","open-source","thanks"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/psampaz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-11-10T07:48:02.000Z","updated_at":"2024-10-31T03:07:50.000Z","dependencies_parsed_at":"2024-01-08T16:09:20.404Z","dependency_job_id":"f1e6c875-2f26-43e5-9f72-215453b8ecb2","html_url":"https://github.com/psampaz/gothanks","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psampaz%2Fgothanks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psampaz%2Fgothanks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psampaz%2Fgothanks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psampaz%2Fgothanks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psampaz","download_url":"https://codeload.github.com/psampaz/gothanks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247083001,"owners_count":20880758,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["community","go","golang","open-source","thanks"],"created_at":"2024-08-01T13:01:31.597Z","updated_at":"2025-04-03T21:30:51.667Z","avatar_url":"https://github.com/psampaz.png","language":"Go","funding_links":[],"categories":["Go Tools","Go 工具","Go","Libraries for creating HTTP middlewares"],"sub_categories":["Routers","路由器","代码分析"],"readme":"\u003cp align=\"center\"\u003e\u003cimg width=\"500\" src=\"gothanks.png\"\u003e\u003c/p\u003e\n\n![Build Status](https://github.com/psampaz/gothanks/workflows/CI%20Workflow/badge.svg)\n[![Go Report Card](https://goreportcard.com/badge/github.com/psampaz/gothanks)](https://goreportcard.com/report/github.com/psampaz/gothanks)\n[![GoDoc](https://godoc.org/github.com/psampaz/gothanks?status.svg)](https://godoc.org/github.com/psampaz/gothanks)\n\nGive thanks (in the form of a GitHub ★) to your fellow Go modules maintainers. \n\n# About\n\nGoThanks performs the following operations\n\n- Sends a star to Go's repo (github.com/golang.go)\n- Reads your go.mod file and sends a star to every Github repository that your app/library depends on\n\nThis is a simple way to say thanks to the maintainers of the modules you use and the contributors of Go itself.\n\n# Credits\n\nGoThanks is a Go port of symfony/thanks implemented by Nicolas Grekas (nicolas-grekas) for PHP.\n\nOriginal idea by Doug Tangren (softprops) for Rust.\n\n# Installation\n\n```go\n$ go get -u github.com/psampaz/gothanks\n```\n\n# Usage\n\nIn 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. \n\nYou can pass the token as an argument to GoThanks or store it in an environmental variable named GITHUB_TOKEN.\n\nInside the folder where your go.mod lives run:\n\n```go\n$ ./gothanks -github-token=xxxxxx\n```\n\nor \n\n```go\n$ export GITHUB_TOKEN=xxxxx\n$ ./gothanks\n```\n## Docker\n\nRun\n\n```\ndocker run -it --rm -v $(pwd):/home psampaz/gothanks:latest -github-token=xxxxxx\n```\n\nor \n\n```\ndocker run -it --rm -v $(pwd):/home --env GITHUB_TOKEN=xxxxxx psampaz/gothanks:latest\n```\n\n# Example\n\n```go\n$ ./gothanks\nWelcome to GoThanks :)\n\nYou are about to star you beloved dependencies.\n\nPress y to continue or n to abort\ny\n\nSending your love..\n\nRepository github.com/golang/go is already starred!\nRepository github.com/golang/net is already starred!\nSending a star to github.com/google/go-github\nSending a star to github.com/stretchr/testify\nSending a star to github.com/sirupsen/logrus\n\nThank you!\n```\n\nYou can also run it on non-interactive environments using `-y` flag.\n\n```go\n$ ./gothanks -y\nWelcome to GoThanks :)\n\nSending your love..\n\nRepository github.com/golang/go is already starred!\nRepository github.com/google/go-github is already starred!\nRepository github.com/sirkon/goproxy is already starred!\nRepository github.com/golang/crypto is already starred!\nRepository github.com/golang/net is already starred!\nRepository github.com/golang/oauth2 is already starred!\n\nThank you!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsampaz%2Fgothanks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsampaz%2Fgothanks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsampaz%2Fgothanks/lists"}