Skip to content

Commit

Permalink
use config file over hardcode account info
Browse files Browse the repository at this point in the history
  • Loading branch information
loddit committed Aug 16, 2015
1 parent d9979ad commit 435bb1f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
dist
.config.json
11 changes: 7 additions & 4 deletions legilimens.coffee
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
request = require('request')
fs = require('fs')

config = JSON.parse(fs.readFileSync('.config.json','utf8'))

GITHUB_REPO_API_ROOT = "https://api.github.com/repos/"
LATEST_RELEASE_PATH = "/releases/latest"
RECENT_CLOSED_PR_PATH = "/pulls?state=closed&sort=updated&direction=desc"

username = 'yourname'
password = 'password'
repoOwner = 'repo/owner'
repoName = 'reponame'
username = config.username
password = config.password
repoOwner = config.repo_owner
repoName = config.repo_name

repoUrl = "#{GITHUB_REPO_API_ROOT}#{repoOwner}/#{repoName}"

Expand Down

0 comments on commit 435bb1f

Please sign in to comment.