-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ios): Automate team id selection (#39)
* [ios] Automate team id selection, prompt if more user has more than one team * [ios] Save dev account password into CircleCI env variable (FASTLANE_PASSWORD) for CI access to dev account for deployments * [circle] Create circle extension and move circle specific flows there
- Loading branch information
Showing
7 changed files
with
300 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
module.exports = toolbox => { | ||
toolbox.circle = { | ||
postEnvVariable: async ({ | ||
org, | ||
project, | ||
apiToken, | ||
key, | ||
value | ||
}) => { | ||
const { http } = toolbox | ||
const api = http.create({ | ||
baseURL: 'https://circleci.com/api/v1.1/' | ||
}) | ||
|
||
await api.post( | ||
`project/github/${org}/${project}/envvar?circle-token=${apiToken}`, | ||
{name: key, value: value }, | ||
{headers: {'Content-Type': 'application/json'}} | ||
) | ||
}, | ||
followProject: async ({ org, project, apiToken}) => { | ||
const { http } = toolbox | ||
const api = http.create({ | ||
baseURL: 'https://circleci.com/api/v1.1/' | ||
}) | ||
|
||
const { status } = await api.post( | ||
`project/github/${org}/${project}/follow?circle-token=${apiToken}` | ||
) | ||
return status | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.