When getting a notification from the github rest api and it is Type: Discussion - the subject.url is not populated (null)
This is an example on how to get the discussion link from the notification using GraphQL
- Clone the repo
- Open project folder and run
yarnto install dependencies (octokit) - generate a github token (link)
- input the token in secrets.js
- make sure you have unread discussion notifications (or the output will be empty)
- run
node index.js