aboutsummaryrefslogtreecommitdiffstats
path: root/graphql/schema.graphql
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-02 23:37:49 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-02 23:37:49 +0200
commitd8f89726fec3822d7d1dd42c52f478f37003b534 (patch)
tree567e97ee605ef3a286e42e11535fa6516321e743 /graphql/schema.graphql
parented8f7eca9a8e0d1c448a7cc6240e2b7e357cf354 (diff)
downloadgit-bug-d8f89726fec3822d7d1dd42c52f478f37003b534.tar.gz
implement media hosting in git for comments + API for the webui
Diffstat (limited to 'graphql/schema.graphql')
-rw-r--r--graphql/schema.graphql10
1 files changed, 8 insertions, 2 deletions
diff --git a/graphql/schema.graphql b/graphql/schema.graphql
index 410ecde9..d4364262 100644
--- a/graphql/schema.graphql
+++ b/graphql/schema.graphql
@@ -1,5 +1,6 @@
scalar Time
scalar Label
+scalar Hash
# Information about pagination in a connection.
type PageInfo {
@@ -41,6 +42,9 @@ type Comment implements Authored {
# The message of this comment.
message: String!
+
+ # All media's hash referenced in this comment
+ files: [Hash!]!
}
enum Status {
@@ -80,6 +84,7 @@ type CreateOperation implements Operation, Authored {
title: String!
message: String!
+ files: [Hash!]!
}
type SetTitleOperation implements Operation, Authored {
@@ -94,6 +99,7 @@ type AddCommentOperation implements Operation, Authored {
date: Time!
message: String!
+ files: [Hash!]!
}
type SetStatusOperation implements Operation, Authored {
@@ -183,9 +189,9 @@ type Query {
}
type Mutation {
- newBug(repoRef: String, title: String!, message: String!): Bug!
+ newBug(repoRef: String, title: String!, message: String!, files: [Hash!]): Bug!
- addComment(repoRef: String, prefix: String!, message: String!): Bug!
+ addComment(repoRef: String, prefix: String!, message: String!, files: [Hash!]): Bug!
changeLabels(repoRef: String, prefix: String!, added: [String!], removed: [String!]): Bug!
open(repoRef: String, prefix: String!): Bug!
close(repoRef: String, prefix: String!): Bug!