Skip to main content

Crate monochange_gitlab

Crate monochange_gitlab 

Source
Expand description

§monochange_gitlab

monochange_gitlab turns monochange release manifests into GitLab automation requests.

Reach for this crate when you want to preview or publish GitLab releases and merge requests using the same structured release data that powers changelog files and release manifests.

§Why use it?

  • derive GitLab release payloads and merge-request bodies from monochange’s structured release manifest
  • keep GitLab automation aligned with changelog rendering and release targets
  • reuse one publishing path for dry-run previews and real repository updates

§Best for

  • building GitLab release automation on top of mc release
  • previewing would-be GitLab releases and merge requests in CI before publishing
  • self-hosted GitLab instances that need the same release workflow as GitHub

§Public entry points

  • build_release_requests(manifest, source) builds release payloads from prepared release state
  • build_change_request(manifest, source) builds a merge-request payload for the release
  • validate_source_configuration(source) validates GitLab-specific source config
  • source_capabilities() returns provider feature flags

Structs§

GitLabHostedSourceAdapter
Hosted-source adapter for GitLab repositories.

Statics§

HOSTED_SOURCE_ADAPTER
Shared GitLab hosted-source adapter instance used by the workspace.

Functions§

annotate_changeset_context
Apply GitLab provider metadata and commit URLs to prepared changesets.
build_release_pull_request_request
Build the release merge request request for the configured GitLab repository.
build_release_requests
Convert releasable targets into provider-specific GitLab release requests.
compare_url
Build the comparison URL between two tags on the configured GitLab repository.
enrich_changeset_context
Enrich changeset context for GitLab-backed workspaces.
gitlab_commit_url
Build a web URL for a commit on the configured GitLab repository.
gitlab_host_name
Extract the host name used for rendered GitLab links.
gitlab_hosting_capabilities
Return the hosting metadata features available from GitLab changeset context.
publish_release_pull_request
Commit, push, and publish the release merge request against GitLab.
publish_release_requests
Publish or update all planned GitLab releases for a manifest.
source_capabilities
Return the hosted-source capabilities supported by the GitLab provider.
tag_url
Build the public release URL for a tag on the configured GitLab repository.
validate_source_configuration
Validate that a source configuration is compatible with the GitLab provider.