Expand description
The provider-agnostic hosting port and its plumbing.
The implementations live in crate::github and crate::gitlab;
kinds with no client yet (Bitbucket, Azure DevOps, Jira, Trello) get
UnsupportedClient, whose every call says so.
Re-exports§
pub use crate::spec::web_base;
Structs§
- Created
Issue - What the host answers with once the issue exists.
- Created
Pull Request - What the host answers with once the request exists.
- NewIssue
- What opening an issue needs, host-agnostic (v1: title, body, labels).
- NewPull
Request - What opening a pull/merge request needs, host-agnostic.
- Unsupported
Client - Stands in for a family with no client yet: every call fails with
Error::NotImplementednaming the product.
Traits§
Functions§
- client_
for - Builds the client for
integration, overtransport, oncegatehas admitted it. - issue_
web_ url - The browser page of issue
numberinproject. - pull_
request_ edit_ url - The page to edit a pull / merge request whose browser page is
web_url: GitLab has a dedicated edit view (.../merge_requests/53/edit); GitHub edits the title and description in place on the request’s page. - pull_
request_ head_ ref - Where a host keeps the head of pull/merge request
number- the ref a fork’s commits are fetched from - and the local branch name to track it with:("refs/pull/7/head", "pr/7")on GitHub,("refs/merge-requests/7/head", "mr/7")on GitLab.Nonefor hosts that fetch a pull request by branch instead (CheckoutSource::Branch). - pull_
request_ web_ url - The browser page of pull/merge request
numberinproject. - token_
create_ url - The page on the host that mints a token with the scopes the app
needs, pre-filled.
Nonefor kinds without a token flow, or when no host is known yet (a self-managed profile still being typed).