1 | const cli = require('heroku-cli-util')
|
2 | const co = require('co')
|
3 | const api = require('../../lib/heroku-api')
|
4 |
|
5 | function* 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 |
|
12 | module.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 | }
|