{"id":26958594,"url":"https://github.com/flaticols/tagger","last_synced_at":"2025-04-03T04:20:23.375Z","repository":{"id":63885102,"uuid":"571027026","full_name":"flaticols/tagger","owner":"flaticols","description":"Creating a new release using the labels from the Pull Requests","archived":false,"fork":false,"pushed_at":"2023-09-05T08:55:55.000Z","size":2103,"stargazers_count":3,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T05:38:24.621Z","etag":null,"topics":["action","actions","automation","releases","tags"],"latest_commit_sha":null,"homepage":"https://github.com/flaticols/tagger","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/flaticols.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-26T23:03:14.000Z","updated_at":"2023-01-13T09:00:49.000Z","dependencies_parsed_at":"2024-06-20T21:51:30.637Z","dependency_job_id":"5e466f52-a4d7-4363-9f30-41cc68905247","html_url":"https://github.com/flaticols/tagger","commit_stats":{"total_commits":68,"total_committers":6,"mean_commits":"11.333333333333334","dds":"0.47058823529411764","last_synced_commit":"b1996ee9ee69c26514dcc07673fe01502e0f1ff5"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaticols%2Ftagger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaticols%2Ftagger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaticols%2Ftagger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flaticols%2Ftagger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flaticols","download_url":"https://codeload.github.com/flaticols/tagger/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246837683,"owners_count":20841903,"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":["action","actions","automation","releases","tags"],"created_at":"2025-04-03T04:20:22.784Z","updated_at":"2025-04-03T04:20:23.361Z","avatar_url":"https://github.com/flaticols.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tagger 0.8\n\nCreating a new release using the labels from the Pull Requests\n\n## 🚀 How to use\n\nAdd a one of `major`, `minor` or `path` label to your PR and merge it.\n\n-  **Major** - reset `minor` and `patch`\n-  **Minor** - reset `patch`\n\n**Examples**\n\n##### Just add `patch` label to PR:\n  With default settings you will get release: v0.0.1\n\n##### Add `patch` and I have latest tag `v0.4.10`\n  Result: release with tag and name `v0.4.11`\n\n##### Add `Minor` and I have latest tag `v0.4.10`\n  Result: release with tag and name `v0.5.0`\n\n##### Add `Major` and I have latest tag `v0.4.10`\n  Result: release with tag and name `v1.0.0`\n\n\n### First run\n\n#### Labels\n\nThere are 3 labels will be created or updated (comply with [semver](https://semver.org)):\n\n  - Major\n  - Minor\n  - Patch\n\n#### Tags\n\nIf your repository does not contain any tags, the next one after the `default_tag` will be created:\n\nDefault: `v0.0.0` -\u003e first tag `v0.0.1`\n\n### inputs\n\n - `github-token` - GitHub Token. Default `${{ github.token }}`\n - `pr-number` - GitHub Token. Default `${{ github.event.number }}`\n - `default-tag` - GitHub Token. Default `0.0.0`\n - `prefix` - Tag prefix. Default `v`\n\n### Add new GitHub Action Workflow file:\n\n```yaml\nname: 'Release'\n\non:\n  pull_request:\n    types: [closed]\n\njobs:\n  release:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n      - uses: flaticols/tagger@v1.0.0\n```\n\n### Override inputs:\n\n```yaml\nname: 'Release'\n\non:\n  pull_request:\n    types: [closed]\n\njobs:\n  release:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n        with:\n          github-token: 'My token'\n          pr-number: 10\n          default-tag: '0.1.0'\n          prefix: \"ver\"\n      - uses: flaticols/tagger@v1.0.0\n```\n\n### Run locally\n\n```bash\ngo run . create -o flaticols -r tagger -t $(gh auth token)\n```\n\n### Use as package (with cobra only)\n\n```go\npackage main\n\nimport C \"github.com/flaticols/tagger/commands\"\n\nfunc main() {\n\troot := cobra.Command{}\n\n\troot.AddCommand(C.CreateCommand())\n\n\t_, err := root.ExecuteC()\n\tif err != nil {\n\t\treturn\n\t}\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaticols%2Ftagger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflaticols%2Ftagger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflaticols%2Ftagger/lists"}