Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #550 from Financial-Times/org-to-team
Browse files Browse the repository at this point in the history
Use --team not --org
  • Loading branch information
Samuel Parkinson authored Feb 12, 2019
2 parents f8c50a7 + fdd8a68 commit 73fe308
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/pipelines.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function getApps (pipelineName){

function create (pipelineName, { stagingApp, organisation }){
let command = 'heroku';
let args = ['pipelines:create', pipelineName, '--org', organisation, '--stage', 'staging', '--app', stagingApp];
let args = ['pipelines:create', pipelineName, '--team', organisation, '--stage', 'staging', '--app', stagingApp];

return new Promise((resolve, reject) =>{
let ps = spawn(command, args, { env:process.env, stdio:'inherit' });
Expand Down
2 changes: 1 addition & 1 deletion tasks/provision.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const DEFAULT_REGION = 'us';
const DEFAULT_ORG = 'ft-customer-products';

function task (name, { region = DEFAULT_REGION, organisation = DEFAULT_ORG } = {}) {
return spawn(`heroku create -a ${name} --region ${region} --org ${organisation} --no-remote`, { verbose: true });
return spawn(`heroku create -a ${name} --region ${region} --team ${organisation} --no-remote`, { verbose: true });
};

module.exports = function (program, utils) {
Expand Down

0 comments on commit 73fe308

Please sign in to comment.