{"id":19190972,"url":"https://github.com/michionlion/pr-tag-release","last_synced_at":"2026-06-23T05:30:18.129Z","repository":{"id":91025896,"uuid":"179764473","full_name":"Michionlion/pr-tag-release","owner":"Michionlion","description":"Bash script to generate a tag and release from a merged PR","archived":false,"fork":false,"pushed_at":"2019-04-24T23:54:26.000Z","size":101,"stargazers_count":1,"open_issues_count":3,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T07:26:48.510Z","etag":null,"topics":["automation","git-tags","github-releases","publish","release","travis-ci"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Michionlion.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-05T22:49:50.000Z","updated_at":"2019-05-23T13:08:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"f74ad926-f21f-454c-b1f7-7dff93cb44a9","html_url":"https://github.com/Michionlion/pr-tag-release","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/Michionlion%2Fpr-tag-release","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Michionlion%2Fpr-tag-release/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Michionlion%2Fpr-tag-release/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Michionlion%2Fpr-tag-release/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Michionlion","download_url":"https://codeload.github.com/Michionlion/pr-tag-release/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240267725,"owners_count":19774239,"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":["automation","git-tags","github-releases","publish","release","travis-ci"],"created_at":"2024-11-09T11:38:56.012Z","updated_at":"2026-06-23T05:30:18.072Z","avatar_url":"https://github.com/Michionlion.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PR Tag Release Script\n\nThis is a simple bash script to generate a tag on a merged PR. A label is added\nto the PR as well, the name, description, and color of which can be modified.\nIt also sets relevent environment variables so that a Travis release is easy.\nSee the included `.travis.yml` for an example.\n\nThe available configuration environment variables are shown below. Keep in mind\nthat the `PRERELEASE_REGEX` and `DRAFT_REGEX` are applied to the ***title*** of\nthe Pull Request, unlike the others, which apply to the body.\n\n```bash\nMERGE_COMMIT_REGEX=${MERGE_COMMIT_REGEX-\"Merge pull request #([0-9]+)\"}\nPATCH_CHANGE_REGEX=${PATCH_CHANGE_REGEX-\"This (PR|release) is an?( small| tiny)? (update|bugfix|change)\"}\nMINOR_CHANGE_REGEX=${MINOR_CHANGE_REGEX-\"This (PR|release) is a (feature( update| change)?|big (update|change))\"}\nMAJOR_CHANGE_REGEX=${MAJOR_CHANGE_REGEX-\"This (PR|release) (is a ((compatibility[ -])?breaking|major) (update|change)| breaks( backwards)? compatibility)\"}\nPRERELEASE_REGEX=${PRERELEASE_REGEX-\"\\[(PRE|WIP|PRERELEASE)\\]\"}\nDRAFT_REGEX=${DRAFT_REGEX-\"\\[(WIP|DRAFT)\\]\"}\n```\n\n```bash\nPATCH_LABEL_COLOR=${PATCH_LABEL_COLOR-\"14a3bc\"}\nPATCH_LABEL_NAME=${PATCH_LABEL_NAME-\"patch\"}\nPATCH_LABEL_DESC=${PATCH_LABEL_DESC-\"This PR updates the patch version: v0.0.X\"}\n\nMINOR_LABEL_COLOR=${MINOR_LABEL_COLOR-\"23e059\"}\nMINOR_LABEL_NAME=${MINOR_LABEL_NAME-\"minor\"}\nMINOR_LABEL_DESC=${MINOR_LABEL_DESC-\"This PR updates the minor version: v0.X.0\"}\n\nMAJOR_LABEL_COLOR=${MAJOR_LABEL_COLOR-\"c60f7a\"}\nMAJOR_LABEL_NAME=${MAJOR_LABEL_NAME-\"major\"}\nMAJOR_LABEL_DESC=${MAJOR_LABEL_DESC-\"This PR updates the major version: vX.0.0\"}\n```\n\nIncluding the below `yaml` in your `.travis.yml` and providing the\n`$GITHUB_OAUTH_TOKEN` enviroment variable will enable auto-generated releases.\n\n```yaml\nafter_success:\n  - wget https://github.com/Michionlion/pr-tag-release/releases/latest/download/pr_tag_release.sh\n  - source pr_tag_release.sh\ndeploy:\n  provider: releases\n  api_key: \"$GITHUB_OAUTH_TOKEN\"\n  skip_cleanup: true\n  on:\n    branch: master\n    condition: $DO_GITHUB_RELEASE = true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichionlion%2Fpr-tag-release","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichionlion%2Fpr-tag-release","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichionlion%2Fpr-tag-release/lists"}