コード例 #1
0
ファイル: BranchClient.cs プロジェクト: antonioseric/NGitLab
 public Branch Create(BranchCreate branch)
 {
     return(_api.Post().With(branch).To <Branch>(_repoPath + "/branches"));
 }
コード例 #2
0
 public Build Retry(Build build)
 {
     return(_api.Post().To <Build>(_builds + $"/{build.Id}/retry"));
 }
コード例 #3
0
 public ProjectHook Create(ProjectHookUpsert hook)
 {
     return(_api.Post().With(hook).To <ProjectHook>(_path));
 }
コード例 #4
0
ファイル: RepositoryClient.cs プロジェクト: helderdb/NGitLab
 public Tag CreateTag(TagCreate tag)
 {
     return(_api
            .Post().With(tag)
            .To <Tag>(_repoPath + "/tags"));
 }
コード例 #5
0
ファイル: NamespaceClient.cs プロジェクト: zed220/NGitLab
 public Namespace Create(NamespaceCreate group)
 {
     return(_api.Post().With(group).To <Namespace>(Namespace.Url));
 }
コード例 #6
0
ファイル: FileClient.cs プロジェクト: zed220/NGitLab
 public void Create(FileUpsert file)
 {
     _api.Post().With(file).Stream(_repoPath + "/files", s => { });
 }
コード例 #7
0
 public User Create(UserUpsert user)
 {
     return(_api.Post().With(user).To <User>(User.Url));
 }
コード例 #8
0
ファイル: IssueClient.cs プロジェクト: antonioseric/NGitLab
 public Issue Create(IssueCreate issueCreate)
 {
     return(_api.Post().With(issueCreate).To <Issue>(string.Format(ProjectIssuesUrl, issueCreate.Id)));
 }
コード例 #9
0
 public Project Create(ProjectCreate project)
 {
     return(_api.Post().With(project).To <Project>(Project.Url));
 }
コード例 #10
0
 public Comment Add(MergeRequestComment comment)
 {
     return(_api.Post().With(comment).To <Comment>(_commentsPath));
 }
コード例 #11
0
 public MergeRequest Create(MergeRequestCreate mergeRequest)
 {
     return(_api
            .Post().With(mergeRequest)
            .To <MergeRequest>(_projectPath + "/merge_requests"));
 }
コード例 #12
0
ファイル: TagClient.cs プロジェクト: antonioseric/NGitLab
 public Tag Create(TagCreate tag)
 {
     return(_api.Post().With(tag).To <Tag>(string.Format(TagsUrl, _repoPath)));
 }
コード例 #13
0
ファイル: LabelClient.cs プロジェクト: antonioseric/NGitLab
 public Label Create(LabelCreate label)
 {
     return(_api.Post().With(label).To <Label>(string.Format(ProjectLabelUrl, label.Id)));
 }