-
Notifications
You must be signed in to change notification settings - Fork 146
Add Status-flag to EditIssueOption #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -78,6 +78,7 @@ type EditIssueOption struct { | |||
Body *string `json:"body"` | |||
Assignee *string `json:"assignee"` | |||
Milestone *int64 `json:"milestone"` | |||
Status *string `json:"status"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@unknwon should this be json:"state"
instead? to reflect GitHub-API? https://developer.github.com/v3/issues/#edit-an-issue
In the gogs we call it "Status", which is why I named it thus.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I think it should be called State.
@@ -78,6 +78,7 @@ type EditIssueOption struct { | |||
Body *string `json:"body"` | |||
Assignee *string `json:"assignee"` | |||
Milestone *int64 `json:"milestone"` | |||
Status *string `json:"state"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@unknwon changed the json-element to state
but kept the struct-member as Status
since the rest of the Gogs code-base has it named Status
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@unknwon Done :) |
Thanks! |
Add "mirror" field to repo
See gogs/gogs#3170