GitHawkApp / GitHawk

The (second) best iOS app for GitHub.
http://githawk.com
MIT License
2.88k stars 385 forks source link

Support comments marked as spam #1388

Open BasThomas opened 6 years ago

BasThomas commented 6 years ago

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:

```json { "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" } } } ```
Sherlouk commented 6 years ago

How does one mark a comment as spam

BasThomas commented 6 years ago

🤷‍♂️

Sent with GitHawk

rnystrom commented 6 years ago

TIL that’s a thing

Sent with GitHawk

BasThomas commented 6 years ago

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

Sherlouk commented 6 years ago

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 😄