{"id":18673002,"url":"https://github.com/projectsyn/pr-label-tag-action","last_synced_at":"2025-10-12T12:01:38.746Z","repository":{"id":204685304,"uuid":"712431248","full_name":"projectsyn/pr-label-tag-action","owner":"projectsyn","description":"A GitHub action which looks for specific labels on PRs and creates new SemVer tags after PRs with appropriate labels get merged","archived":false,"fork":false,"pushed_at":"2025-06-15T08:02:17.000Z","size":936,"stargazers_count":0,"open_issues_count":10,"forks_count":0,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-06-15T09:18:50.952Z","etag":null,"topics":["vshn-team-aldebaran"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/projectsyn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2023-10-31T13:10:16.000Z","updated_at":"2024-11-18T01:52:38.000Z","dependencies_parsed_at":"2023-11-20T04:30:37.790Z","dependency_job_id":"4e1cffbf-2d60-467d-916d-86b4f9bcbf1d","html_url":"https://github.com/projectsyn/pr-label-tag-action","commit_stats":null,"previous_names":["projectsyn/pr-label-tag-action"],"tags_count":5,"template":false,"template_full_name":"actions/typescript-action","purl":"pkg:github/projectsyn/pr-label-tag-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectsyn%2Fpr-label-tag-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectsyn%2Fpr-label-tag-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectsyn%2Fpr-label-tag-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectsyn%2Fpr-label-tag-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/projectsyn","download_url":"https://codeload.github.com/projectsyn/pr-label-tag-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/projectsyn%2Fpr-label-tag-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260654627,"owners_count":23042672,"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":["vshn-team-aldebaran"],"created_at":"2024-11-07T09:13:39.855Z","updated_at":"2025-10-12T12:01:38.625Z","avatar_url":"https://github.com/projectsyn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action to create new SemVer tags based on PR labels\n\n[![GitHub Super-Linter](https://github.com/projectsyn/pr-label-tag-action/actions/workflows/linter.yml/badge.svg)](https://github.com/super-linter/super-linter)\n![CI](https://github.com/projectsyn/pr-label-tag-action/actions/workflows/ci.yml/badge.svg)\n\nThis action looks for specific labels (by default `bump:major`, `bump:minor`, and\n`bump:patch`) on PRs, and creates a new SemVer tag based on the current latest\nversion of the repository after a PR with one of the labels is merged.\n\nCurrently, the action doesn't allow customizing the tag format. It will always\nlook for SemVer version tags prefixed with `v` and will create such tags.\n\nThe action adds a PR comment which shows what will happen if the PR is merged.\nThe comment is updated when labels are added or removed, if the workflow has\nthe appropriate triggers (see section \"Usage\").\n\nThe action can optionally trigger follow-up workflows (for example if you want\nto automatically create a release after a new tag has been created). This\nfeature requires that any workflows that should be triggered by the action\nhave the `workflow_dispatch` trigger option.\n\n## Usage\n\nTo use the action with the default configuration you can use the following\nworkflow config:\n\n```yaml\non:\n  pull_request:\n    # Run when PR head branch is updated (synchronize), when the set of PR\n    # labels is changed (labeled, unlabeled), and after the PR is closed. We\n    # additionally check for `merged==true` in the event payload on `closed`\n    # before actually pushing the tag.\n    types:\n      - synchronize\n      - labeled\n      - unlabeled\n      - closed\n\nsteps:\n  - name: Create new tag\n    uses: projectsyn/pr-label-tag-action@v1\n```\n\n### Triggering follow-up actions\n\n```yaml\non:\n  pull_request:\n    types:\n      - synchronize\n      - labeled\n      - unlabeled\n      - closed\n\nsteps:\n  - name: Create new tag\n    uses: projectsyn/pr-label-tag-action@v1\n    with:\n      trigger: |\n        Release\n```\n\nSee [this repository's \"Release\" workflow](https://github.com/projectsyn/pr-label-tag-action/blob/main/.github/workflows/release.yml)\nfor an example workflow that is be triggered correctly on both manually pushed\ntags, and tags created by this action.\n\n## Action inputs\n\n| Name | Description | Default |\n|------|-------------|---------|\n| `github-token` | Token to access GitHub | `github.token` |\n| `patch-label` | Label which indicates a patch-level SemVer bump | `bump:patch` |\n| `minor-label` | Label which indicates a minor-level SemVer bump | `bump:minor` |\n| `major-label` | Label which indicates a major-level SemVer bump | `bump:major` |\n| `trigger` | Workflow names of workflows that should be triggered when a new tag is created. Multiple workflows can be specified on separate lines. | \"\" |\n| `release-comment` | Comment that gets posted when a tag will be pushed on merge | \"🚀 Merging this PR will release \\`\\\u003cnext-version\\\u003e\\`\" |\n| `released-comment` | Comment that gets posted when a tag has been pushed | \"🚀 This PR has been released as \\[\\`\\\u003cnext-version\\\u003e\\`\\]\\(\\\u003crelease-url\\\u003e\\)\" |\n| `unmerged-comment` | Comment that gets posted when a labeled PR gets closed unmerged | \"This PR has been closed unmerged. No new release will be created for these changes\" |\n\nFor inputs `release-comment`, `released-comment` and `unmerged-comment` the action supports the following placeholders:\n\n- `\u003cnext-version\u003e` is replaced with the computed new version\n- `\u003crelease-url\u003e` is replaced with the URL to the new tag\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectsyn%2Fpr-label-tag-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprojectsyn%2Fpr-label-tag-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprojectsyn%2Fpr-label-tag-action/lists"}