{"id":15055360,"url":"https://github.com/tolgacakir/auto-pr","last_synced_at":"2026-01-01T22:38:10.005Z","repository":{"id":257566539,"uuid":"845038046","full_name":"tolgacakir/auto-pr","owner":"tolgacakir","description":"Create GitLab merge request from CMD","archived":false,"fork":false,"pushed_at":"2024-09-17T11:27:24.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T23:26:14.963Z","etag":null,"topics":["cmd","gitlab"],"latest_commit_sha":null,"homepage":"","language":"Batchfile","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/tolgacakir.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-08-20T13:11:05.000Z","updated_at":"2024-09-18T13:46:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"091f6cfb-f887-4164-b1b8-9d5eb0e7d675","html_url":"https://github.com/tolgacakir/auto-pr","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"3330312bf0eee19b28ddb412655a8990b4f5f60e"},"previous_names":["tolgacakir/auto-pr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolgacakir%2Fauto-pr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolgacakir%2Fauto-pr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolgacakir%2Fauto-pr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tolgacakir%2Fauto-pr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tolgacakir","download_url":"https://codeload.github.com/tolgacakir/auto-pr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243523066,"owners_count":20304522,"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":["cmd","gitlab"],"created_at":"2024-09-24T21:41:28.520Z","updated_at":"2026-01-01T22:38:09.976Z","avatar_url":"https://github.com/tolgacakir.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"[For Turkish version click here](README.tr.md)\n\n# GitLab Merge Request Automation Script\n\nThis script allows you to automatically create a merge request between the source and target branches in GitLab projects. The script is designed to be run on Windows CMD and is quite easy to use.\n\n## Requirements\n\nBefore running this script, you need to gather the following information and make the necessary updates to the script:\n\n- **Access Token**: You need a personal access token to use the GitLab API.\n- **Project ID**: You need to know the ID of the GitLab project where you will create the merge request.\n\n## Steps\n\n### 1. Find Access Token\nCreate a personal access token in GitLab. You can do this by following the steps below:\n\n1. Log in to your GitLab account.\n2. Click on your profile icon in the upper right corner and go to the **Settings** section.\n3. Click on **Access Tokens** in the left menu.\n4. Generate a token and add it to the `access_token` variable in the script.\n\n```batch\nset access_token=your_access_token\n```\n\n### 2. Find Project ID\nTo find the ID of your GitLab project, go to the project’s main page. You can find the Project ID in the **Settings** -\u003e **General** section.\n\nAdd this ID to the `project_id` variable in the script:\n```batch\nset project_id=glpat_your_project_id\n```\n\n### 3. Open CMD in the Script Directory\nOpen a CMD terminal in the directory where the script file is located.\n\n### 4. Example Usage\nYou can run the script with the following command:\n```batch\nmr.bat -s your-source-branch -t your-target-branch\n```\n\n- `-s`: Specify the source branch name.\n- `-t`: Specify the target branch name.\n\nFor example:\n```batch\nmr.bat -s feature-branch -t main\n```\nThis command will create a merge request from `feature-branch` to the `main` branch.\n\n### 5. Output\nWhen the script runs successfully, you will see the following message:\n```\nSuccessful\n```\n\nIf an error occurs:\n```\nFailed\n```\n\n### Notes\n- The script uses the GitLab API and requires your personal access token (`access_token`).\n- The script is designed to be run from a CMD terminal.\n\n### License\nThis project is licensed under the MIT License. For more information, refer to the `LICENSE` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftolgacakir%2Fauto-pr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftolgacakir%2Fauto-pr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftolgacakir%2Fauto-pr/lists"}