Skip to content

Commit

Permalink
More comments added
Browse files Browse the repository at this point in the history
  • Loading branch information
leo committed Jan 6, 2017
1 parent 8e75b80 commit f141fb2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ module.exports = async (types, commits, changeTypes) => {
text += '\n'
text += '### Credits \n\n'

// GitHub links usernames if prefixed with @
for (const credit of credits) {
text += `@${credit}`
}
Expand Down
2 changes: 2 additions & 0 deletions lib/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ const validateToken = async token => new Promise(resolve => {
token
})

// See if the token works by getting
// the data for our company's account
github.users.getForUser({
username: 'zeit'
}, err => {
Expand Down
2 changes: 2 additions & 0 deletions lib/pick-commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ module.exports = async (hash, all, changeTypes) => {
hash = title.ref

const rawHash = hash.split('#')[1]

// Retrieve users that have collaborated on a change
const collaborators = await getCredits(rawHash)

if (collaborators) {
Expand Down

0 comments on commit f141fb2

Please sign in to comment.