Google Apps Script – get notification from GitHub account – part 053.

You need to have a GitHub account. Create a new token by following these steps:
Go to your GitHub settings.
Click on “Developer settings”.
Click on “Personal access tokens”.
Click on “Generate new token”.
Select the scopes you want the token to have (in this case, make sure to select the “notifications” scope).
Click on “Generate token”.
Copy the generated token and paste it into the Authorization header in the code above.
Create a spreadsheet file, open a new script from Extensions then Apps Script.
Rename both the spreadsheet and the new script with the same name, for example, github_account.
Add this source code into the editor and run the script.

The result will be shown in the Execution log area.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.