UNPKG
@heroku-cli/plugin-pipelines
Version:
beta (8.1.7-beta.0)
latest (8.1.7)
next (2.5.6-test.0)
8.1.7
8.1.7-beta.0
8.1.6
8.1.6-beta.0
8.1.5
8.1.4
8.1.4-beta.0
8.1.2
8.1.0
8.0.6
8.0.5
8.0.5-beta.1
8.0.2
8.0.2-beta.1
8.0.2-beta.0
8.0.0
7.68.0
7.66.3
7.62.0
7.54.0
7.53.0
7.49.0
7.47.13
7.47.12
7.47.2
7.47.1
7.43.0
7.42.8
7.42.7
7.42.5
7.42.0
7.41.0
7.38.1
7.38.0
7.35.0
7.34.0
7.33.0
7.31.1
7.31.0
7.28.0
7.27.0
3.0.0-alpha.1
3.0.0-alpha.0
2.5.10
2.5.9
2.5.8
2.5.7
2.5.6
2.5.6-test.0
2.5.5
2.5.4
2.5.3
2.5.2
2.5.1
@heroku-cli/plugin-pipelines ============================
github.com/heroku/cli
heroku/cli
@heroku-cli/plugin-pipelines
/
lib
/
setup
/
get-github-token.js
11 lines
(10 loc)
•
325 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
function
getGitHubToken
(
kolkrabbi
) {
return
kolkrabbi.
getAccount
().
then
(
(
account
) =>
{
return
account.
github
.
token
; },
() =>
{
throw
new
Error
(
'Account not connected to GitHub.'
); }); }
exports
.
default
= getGitHubToken;