{"id":20463203,"url":"https://github.com/devwithkrishna/devwithkrishna-create-release-action","last_synced_at":"2026-05-05T20:32:09.450Z","repository":{"id":250502153,"uuid":"834607930","full_name":"devwithkrishna/devwithkrishna-create-release-action","owner":"devwithkrishna","description":"An action to create release in GitHub","archived":false,"fork":false,"pushed_at":"2024-07-28T14:21:39.000Z","size":25,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T11:53:00.408Z","etag":null,"topics":["docker","github-actions","poetry","python","release"],"latest_commit_sha":null,"homepage":"https://github.com/devwithkrishna/devwithkrishna-create-release-action","language":"Python","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/devwithkrishna.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":"2024-07-27T19:41:10.000Z","updated_at":"2024-07-28T14:21:43.000Z","dependencies_parsed_at":"2025-01-16T00:48:36.545Z","dependency_job_id":"93fdd350-b598-49c1-9d06-9513a3a98bac","html_url":"https://github.com/devwithkrishna/devwithkrishna-create-release-action","commit_stats":null,"previous_names":["devwithkrishna/devwithkrishna-create-release-action"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/devwithkrishna/devwithkrishna-create-release-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fdevwithkrishna-create-release-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fdevwithkrishna-create-release-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fdevwithkrishna-create-release-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fdevwithkrishna-create-release-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devwithkrishna","download_url":"https://codeload.github.com/devwithkrishna/devwithkrishna-create-release-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devwithkrishna%2Fdevwithkrishna-create-release-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259431320,"owners_count":22856497,"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":["docker","github-actions","poetry","python","release"],"created_at":"2024-11-15T13:09:53.835Z","updated_at":"2026-05-05T20:32:04.414Z","avatar_url":"https://github.com/devwithkrishna.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# devwithkrishna-create-release-action\nAn action to create release in GitHub\n\n# What's New\n\nPlease refer to the [release](https://github.com/devwithkrishna/devwithkrishna-create-release-action/releases) page for the latest release notes.\n\n# Input arguments\n\n| Input name             | Description                                     | Required           | Default value    |\n|------------------------|-------------------------------------------------|--------------------|------------------|\n| token                  | GitHub access token                             | :heavy_cehck_mark: | No default value | \n| pr_number              | Pull request number triggered the workflow      | :heavy_cehck_mark: | No default value |\n| draft                  | draft release or not. Boolean value             | ❌                  | Default - false |\n| prerelease             | Release is latest or pre-release. Boolean value | ❌ | Default - false |\n| generate_release_notes | Auto generate release notes. Boolean value      | ❌ | Default - false |\n\n* Draft parameter and prerelease can not be used at same time. Either one can be used at a time.\n\n* ❌ 👉 Means optional values\n\n# General Usage \n\n```markdown\n    - name: create-release\n      uses: devwithkrishna/devwithkrishna-create-release-action@v1.0.1\n      with:\n        token: \u003cyour token reference here\u003e\n        pr_number: ${{ github.event.number }} #this will be passed from workflow \n        draft: true / false\n        prerelease: true / false\n        generate_release_notes: true / false\n```\n\n# How the releases are created\n```shell\n.\n|-- Dockerfile\n|-- LICENSE\n|-- README.md\n|-- action.yml\n|-- create_new_release.py\n|-- entrypoint.sh\n|-- get_label_from_pr.py\n|-- latest_release.py\n|-- pyproject.toml\n```\n\n* This is specifically designed for Github usecase in which a Pull request is raised to merge a change from `Non main branch` to `main branch`\n\n* Expects a Specific label in PR. label should be one among `first-release`, `major`, `minor`, `patch` (case sensitive). only one among these.\n\n* When PR is merged to main branch and finds one among above lables, based on label it creates a new tag and generates the release\n\n* The token provided should have sufficient previllage to create a tag and release.\n\n* A PR should be merged to main branch to generate a release.\n\n* You can have n number of labels on PR. But for this to work one from `first-release`, `major`, `minor`, `patch` should be present and only one.\n\n* If the label `first-release` is found the release version will be `v1.0.0`. first release should only be used one time to create the first release version.\n\n* If it finds `major` label, this will increase the major version by 1 and `resets patch and minor components`\n\n* If it finds `minor` label, this will increase the minor version by 1 and `resets patch keeping major same`\n\n* If it finds `patch` label, this will increase the patch version by 1 and `major and minor components are kept unchanged`\n\n# Example usages\n\n# Pass a secret as token for devwithkrishna/devwithkrishna-create-release-action \n\n```markdown\n- name: create-release\n      uses: devwithkrishna/devwithkrishna-create-release-action@v1.0.1\n      with:\n        token: ${{ secrets.TOKEN }}\n        pr_number: ${{ github.event.number }} #this will be passed from workflow \n```\n* Assuming you have a `token with name TOKEN` set in GITHUB SECRETS  \n\n# Draft release creation\n\n```markdown\n- name: create-release\n      uses: devwithkrishna/devwithkrishna-create-release-action@v1.0.1\n      with:\n        token: ${{ secrets.TOKEN }}\n        pr_number: ${{ github.event.number }} #this will be passed from workflow \n        draft: true\n```\n* Assuming you have a `token with name TOKEN` set in GITHUB SECRETS\n\n# Pre release with auto generate release notes\n\n```markdown\n    - name: create-release\n      uses: devwithkrishna/devwithkrishna-create-release-action@v1.0.1\n      with:\n        token: ${{ secrets.TOKEN }}\n        pr_number: ${{ github.event.number }}\n        generate_release_notes: true\n        prerelease: true\n```\n* Assuming you have a `token with name TOKEN` set in GITHUB SECRETS\n\n\n# Pass a token generated from another action\n\n```markdown\nname: create release\n\non:\n  pull_request:\n    types:\n    - closed\n    branches:\n    - main\n\njobs:\n  create-release:\n    runs-on: ubuntu-latest\n\n    steps:\n\n    - name: Token generator\n      uses: githubofkrishnadhas/github-access-using-githubapp@v2\n      id: token-generation\n      with:\n        github_app_id: ${{ secrets.APP_ID }}\n        github_app_private_key : ${{ secrets.PRIVATE_KEY }}\n\n    - name: create-release\n      uses: devwithkrishna/devwithkrishna-create-release-action@v1.0.1\n      with:\n        token: ${{ steps.token-generation.outputs.token }}\n        pr_number: ${{ github.event.number }}\n        generate_release_notes: true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevwithkrishna%2Fdevwithkrishna-create-release-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevwithkrishna%2Fdevwithkrishna-create-release-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevwithkrishna%2Fdevwithkrishna-create-release-action/lists"}