{"id":13807995,"url":"https://github.com/drone/drone-go","last_synced_at":"2026-01-11T09:49:52.362Z","repository":{"id":27246171,"uuid":"30718272","full_name":"drone/drone-go","owner":"drone","description":"Go client for the Drone API","archived":false,"fork":false,"pushed_at":"2024-07-08T16:10:16.000Z","size":365,"stargazers_count":269,"open_issues_count":3,"forks_count":113,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-11-09T16:47:09.023Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/drone.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}},"created_at":"2015-02-12T18:58:17.000Z","updated_at":"2024-11-02T21:41:01.000Z","dependencies_parsed_at":"2023-01-14T06:17:51.412Z","dependency_job_id":null,"html_url":"https://github.com/drone/drone-go","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone%2Fdrone-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone%2Fdrone-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone%2Fdrone-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drone%2Fdrone-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drone","download_url":"https://codeload.github.com/drone/drone-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225037240,"owners_count":17411021,"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":[],"created_at":"2024-08-04T01:01:33.452Z","updated_at":"2026-01-11T09:49:52.293Z","avatar_url":"https://github.com/drone.png","language":"Go","funding_links":[],"categories":["Libraries"],"sub_categories":["Tutorials"],"readme":"# drone-go\n\n[![Go.dev](https://pkg.go.dev/badge/github.com/drone/drone-go)](https://pkg.go.dev/github.com/drone/drone-go?tab=doc)\n\n```Go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/drone/drone-go/drone\"\n\t\"golang.org/x/oauth2\"\n)\n\nconst (\n\ttoken = \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9\"\n\thost  = \"http://drone.company.com\"\n)\n\nfunc main() {\n\t// create an http client with oauth authentication.\n\tconfig := new(oauth2.Config)\n\tauther := config.Client(\n\t\toauth2.NoContext,\n\t\t\u0026oauth2.Token{\n\t\t\tAccessToken: token,\n\t\t},\n\t)\n\n\t// create the drone client with authenticator\n\tclient := drone.NewClient(host, auther)\n\n\t// gets the current user\n\tuser, err := client.Self()\n\tfmt.Println(user, err)\n\n\t// gets the named repository information\n\trepo, err := client.Repo(\"drone\", \"drone-go\")\n\tfmt.Println(repo, err)\n}\n```\n## Release procedure\n\nRun the changelog generator.\n\n```BASH\ndocker run -it --rm -v \"$(pwd)\":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator -u drone -p drone-go -t \u003csecret github token\u003e\n```\n\nYou can generate a token by logging into your GitHub account and going to Settings -\u003e Personal access tokens.\n\nNext we tag the PR's with the fixes or enhancements labels. If the PR does not fufil the requirements, do not add a label.\n\nRun the changelog generator again with the future version according to semver.\n\n```BASH\ndocker run -it --rm -v \"$(pwd)\":/usr/local/src/your-app githubchangeloggenerator/github-changelog-generator -u drone -p drone-go -t \u003csecret token\u003e --future-release v1.0.0\n```\n\nCreate your pull request for the release. Get it merged then tag the release.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrone%2Fdrone-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrone%2Fdrone-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrone%2Fdrone-go/lists"}