Skip to content

Araxeus/github_discussion_notification_url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Discussion notifications url

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

Testing

  1. Clone the repo
  2. Open project folder and run yarn to install dependencies (octokit)
  3. generate a github token (link)
  4. input the token in secrets.js
  5. make sure you have unread discussion notifications (or the output will be empty)
  6. run node index.js

About

get discussion url from notifications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published