aboutsummaryrefslogtreecommitdiffstats
path: root/bug
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-12-23 17:11:37 +0100
committerMichael Muré <batolettre@gmail.com>2018-12-23 17:11:37 +0100
commit1410a1af75b1ab9ea3f980a7e372728f9a123abf (patch)
treee24db8f84c48b20158b1f1fd6d281d700421279c /bug
parent8fc15a032f021c855abf66ed303c003d57c340ea (diff)
downloadgit-bug-1410a1af75b1ab9ea3f980a7e372728f9a123abf.tar.gz
upgrade gqlgen to v0.7.1
Diffstat (limited to 'bug')
-rw-r--r--bug/comment.go3
-rw-r--r--bug/op_add_comment.go3
-rw-r--r--bug/op_create.go3
-rw-r--r--bug/op_edit_comment.go3
-rw-r--r--bug/op_label_change.go3
-rw-r--r--bug/op_noop.go3
-rw-r--r--bug/op_set_metadata.go3
-rw-r--r--bug/op_set_status.go3
-rw-r--r--bug/op_set_title.go3
9 files changed, 27 insertions, 0 deletions
diff --git a/bug/comment.go b/bug/comment.go
index db5cc45e..67936634 100644
--- a/bug/comment.go
+++ b/bug/comment.go
@@ -24,3 +24,6 @@ func (c Comment) FormatTimeRel() string {
func (c Comment) FormatTime() string {
return c.UnixTime.Time().Format("Mon Jan 2 15:04:05 2006 +0200")
}
+
+// Sign post method for gqlgen
+func (c Comment) IsAuthored() {}
diff --git a/bug/op_add_comment.go b/bug/op_add_comment.go
index e304a6ef..c19b9593 100644
--- a/bug/op_add_comment.go
+++ b/bug/op_add_comment.go
@@ -69,6 +69,9 @@ func (op *AddCommentOperation) Validate() error {
return nil
}
+// Sign post method for gqlgen
+func (op *AddCommentOperation) IsAuthored() {}
+
func NewAddCommentOp(author Person, unixTime int64, message string, files []git.Hash) *AddCommentOperation {
return &AddCommentOperation{
OpBase: newOpBase(AddCommentOp, author, unixTime),
diff --git a/bug/op_create.go b/bug/op_create.go
index 45387d19..3816d8b7 100644
--- a/bug/op_create.go
+++ b/bug/op_create.go
@@ -81,6 +81,9 @@ func (op *CreateOperation) Validate() error {
return nil
}
+// Sign post method for gqlgen
+func (op *CreateOperation) IsAuthored() {}
+
func NewCreateOp(author Person, unixTime int64, title, message string, files []git.Hash) *CreateOperation {
return &CreateOperation{
OpBase: newOpBase(CreateOp, author, unixTime),
diff --git a/bug/op_edit_comment.go b/bug/op_edit_comment.go
index 282b73bb..bc87310a 100644
--- a/bug/op_edit_comment.go
+++ b/bug/op_edit_comment.go
@@ -92,6 +92,9 @@ func (op *EditCommentOperation) Validate() error {
return nil
}
+// Sign post method for gqlgen
+func (op *EditCommentOperation) IsAuthored() {}
+
func NewEditCommentOp(author Person, unixTime int64, target git.Hash, message string, files []git.Hash) *EditCommentOperation {
return &EditCommentOperation{
OpBase: newOpBase(EditCommentOp, author, unixTime),
diff --git a/bug/op_label_change.go b/bug/op_label_change.go
index b7957b86..d7aab06b 100644
--- a/bug/op_label_change.go
+++ b/bug/op_label_change.go
@@ -97,6 +97,9 @@ func (op *LabelChangeOperation) Validate() error {
return nil
}
+// Sign post method for gqlgen
+func (op *LabelChangeOperation) IsAuthored() {}
+
func NewLabelChangeOperation(author Person, unixTime int64, added, removed []Label) *LabelChangeOperation {
return &LabelChangeOperation{
OpBase: newOpBase(LabelChangeOp, author, unixTime),
diff --git a/bug/op_noop.go b/bug/op_noop.go
index 06e3496a..ac898dde 100644
--- a/bug/op_noop.go
+++ b/bug/op_noop.go
@@ -27,6 +27,9 @@ func (op *NoOpOperation) Validate() error {
return opBaseValidate(op, NoOpOp)
}
+// Sign post method for gqlgen
+func (op *NoOpOperation) IsAuthored() {}
+
func NewNoOpOp(author Person, unixTime int64) *NoOpOperation {
return &NoOpOperation{
OpBase: newOpBase(NoOpOp, author, unixTime),
diff --git a/bug/op_set_metadata.go b/bug/op_set_metadata.go
index 68cf1d51..aac81f3b 100644
--- a/bug/op_set_metadata.go
+++ b/bug/op_set_metadata.go
@@ -53,6 +53,9 @@ func (op *SetMetadataOperation) Validate() error {
return nil
}
+// Sign post method for gqlgen
+func (op *SetMetadataOperation) IsAuthored() {}
+
func NewSetMetadataOp(author Person, unixTime int64, target git.Hash, newMetadata map[string]string) *SetMetadataOperation {
return &SetMetadataOperation{
OpBase: newOpBase(SetMetadataOp, author, unixTime),
diff --git a/bug/op_set_status.go b/bug/op_set_status.go
index 62f373ec..54f476cb 100644
--- a/bug/op_set_status.go
+++ b/bug/op_set_status.go
@@ -53,6 +53,9 @@ func (op *SetStatusOperation) Validate() error {
return nil
}
+// Sign post method for gqlgen
+func (op *SetStatusOperation) IsAuthored() {}
+
func NewSetStatusOp(author Person, unixTime int64, status Status) *SetStatusOperation {
return &SetStatusOperation{
OpBase: newOpBase(SetStatusOp, author, unixTime),
diff --git a/bug/op_set_title.go b/bug/op_set_title.go
index 9b7d1533..b631ca18 100644
--- a/bug/op_set_title.go
+++ b/bug/op_set_title.go
@@ -74,6 +74,9 @@ func (op *SetTitleOperation) Validate() error {
return nil
}
+// Sign post method for gqlgen
+func (op *SetTitleOperation) IsAuthored() {}
+
func NewSetTitleOp(author Person, unixTime int64, title string, was string) *SetTitleOperation {
return &SetTitleOperation{
OpBase: newOpBase(SetTitleOp, author, unixTime),