{"id":21834370,"url":"https://github.com/hmajid2301/gitlab-auto-release","last_synced_at":"2026-05-15T23:35:34.091Z","repository":{"id":44863098,"uuid":"198237942","full_name":"hmajid2301/gitlab-auto-release","owner":"hmajid2301","description":"Python script which is used to create releases on GitLab, mirrored from https://gitlab.com/gitlab-automation-toolkit/gitlab-auto-release","archived":false,"fork":false,"pushed_at":"2023-02-11T01:07:06.000Z","size":69,"stargazers_count":1,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-03-29T21:06:55.925Z","etag":null,"topics":["automation","gitlab","gitlab-ci","python","release"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hmajid2301.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-22T14:18:21.000Z","updated_at":"2022-10-18T20:57:36.000Z","dependencies_parsed_at":"2023-01-24T15:30:21.962Z","dependency_job_id":null,"html_url":"https://github.com/hmajid2301/gitlab-auto-release","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/hmajid2301/gitlab-auto-release","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmajid2301%2Fgitlab-auto-release","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmajid2301%2Fgitlab-auto-release/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmajid2301%2Fgitlab-auto-release/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmajid2301%2Fgitlab-auto-release/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hmajid2301","download_url":"https://codeload.github.com/hmajid2301/gitlab-auto-release/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmajid2301%2Fgitlab-auto-release/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33083622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","gitlab","gitlab-ci","python","release"],"created_at":"2024-11-27T20:10:24.181Z","updated_at":"2026-05-15T23:35:34.076Z","avatar_url":"https://github.com/hmajid2301.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":".. image:: https://gitlab.com/gitlab-automation-toolkit/gitlab-auto-release/badges/master/pipeline.svg\n   :target: https://gitlab.com/gitlab-automation-toolkit/gitlab-auto-release\n   :alt: Pipeline Status\n\n.. image:: https://gitlab.com/gitlab-automation-toolkit/gitlab-auto-release/badges/master/coverage.svg\n   :target: https://gitlab.com/gitlab-automation-toolkit/gitlab-auto-release\n   :alt: Coverage\n\n.. image:: https://img.shields.io/pypi/l/gitlab-auto-release.svg\n   :target: https://pypi.org/project/gitlab-auto-release/\n   :alt: PyPI Project License\n\n.. image:: https://img.shields.io/pypi/v/gitlab-auto-release.svg\n   :target: https://pypi.org/project/gitlab-auto-release/\n   :alt: PyPI Project Version\n\nGitLab Auto Release\n===================\n\nThis is a simple Python cli script that allows you create releases in GitLab automatically. It is intended to be\nused during your CI/CD. However you can chose to use it however you wish.\n\nUsage\n-----\n\nFirst you need to create a personal access token,\n`more information here \u003chttps://docs.gitlab.com/ee/user/profile/personal_access_tokens.html\u003e`_.\nWith the scope ``api``, so it can create the release for you. This access token is passed\nto the script with the ``--private-token`` argument.\n\n.. code-block:: bash\n\n  pip install gitlab-auto-release\n  gitlab_auto_release --help\n\n  Usage: gitlab_auto_release [OPTIONS]\n\n    Gitlab Auto Release Tool.\n\n  Options:\n    --private-token TEXT    Private GITLAB token, used to authenticate when\n                            calling the Release API.  [required]\n    --gitlab-url TEXT       The GitLab URL i.e. gitlab.com.  [required]\n    --project-id INTEGER    The project ID on GitLab to create the Release for.\n                            [required]\n    --tag-name TEXT         The tag the release should be created from.\n                            [required]\n    --release-name TEXT     The name of the release.  [required]\n    -c, --changelog TEXT    Path to file to changelog file, will append itself\n                            to the description with tag matching changelog. Must\n                            be in keepachangelog format.\n    -d, --description TEXT  String to use as the description for the release.\n    -a, --asset TEXT        An asset to include in the release, i.e.\n                            name=link_to_asset.\n    --artifacts TEXT        Will include artifacts from jobs specified in\n                            current pipeline. Use job name.\n    --help                  Show this message and exit.\n\n.. code-block:: bash\n\n  gitlab_auto_release --private-token $(private_otken) --project-id 8593636 \\\n    --gitlab-url https://gitlab.com/stegappasaurus/stegappasaurus-app \\\n    --tag-name v0.1.0 --release-name v0.1.0 --changelog CHANGELOG.md\n\nGitLab CI\n*********\n\nSet a secret variable in your GitLab project with your private token. Name it ``GITLAB_PRIVATE_TOKEN`` (``CI/CD \u003e Environment Variables``).\nThis is necessary to create the release on your behalf.\nAn example CI using this can be found\n`here \u003chttps://gitlab.com/hmajid2301/stegappasaurus/blob/a22b7dc80f86b471d8a2eaa7b7eadb7b492c53c7/.gitlab-ci.yml\u003e`_,\nlook for the ``post:create:gitlab:release:`` job.\n\nAdd the following to your ``.gitlab-ci.yml`` file:\n\n.. code-block:: yaml\n\n  stages:\n    - post\n\n  publish:release:\n    image: registry.gitlab.com/gitlab-automation-toolkit/gitlab-auto-release\n    stage: post\n    before_script: []\n    script:\n      - gitlab_auto_release --changelog CHANGELOG.md --artifacts lint --artifacts report\n\n\nPredefined Variables\n^^^^^^^^^^^^^^^^^^^^\n\nPlease note some of the arguments can be filled in using environment variables defined during GitLab CI.\nFor more information `click here \u003chttps://docs.gitlab.com/ee/ci/variables/predefined_variables.html\u003e_`.\n\n* If ``--private-token`` is not set the script will look for the ENV variable ``GITLAB_PRIVATE_TOKEN``\n* If ``--gitlab-url`` is not set it will look for for the ENV variable ``CI_SERVER_URL``\n* If ``--project-id`` is not set it will look for for the ENV variable ``CI_PROJECT_ID``\n* If ``--tag-name`` is not set it will look for for the ENV variable ``CI_COMMIT_TAG``\n\nSetup Development Environment\n=============================\n\n.. code-block:: bash\n\n  git clone git@gitlab.com:gitlab-automation-toolkit/gitlab-auto-release.git\n  cd gitlab-auto-release\n  pip install tox\n  make install-venv\n  source .venv/bin/activate\n  make install-dev\n\nChangelog\n=========\n\nYou can find the `changelog here \u003chttps://gitlab.com/gitlab-automation-toolkit/gitlab-auto-release/blob/master/CHANGELOG.md\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmajid2301%2Fgitlab-auto-release","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmajid2301%2Fgitlab-auto-release","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmajid2301%2Fgitlab-auto-release/lists"}