Open triangle-man opened 1 year ago
Hi, @NowWhatBot
Edit: Posting this comment and then querying https://api.github.com/notifications (see docs) yields the following JSON, which we could use to formulate a response:
[
{
"id": "4509440634",
"unread": true,
"reason": "mention",
"updated_at": "2023-04-17T15:11:11Z",
"last_read_at": null,
"subject": {
"title": "Ask NowWhat Bot for reports in issues",
"url": "https://api.github.com/repos/alan-turing-institute/whatwhat/issues/31",
"latest_comment_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/issues/comments/1511559299",
"type": "Issue"
},
"repository": {
"id": 516681803,
"node_id": "R_kgDOHsvwSw",
"name": "whatwhat",
"full_name": "alan-turing-institute/whatwhat",
"private": true,
"owner": {
"login": "alan-turing-institute",
"id": 18304793,
"node_id": "MDEyOk9yZ2FuaXphdGlvbjE4MzA0Nzkz",
"avatar_url": "https://avatars.githubusercontent.com/u/18304793?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/alan-turing-institute",
"html_url": "https://github.com/alan-turing-institute",
"followers_url": "https://api.github.com/users/alan-turing-institute/followers",
"following_url": "https://api.github.com/users/alan-turing-institute/following{/other_user}",
"gists_url": "https://api.github.com/users/alan-turing-institute/gists{/gist_id}",
"starred_url": "https://api.github.com/users/alan-turing-institute/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/alan-turing-institute/subscriptions",
"organizations_url": "https://api.github.com/users/alan-turing-institute/orgs",
"repos_url": "https://api.github.com/users/alan-turing-institute/repos",
"events_url": "https://api.github.com/users/alan-turing-institute/events{/privacy}",
"received_events_url": "https://api.github.com/users/alan-turing-institute/received_events",
"type": "Organization",
"site_admin": false
},
"html_url": "https://github.com/alan-turing-institute/whatwhat",
"description": "A reimagining of nowwhat in OCaml",
"fork": false,
"url": "https://api.github.com/repos/alan-turing-institute/whatwhat",
"forks_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/forks",
"keys_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/teams",
"hooks_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/hooks",
"issue_events_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/issues/events{/number}",
"events_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/events",
"assignees_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/assignees{/user}",
"branches_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/branches{/branch}",
"tags_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/tags",
"blobs_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/statuses/{sha}",
"languages_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/languages",
"stargazers_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/stargazers",
"contributors_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/contributors",
"subscribers_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/subscribers",
"subscription_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/subscription",
"commits_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/contents/{+path}",
"compare_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/compare/{base}...{head}",
"merges_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/merges",
"archive_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/downloads",
"issues_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/issues{/number}",
"pulls_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/pulls{/number}",
"milestones_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/milestones{/number}",
"notifications_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/labels{/name}",
"releases_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/releases{/id}",
"deployments_url": "https://api.github.com/repos/alan-turing-institute/whatwhat/deployments"
},
"url": "https://api.github.com/notifications/threads/4509440634",
"subscription_url": "https://api.github.com/notifications/threads/4509440634/subscription"
}
]
Idea for cool long-term feature: Can request a report from WhatWhat Bot on a particular project by making a comment in the project issue and mentioning @NowWhatBot