https://github.com/go-semantic-release/provider-gitlab
:fox_face: GitLab Provider
https://github.com/go-semantic-release/provider-gitlab
Last synced: 6 months ago
JSON representation
:fox_face: GitLab Provider
- Host: GitHub
- URL: https://github.com/go-semantic-release/provider-gitlab
- Owner: go-semantic-release
- License: mit
- Created: 2020-08-12T18:01:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-13T16:33:26.000Z (about 1 year ago)
- Last Synced: 2025-04-14T23:37:30.801Z (8 months ago)
- Language: Go
- Homepage:
- Size: 96.7 KB
- Stars: 2
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# :fox_face: provider-gitlab
[](https://github.com/go-semantic-release/provider-gitlab/actions?query=workflow%3ACI+branch%3Amaster)
[](https://goreportcard.com/report/github.com/go-semantic-release/provider-gitlab)
[](https://pkg.go.dev/github.com/go-semantic-release/provider-gitlab)
The GitLab provider for [go-semantic-release](https://github.com/go-semantic-release/semantic-release).
### Configuration
| Name | Default Value | Description |
| :----------------: | :--------------------------: | :---------------------------------------------------------------------: |
| gitlab_baseurl | CI_SERVER_URL | The base URL of the GitLab instance, including protocol and port. |
| gitlab_branch | CI_COMMIT_BRANCH | The commit branch name. |
| gitlab_projectid | CI_PROJECT_ID | The ID of the current project. |
| token | GITLAB_TOKEN -> CI_JOB_TOKEN | A token to authenticate with certain API endpoints. |
| git_path | CI_PROJECT_DIR | The full path the repository is cloned to, and where the job runs from. |
| strip_v_tag_prefix | false | Boolean to remove the `v` prefix from the tag. |
| log_order | dfs | The log order traversal algorithm. |
### Log Order Options
Requirements:
- `CI_JOB_TOKEN` must be used. [GitLab CI/CD job token](https://docs.gitlab.com/ee/ci/jobs/ci_job_token.html)
- `GIT_STRATEGY` must be set to `clone` or `fetch`. [Git strategy doc](https://docs.gitlab.com/ee/ci/runners/configure_runners.html#git-strategy)
log_order=dfs (Default) - Ordering by depth-first search in pre-order
log_order=dfs_post - Ordering by depth-first search in post-order (useful to traverse
history in chronological order)
log_order=bfs - Ordering by breadth-first search
log_order=ctime - Ordering by committer time (more compatible with `git log`)
## Licence
The [MIT License (MIT)](http://opensource.org/licenses/MIT)
Copyright © 2020 [Christoph Witzko](https://twitter.com/christophwitzko)