UNPKG

604 BJavaScriptView Raw
1const cli = require('heroku-cli-util')
2const co = require('co')
3const api = require('../../lib/heroku-api')
4
5function* run (context, heroku) {
6 const coupling = yield api.pipelineCoupling(heroku, context.app)
7 const couplingPipelineID = coupling.pipeline.id
8
9 yield cli.open(`https://dashboard.heroku.com/pipelines/${couplingPipelineID}/tests`)
10}
11
12module.exports = {
13 topic: 'ci',
14 command: 'open',
15 needsApp: true,
16 needsAuth: true,
17 description: 'open the Dashboard version of Heroku CI',
18 help: 'opens a browser to view the Dashboard version of Heroku CI',
19 run: cli.command(co.wrap(run))
20}