hubot-scripts/hubot-gh-token

Name: hubot-gh-token

Owner: Hubot Scripts

Description: Stores GitHub Personal Access Tokens in Hubot's brain

Created: 2016-11-17 21:35:41.0

Updated: 2017-11-21 18:10:39.0

Pushed: 2016-11-17 21:36:18.0

Homepage: null

Size: 5

Language: CoffeeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

hubot-gh-token

Stores GitHub Personal Access Tokens in Hubot's brain

See src/gh-token.coffee for full documentation.

Installation

In hubot project repo, run:

npm install hubot-gh-token --save

Then add hubot-gh-token to your external-scripts.json:

bot-gh-token"]
Configuration
Notes

Most of this code was extracted from hubot-deploy which uses code from hubot-vault

This script is similar to hubot-github-identity but allows users to set their tokens in chat instead of through Hubot's http listener.

Sample Interaction
1>> bot github token set c0f6f12f70357a9aecc4ea5c30e7ba8e
> Your GitHub token is valid. I stored it for future use.
1>> bot github token verify
> Your GitHub token is valid on api.github.com.
1>> bot github token reset
> I nuked your GitHub token. I'll try to use my default token until you configure another.

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.