config.js contains configuration
OAUTH_API_KEY the API Key from https://oauth.io/
TC_ENDPOINT the topcoder endpoint where issue details are posted, add same url to permissions in manifest.json (it must end with *)
- open https://github.com/settings/developers
- click
Register new application - pick any
Application nameandHomepage URL - set
Authorization callback URLtohttps://oauth.io/auth - copy
Client IDandClient Secretit will be needed in oauth.io setup
- open https://oauth.io/ and go to dashboard
- select from left menu
Default app->New app - pick any
Application name, addgithub.comtoDomain available - click
Create Public keyis yourOAUTH_API_KEYsetting- Make sure
Domains & URLs whitelistcontainsgithub.com(it's buggy) - Go to
Integrated APIsfrom left menu - Click
Add APIsand search forgithub - set
client_idandclient_secretfrom Setup github app - set
scopetorepo - click
Save changes
- Open chrome
- go to chrome://extensions/
- check
Developer modecheckbox - click
Load unpacked extension...and select GLIB-ChromeExt directory
Video https://youtu.be/rYRLGfEOGzg
It's recommended to create a new repository https://github.com/new
then go to Issues tab and create a new issue
Prompts the user for their TopCoder credentials, requests and saves token in localStorage. If token is already stored locally, doesn't prompt for login.
- Added promptTopCoder(): Populates username and password from prompt
- Changed credentials checked within authenticateTopCoder() to new variables
- Modified checkTopCoderAuthentication() to call promptTopCoder() if user is not authenticated
- The local storage has been replaced with chrome storage because local storage for GitHub domain can not be accessed from extension options page. Browser does not allow this for security reasons.
Github Token:The GitHub token will now appear on settings page. There is aDeletebutton present, which on click will remove the github token from the chrome storage.TopCoder Token:The TopCoder token will now appear on settings page.There is anotherdeletebutton present which on click will remove the TopCoder token from chrome storage.Github-TopCoder Mappings:There is an option for mapping Git repo URLs with TopCoder project Id . The lists are in theeditable format. There is adeleteoption for each mapping pair.This mapping is going to be used in future.
2 additionals features have been added.
Delete All:It will delete all the mappings(repo URLs and IDs)Add Mass:Using this features one can add multiple mappings(repo URLs and IDs)simultaneously.This becomes handy when there are too many of mappings to be done.
While adding multiple mappings simultaneously there is a delimiter which separates repo URLS from IDs.Its default value is ### and can be configured in options.js.