https://github.com/araxeus/github_discussion_notification_url
get discussion url from notifications
https://github.com/araxeus/github_discussion_notification_url
Last synced: about 1 month ago
JSON representation
get discussion url from notifications
- Host: GitHub
- URL: https://github.com/araxeus/github_discussion_notification_url
- Owner: Araxeus
- License: mit
- Created: 2022-03-05T11:25:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-05T11:25:20.000Z (about 3 years ago)
- Last Synced: 2025-01-29T11:25:56.544Z (3 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
## 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](https://github.com/settings/tokens/new))
4. input the token in [secrets.js](secrets.js)
5. make sure you have unread discussion notifications (or the output will be empty)
6. run `node index.js`