Githawk: Support comments marked as spam

Created on 9 Jan 2018  Β·  5Comments  Β·  Source: GitHawkApp/GitHawk

Doesn't seem to be anything we can use in the response, or even anything from GitHub's side that they support this now (as far as I know?), but saw it here. Wanted to create an issue to be able to track it somewhere.

GitHawk Upload by BasThomas

In case I did miss something, here is the response body:

{
  "data" : {
    "repository" : {
      "viewerCanAdminister" : false,
      "issueOrPullRequest" : {
        "milestone" : null,
        "labels" : {
          "nodes" : [

          ],
          "__typename" : "LabelConnection"
        },
        "locked" : false,
        "title" : "Add Rust syntax highlighting",
        "__typename" : "PullRequest",
        "changedFiles" : 2,
        "deletions" : 1,
        "viewerCanReact" : true,
        "closed" : true,
        "viewerCanUpdate" : false,
        "createdAt" : "2017-12-22T14:58:50Z",
        "body" : "The test file can be found here: desktop/highlighter-tests#15.",
        "timeline" : {
          "pageInfo" : {
            "hasPreviousPage" : false,
            "startCursor" : "MQ==",
            "__typename" : "PageInfo"
          },
          "nodes" : [
            {
              "messageHeadline" : "Add Rust syntax highlighting",
              "__typename" : "Commit",
              "author" : {
                "user" : {
                  "login" : "subnomo",
                  "avatarUrl" : "https://avatars2.githubusercontent.com/u/1390653?v=4",
                  "__typename" : "User"
                },
                "__typename" : "GitActor"
              },
              "id" : "MDY6Q29tbWl0NTg1NTk2OTQ6ZGVlMjkxYmQ3ZGM1YjNjNDFlMGU5ZTFjZDgzYjU3MWMwZGY5NmRhZQ==",
              "oid" : "dee291bd7dc5b3c41e0e9e1cd83b571c0df96dae"
            },
            {
              "user" : {
                "login" : "niik",
                "__typename" : "User"
              },
              "__typename" : "AssignedEvent",
              "id" : "MDEzOkFzc2lnbmVkRXZlbnQxMzk5NzE4ODMx",
              "actor" : {
                "login" : "niik",
                "__typename" : "User"
              },
              "createdAt" : "2017-12-22T15:03:51Z"
            },
            {
              "submittedAt" : "2017-12-22T15:28:12Z",
              "author" : {
                "login" : "niik",
                "avatarUrl" : "https://avatars2.githubusercontent.com/u/634063?v=4",
                "__typename" : "User"
              },
              "comments" : {
                "totalCount" : 0,
                "__typename" : "PullRequestReviewCommentConnection"
              },
              "editor" : null,
              "id" : "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODUzMzc1Mzk=",
              "lastEditedAt" : null,
              "viewerDidAuthor" : false,
              "createdAt" : "2017-12-22T15:28:12Z",
              "body" : "Flawless victory @subnomo!",
              "__typename" : "PullRequestReview",
              "state" : "APPROVED"
            },
            {
              "__typename" : "ReferencedEvent",
              "subject" : {
                "__typename" : "PullRequest",
                "title" : "Add Rust syntax highlighting",
                "number" : 3666,
                "closed" : true,
                "merged" : true
              },
              "actor" : {
                "login" : "niik",
                "__typename" : "User"
              },
              "id" : "MDE1OlJlZmVyZW5jZWRFdmVudDEzOTk3NTA0MDI=",
              "commitRepository" : {
                "name" : "desktop",
                "owner" : {
                  "login" : "desktop",
                  "__typename" : "Organization"
                },
                "__typename" : "Repository"
              },
              "createdAt" : "2017-12-22T15:28:17Z"
            },
            {
              "__typename" : "MergedEvent",
              "mergedCommit" : {
                "oid" : "58de2f3a95de16876f74790de79aba9a81d7b3da",
                "__typename" : "Commit"
              },
              "actor" : {
                "login" : "niik",
                "__typename" : "User"
              },
              "id" : "MDExOk1lcmdlZEV2ZW50MTM5OTc1MDQwNQ==",
              "createdAt" : "2017-12-22T15:28:17Z"
            },
            {
              "viewerCanUpdate" : false,
              "body" : "[2017-corporate-responsibility-report-en.pdf](https://github.com/desktop/desktop/files/1597548/2017-corporate-responsibility-report-en.pdf)\r\n",
              "id" : "MDEyOklzc3VlQ29tbWVudDM1NDc2MDg1OA==",
              "author" : {
                "login" : "chemdan1",
                "avatarUrl" : "https://avatars0.githubusercontent.com/u/35015749?v=4",
                "__typename" : "User"
              },
              "viewerDidAuthor" : false,
              "reactionGroups" : [
                {
                  "__typename" : "ReactionGroup",
                  "viewerHasReacted" : false,
                  "users" : {
                    "nodes" : [

                    ],
                    "totalCount" : 0,
                    "__typename" : "ReactingUserConnection"
                  },
                  "content" : "THUMBS_UP"
                },
                {
                  "__typename" : "ReactionGroup",
                  "viewerHasReacted" : false,
                  "users" : {
                    "nodes" : [

                    ],
                    "totalCount" : 0,
                    "__typename" : "ReactingUserConnection"
                  },
                  "content" : "THUMBS_DOWN"
                },
                {
                  "__typename" : "ReactionGroup",
                  "viewerHasReacted" : false,
                  "users" : {
                    "nodes" : [

                    ],
                    "totalCount" : 0,
                    "__typename" : "ReactingUserConnection"
                  },
                  "content" : "LAUGH"
                },
                {
                  "__typename" : "ReactionGroup",
                  "viewerHasReacted" : false,
                  "users" : {
                    "nodes" : [

                    ],
                    "totalCount" : 0,
                    "__typename" : "ReactingUserConnection"
                  },
                  "content" : "HOORAY"
                },
                {
                  "__typename" : "ReactionGroup",
                  "viewerHasReacted" : false,
                  "users" : {
                    "nodes" : [

                    ],
                    "totalCount" : 0,
                    "__typename" : "ReactingUserConnection"
                  },
                  "content" : "CONFUSED"
                },
                {
                  "__typename" : "ReactionGroup",
                  "viewerHasReacted" : false,
                  "users" : {
                    "nodes" : [

                    ],
                    "totalCount" : 0,
                    "__typename" : "ReactingUserConnection"
                  },
                  "content" : "HEART"
                }
              ],
              "viewerCanDelete" : false,
              "viewerCanReact" : true,
              "editor" : null,
              "__typename" : "IssueComment",
              "lastEditedAt" : null,
              "createdAt" : "2018-01-02T12:55:23Z"
            }
          ],
          "__typename" : "PullRequestTimelineConnection"
        },
        "number" : 3666,
        "viewerDidAuthor" : false,
        "id" : "MDExOlB1bGxSZXF1ZXN0MTU5ODgyNTI5",
        "reviewRequests" : {
          "nodes" : [

          ],
          "__typename" : "ReviewRequestConnection"
        },
        "additions" : 4,
        "reactionGroups" : [
          {
            "__typename" : "ReactionGroup",
            "viewerHasReacted" : false,
            "users" : {
              "nodes" : [

              ],
              "totalCount" : 0,
              "__typename" : "ReactingUserConnection"
            },
            "content" : "THUMBS_UP"
          },
          {
            "__typename" : "ReactionGroup",
            "viewerHasReacted" : false,
            "users" : {
              "nodes" : [

              ],
              "totalCount" : 0,
              "__typename" : "ReactingUserConnection"
            },
            "content" : "THUMBS_DOWN"
          },
          {
            "__typename" : "ReactionGroup",
            "viewerHasReacted" : false,
            "users" : {
              "nodes" : [

              ],
              "totalCount" : 0,
              "__typename" : "ReactingUserConnection"
            },
            "content" : "LAUGH"
          },
          {
            "__typename" : "ReactionGroup",
            "viewerHasReacted" : false,
            "users" : {
              "nodes" : [

              ],
              "totalCount" : 0,
              "__typename" : "ReactingUserConnection"
            },
            "content" : "HOORAY"
          },
          {
            "__typename" : "ReactionGroup",
            "viewerHasReacted" : false,
            "users" : {
              "nodes" : [

              ],
              "totalCount" : 0,
              "__typename" : "ReactingUserConnection"
            },
            "content" : "CONFUSED"
          },
          {
            "__typename" : "ReactionGroup",
            "viewerHasReacted" : false,
            "users" : {
              "nodes" : [
                {
                  "login" : "KingOfThePirates",
                  "__typename" : "User"
                }
              ],
              "totalCount" : 1,
              "__typename" : "ReactingUserConnection"
            },
            "content" : "HEART"
          }
        ],
        "assignees" : {
          "nodes" : [
            {
              "login" : "niik",
              "avatarUrl" : "https://avatars2.githubusercontent.com/u/634063?v=4",
              "__typename" : "User"
            }
          ],
          "__typename" : "UserConnection"
        },
        "editor" : null,
        "merged" : true,
        "author" : {
          "login" : "subnomo",
          "avatarUrl" : "https://avatars2.githubusercontent.com/u/1390653?v=4",
          "__typename" : "User"
        },
        "lastEditedAt" : null
      },
      "mentionableUsers" : {
        "nodes" : [
          {
            "login" : "defunkt",
            "avatarUrl" : "https://avatars0.githubusercontent.com/u/2?v=4",
            "__typename" : "User"
          },
          {
            "login" : "technoweenie",
            "avatarUrl" : "https://avatars3.githubusercontent.com/u/21?v=4",
            "__typename" : "User"
          },
          {
            "login" : "Caged",
            "avatarUrl" : "https://avatars3.githubusercontent.com/u/25?v=4",
            "__typename" : "User"
          },
          {
            "login" : "mtodd",
            "avatarUrl" : "https://avatars1.githubusercontent.com/u/182?v=4",
            "__typename" : "User"
          },
          {
            "login" : "jnunemaker",
            "avatarUrl" : "https://avatars3.githubusercontent.com/u/235?v=4",
            "__typename" : "User"
          },
          {
            "login" : "maddox",
            "avatarUrl" : "https://avatars0.githubusercontent.com/u/260?v=4",
            "__typename" : "User"
          },
          {
            "login" : "probablycorey",
            "avatarUrl" : "https://avatars3.githubusercontent.com/u/596?v=4",
            "__typename" : "User"
          },
          {
            "login" : "jonmagic",
            "avatarUrl" : "https://avatars1.githubusercontent.com/u/623?v=4",
            "__typename" : "User"
          },
          {
            "login" : "mutle",
            "avatarUrl" : "https://avatars1.githubusercontent.com/u/829?v=4",
            "__typename" : "User"
          },
          {
            "login" : "nathansobo",
            "avatarUrl" : "https://avatars1.githubusercontent.com/u/1789?v=4",
            "__typename" : "User"
          },
          {
            "login" : "arthurschreiber",
            "avatarUrl" : "https://avatars0.githubusercontent.com/u/2195?v=4",
            "__typename" : "User"
          },
          {
            "login" : "zeke",
            "avatarUrl" : "https://avatars1.githubusercontent.com/u/2289?v=4",
            "__typename" : "User"
          },
          {
            "login" : "skalnik",
            "avatarUrl" : "https://avatars1.githubusercontent.com/u/2546?v=4",
            "__typename" : "User"
          },
          {
            "login" : "jasonrudolph",
            "avatarUrl" : "https://avatars3.githubusercontent.com/u/2988?v=4",
            "__typename" : "User"
          },
          {
            "login" : "jbarnette",
            "avatarUrl" : "https://avatars3.githubusercontent.com/u/3117?v=4",
            "__typename" : "User"
          },
          {
            "login" : "jeffrafter",
            "avatarUrl" : "https://avatars2.githubusercontent.com/u/4064?v=4",
            "__typename" : "User"
          },
          {
            "login" : "nathos",
            "avatarUrl" : "https://avatars3.githubusercontent.com/u/4215?v=4",
            "__typename" : "User"
          },
          {
            "login" : "omgitsads",
            "avatarUrl" : "https://avatars1.githubusercontent.com/u/4619?v=4",
            "__typename" : "User"
          },
          {
            "login" : "tma",
            "avatarUrl" : "https://avatars1.githubusercontent.com/u/4719?v=4",
            "__typename" : "User"
          },
          {
            "login" : "erebor",
            "avatarUrl" : "https://avatars1.githubusercontent.com/u/4887?v=4",
            "__typename" : "User"
          }
        ],
        "__typename" : "UserConnection"
      },
      "hasIssuesEnabled" : true,
      "defaultBranchRef" : {
        "name" : "master",
        "__typename" : "Ref"
      },
      "__typename" : "Repository",
      "name" : "desktop"
    }
  }
}

πŸ†• feature request low priority πŸ€·β€β™‚οΈ no api yet

Most helpful comment

πŸ€·β€β™‚οΈ

Sent with GitHawk

All 5 comments

How does one mark a comment as spam

πŸ€·β€β™‚οΈ

Sent with GitHawk

TIL that’s a thing

Sent with GitHawk

Yep, I also just learned about it 😜
Labeling this github-bug to make us aware we can't tackle it yet.

Looks like you can now report posts with a "Spam" (or other) reason

We should keep an eye out on this functionality as we may want to add support for reporting issues/prs πŸ˜„

Was this page helpful?
0 / 5 - 0 ratings

Related issues

viktorgardart picture viktorgardart  Β·  3Comments

BasThomas picture BasThomas  Β·  3Comments

jessesquires picture jessesquires  Β·  3Comments

BasThomas picture BasThomas  Β·  3Comments

weyert picture weyert  Β·  3Comments