Skip to content

Commit

Permalink
Merge pull request #3 from APCOvernight/greenkeeper/apc-style-1.0.1
Browse files Browse the repository at this point in the history
Update apc-style to the latest version 🚀
  • Loading branch information
webdevian committed Jan 29, 2018
2 parents 6273ab7 + 4387a4d commit 08469ed
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 31 deletions.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ try {

const Travis = require('travis-ci')

/**
* Module
* @extends BaseModule
*/
class HueTravis extends BaseModule {
/**
* Generate instance name based on repo and repo
Expand Down Expand Up @@ -93,6 +97,11 @@ class HueTravis extends BaseModule {
return this.repoReport(array[0])
}

/**
* Report the status of a repo to HueStatus
* @param {Object} repo Travis Repo object
* @return {Promise}
*/
async repoReport (repo) {
if (repo.last_build_state === 'failed') {
return this.change('alert', `${repo.slug} Failing`)
Expand Down
60 changes: 30 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"travis-ci": "^2.1.1"
},
"devDependencies": {
"apc-style": "^0.4.3",
"apc-style": "^1.0.1",
"apc-test": "^1.0.0"
},
"repository": {
Expand Down
8 changes: 8 additions & 0 deletions test/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"env": {
"mocha": true
},
"rules": {
"require-jsdoc": 0
}
}

0 comments on commit 08469ed

Please sign in to comment.