Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Commit 8c683da

Browse files
Merge pull request #57 from lighttiger2505/feature/add-project-level-variables-command
Feature/add project level variables command
2 parents 32683fb + d0ca3ad commit 8c683da

File tree

10 files changed

+569
-33
lines changed

10 files changed

+569
-33
lines changed

Gopkg.lock

Lines changed: 78 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535

3636
[[constraint]]
3737
name = "github.com/xanzy/go-gitlab"
38-
version = "0.9.0"
38+
version = "0.11.0"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ preferreddomains:
121121
## ToDos
122122
123123
- variable command
124-
- [ ] Project-level Variables
124+
- [x] Project-level Variables
125125
- [ ] Group-level Variables
126126
- use template
127127
- [ ] issue template

commands/issue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ func makeUpdateIssueOption(opt *CreateUpdateIssueOption, title, description stri
435435
updateIssueOption.StateEvent = gitlab.String(opt.StateEvent)
436436
}
437437
if opt.AssigneeID != 0 {
438-
updateIssueOption.AssigneeID = gitlab.Int(opt.AssigneeID)
438+
updateIssueOption.AssigneeIDs = []int{opt.AssigneeID}
439439
}
440440
return updateIssueOption
441441
}

commands/pipeline.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ func makePipelineOptions(listPipelineOption *ListPipelineOption) *gitlab.ListPro
169169
YamlErrors: gitlab.Bool(false),
170170
Name: gitlab.String(""),
171171
Username: gitlab.String(""),
172-
OrderBy: gitlab.OrderBy(gitlab.OrderByValue(listPipelineOption.OrderBy)),
172+
OrderBy: gitlab.String(listPipelineOption.OrderBy),
173173
Sort: gitlab.String(listPipelineOption.Sort),
174174
ListOptions: *listOption,
175175
}

0 commit comments

Comments
 (0)