Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for multiple users and API keys #11

Merged
merged 3 commits into from
Oct 14, 2013

Conversation

raylillywhite
Copy link
Contributor

This will allow comments to appear from individual developers. If the author is not found in the ASANA_USERS variable, the ASANA_KEY will be used. As described in the updated README.md, the ASANA_USERS variable is formatted as:

[{"username":"FirstName LastName", "key":"XXXXXXXX.XXXXXXXXXXXXXXXXXX"}, {"username":"FirstName2 LastName2", "key":"XXXXXXXX.XXXXXXXXXXXXXXXXXX"}]

This resolves #7 and is based on work by @LarsHassler (LarsHassler@1399ea8)

I haven't done much with javascript, so let me know if you see any issues with this.

@jamieforrest
Copy link
Owner

Looks good. Are you using this code in a test or production environment?

@raylillywhite
Copy link
Contributor Author

I'm not sure what you mean... I have it deployed to heroku for free (1 dyno), but I am using it for GitHub/Asana integration at my company, on our actual repos/projects.

If you were just asking because of the console.log statement, I removed that :) I also just fixed an error in my documentation. The ASANA_USERS env variable needs GitHub usernames, not first and last names.

@jamieforrest
Copy link
Owner

Yes I meant whether you were running it successfully. Thanks for the feedback. I will merge the change in.

jamieforrest added a commit that referenced this pull request Oct 14, 2013
Support for multiple users and API keys
@jamieforrest jamieforrest merged commit d931c13 into jamieforrest:master Oct 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

A single API key means all comments are from the same person
2 participants