lgaticaq/hubot-heroku-deploy-hook

View on GitHub
src/script.js

Summary

Maintainability
A
1 hr
Test Coverage

Function exports has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = robot => {
  robot.router.post('/heroku/deploy', (req, res) => {
    const channelName = process.env.DEPLOY_CHANNEL || '#random'
    const channel = robot.adapter.client.rtm.dataStore.getChannelByName(
      channelName
Severity: Minor
Found in src/script.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status