{"id":20084834,"url":"https://github.com/tranphuquy19/gs-duplicator","last_synced_at":"2025-05-06T01:32:32.275Z","repository":{"id":102180991,"uuid":"577032143","full_name":"tranphuquy19/gs-duplicator","owner":"tranphuquy19","description":"Gitlab Tools | Gitlab env variable Dropdown \u0026 Duplicate pipeline schedule | Mirror of: https://gitlab.com/tranphuquy19/gs-duplicator","archived":false,"fork":false,"pushed_at":"2024-08-15T08:12:43.000Z","size":1037,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-08-15T09:46:49.363Z","etag":null,"topics":["cicd","devops","devops-tools","extension","gitlab","pipeline","tools-and-automation","userscript"],"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/tranphuquy19.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-11T19:06:07.000Z","updated_at":"2024-08-13T03:47:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"539a077b-e505-4006-989b-441dc1d06a40","html_url":"https://github.com/tranphuquy19/gs-duplicator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranphuquy19%2Fgs-duplicator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranphuquy19%2Fgs-duplicator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranphuquy19%2Fgs-duplicator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranphuquy19%2Fgs-duplicator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tranphuquy19","download_url":"https://codeload.github.com/tranphuquy19/gs-duplicator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224480118,"owners_count":17318299,"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":["cicd","devops","devops-tools","extension","gitlab","pipeline","tools-and-automation","userscript"],"created_at":"2024-11-13T15:53:30.044Z","updated_at":"2024-11-13T15:53:30.565Z","avatar_url":"https://github.com/tranphuquy19.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gitlab Schedule Duplicator\n\nGitlab Schedule Duplicator is a user script that allows you easily duplicate, create, or update the Gitlab pipeline schedule.\n\n- [Gitlab Schedule Duplicator](#gitlab-schedule-duplicator)\n\t- [Features](#features)\n\t- [Installation \\\u0026 Update](#installation--update)\n\t- [Usage](#usage)\n\t\t- [Create or duplicate a schedule](#create-or-duplicate-a-schedule)\n\t\t- [Edit a schedule](#edit-a-schedule)\n\t- [Contributing](#contributing)\n\t- [License](#license)\n\n## Features\n\n![feature 1](imgs/feature-1.png)\n\n![feature 2](imgs/feature-2.png)\n\n## Installation \u0026 Update\n\n1. Install a user script manager:\n\t- Install [Tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo) extension for Chrome.\n\t- Install [Greasemonkey](https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/) extension for Firefox.\n2. Install/Update the script:\n   1. Click [here](https://gitlab.com/tranphuquy19/gs-duplicator/-/raw/main/dist/gs-duplicator.min.user.js) to install from the raw file.\n   \u003c!-- Install from Greasy Fork --\u003e\n   2. Go to [Greasy Fork - Gitlab Schedule Duplicator](https://greasyfork.org/en/scripts/459307-gitlab-schedule-duplicator) to install from Greasy Fork.\n3. Go to Gitlab and enjoy!\n\n## Usage\n\n### Create or duplicate a schedule\n\n1. Go to the pipeline page.\n2. Click the \"Duplicate\" button to duplicate the schedule. The schedule will be created with the same configuration as the current pipeline. Provide access token if the browser requests it. The access token needs to have the `api` scope. Click [here](https://gitlab.com/-/profile/personal_access_tokens) to create a new access token.\n\n### Edit a schedule\n\nNote: The dropdown option is extracted from the variable description of the CiConfig (aka. `.gitlab-ci.yml`) file.\n\u003cbr\u003e\nThe description of the variable must be in the following format:\n\n```yaml\nvariables:\n\tMY_VARIABLE:\n\t\tvalue: \"option1\"\n\t\t# The options are wrapped in square brackets and separated by commas (,). Must be at the beginning of the line.\n\t\tdescription: \"[option1, option2, option3] - description\" # \u003c- this is the description\n```\n\nFollowing options will be replaced by the corresponding values:\n\n| Text                            | Description                             |\n|---------------------------------|-----------------------------------------|\n| `$glBranches()`                 | Returns all branches of current project |\n| `$glBranches(:gitlabProjectId)` | Returns all branches of a project by Id |\n\n| And that's it! Discover more features by yourself.\n\n## Contributing\n\nI'm open to any contributions. Feel free to open an issue or a pull request. Thank you! \u003c3\n\n## License\n\n[MIT](LICENSE) © [Quy P. TRAN](https://github.com/tranphuquy19)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftranphuquy19%2Fgs-duplicator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftranphuquy19%2Fgs-duplicator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftranphuquy19%2Fgs-duplicator/lists"}