{"id":15603322,"url":"https://github.com/pcboy/ghlabel","last_synced_at":"2025-04-06T09:29:38.197Z","repository":{"id":56874152,"uuid":"88110116","full_name":"pcboy/ghlabel","owner":"pcboy","description":"ghlabel lets you set/unset labels on the PR related to the current branch you are on.","archived":false,"fork":false,"pushed_at":"2017-04-14T05:20:49.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-25T10:20:53.728Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/pcboy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-13T01:02:15.000Z","updated_at":"2018-05-15T02:51:41.000Z","dependencies_parsed_at":"2022-08-20T22:30:21.437Z","dependency_job_id":null,"html_url":"https://github.com/pcboy/ghlabel","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcboy%2Fghlabel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcboy%2Fghlabel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcboy%2Fghlabel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcboy%2Fghlabel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcboy","download_url":"https://codeload.github.com/pcboy/ghlabel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247463673,"owners_count":20942935,"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-10-03T03:02:38.873Z","updated_at":"2025-04-06T09:29:38.174Z","avatar_url":"https://github.com/pcboy.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ghlabel\n\nghlabel lets you set/unset labels on the PR related to the current branch you are on.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'ghlabel'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install ghlabel\n\n## Usage\n\n```\n$\u003e ghlabel -h\n  -t, --token-file=\u003cs\u003e                           File containing your github token (https://github.com/settings/tokens)\n\t-r, --repository=\u003cs\u003e                           The repository you are working on\n\t-o, --organization=\u003cs\u003e                         Your organization name\n  -a, --add=\u003cs\u003e                                  --add label1,label2,label3\n  -e, --remove=\u003cs\u003e                               --remove label1,label2,label3\n  -w, --with-references, --no-with-references    Also apply labels to title referenced #issues_numbers (default: true)\n  -h, --help                                     Show this message\n```\n\nAdd QA,Review label to the current PR\n```\nghlabel -t .github-token --add QA,Review\n```\n\nRemove QA,Review label to the current PR\n```\nghlabel -t .github-token --remove QA,Review\n```\n\nIf your PR contains some references to others issues with #issue\\_number the corresponding issues will have their labels changed too.\nYou can prevent that behavior by adding --no-with-references\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ghlabel. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the WTFPL \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcboy%2Fghlabel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcboy%2Fghlabel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcboy%2Fghlabel/lists"}