public Branch Create(BranchCreate branch) { return(_api.Post().With(branch).To <Branch>(_repoPath + "/branches")); }
public Build Retry(Build build) { return(_api.Post().To <Build>(_builds + $"/{build.Id}/retry")); }
public ProjectHook Create(ProjectHookUpsert hook) { return(_api.Post().With(hook).To <ProjectHook>(_path)); }
public Tag CreateTag(TagCreate tag) { return(_api .Post().With(tag) .To <Tag>(_repoPath + "/tags")); }
public Namespace Create(NamespaceCreate group) { return(_api.Post().With(group).To <Namespace>(Namespace.Url)); }
public void Create(FileUpsert file) { _api.Post().With(file).Stream(_repoPath + "/files", s => { }); }
public User Create(UserUpsert user) { return(_api.Post().With(user).To <User>(User.Url)); }
public Issue Create(IssueCreate issueCreate) { return(_api.Post().With(issueCreate).To <Issue>(string.Format(ProjectIssuesUrl, issueCreate.Id))); }
public Project Create(ProjectCreate project) { return(_api.Post().With(project).To <Project>(Project.Url)); }
public Comment Add(MergeRequestComment comment) { return(_api.Post().With(comment).To <Comment>(_commentsPath)); }
public MergeRequest Create(MergeRequestCreate mergeRequest) { return(_api .Post().With(mergeRequest) .To <MergeRequest>(_projectPath + "/merge_requests")); }
public Tag Create(TagCreate tag) { return(_api.Post().With(tag).To <Tag>(string.Format(TagsUrl, _repoPath))); }
public Label Create(LabelCreate label) { return(_api.Post().With(label).To <Label>(string.Format(ProjectLabelUrl, label.Id))); }