Skip to content

Conversation

bkcsoft
Copy link
Contributor

@bkcsoft bkcsoft commented Aug 18, 2016

@@ -78,6 +78,7 @@ type EditIssueOption struct {
Body *string `json:"body"`
Assignee *string `json:"assignee"`
Milestone *int64 `json:"milestone"`
Status *string `json:"status"`
Copy link
Contributor Author

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.

Copy link
Member

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"`
Copy link
Contributor Author

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...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bkcsoft
Copy link
Contributor Author

bkcsoft commented Aug 19, 2016

@unknwon Done :)

@unknwon unknwon merged commit 5e50f02 into gogs:master Aug 19, 2016
@unknwon
Copy link
Member

unknwon commented Aug 19, 2016

Thanks!

guyzmo pushed a commit to guyzmo/go-gogs-client that referenced this pull request May 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants