Skip to content

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

Merged
merged 3 commits into from
Aug 19, 2016

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