https://github.com/030/gl
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/030/gl
- Owner: 030
- License: mit
- Created: 2021-09-28T07:35:16.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-18T12:48:37.000Z (over 4 years ago)
- Last Synced: 2025-02-07T23:44:04.412Z (over 1 year ago)
- Language: Shell
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gl
* Create an API token and store it in `~/.gl/creds.yml` as `token: some-token`. Define the gitlab FQDN in `~/.gl/config.yml` as: `fqdn: some-fqdn`.
* Install [yq](https://github.com/mikefarah/yq).
## change default branch
```bash
./bash/defaultBranch.sh some-repository some-branch
```
## protect branches
```bash
./bash/protectedBranch.sh some-repository *-snapshot
```
## create a merge request
```bash
./bash/mergeRequest.sh some-repository some-source-branch some-target-branch some-ticket-number some-title some-assignee-id
```