angular-cn/dev-infra/utils
Paul Gschwendtner 576e329f33 feat(dev-infra): provide github API instance to lazy merge configuration (#38223)
The merge script currently accepts a configuration function that will
be invoked _only_ when the `ng-dev merge` command is executed. This
has been done that way because the merge tooling usually relies on
external requests to Git or NPM for constructing the branch configurations.

We do not want to perform these slow external queries on any `ng-dev` command
though, so this became a lazily invoked function.

This commit adds support for these configuration functions to run
asynchronously (by returning a Promise that will be awaited), so that
requests could also be made to the Github API. This is benefical as it
could avoid dependence on the local Git state and the HTTP requests
are more powerful/faster.

Additionally, in order to be able to perform Github API requests
with an authenticated instance, the merge tool will pass through
a `GithubClient` instance that uses the specified `--github-token`
(or from the environment). This ensures that all API requests use
the same `GithubClient` instance and can be authenticated (mitigating
potential rate limits).

PR Close #38223
2020-08-05 10:53:17 -07:00
..
git feat(dev-infra): provide github API instance to lazy merge configuration (#38223) 2020-08-05 10:53:17 -07:00
BUILD.bazel refactor(dev-infra): Add support for groups in the conditions evaluator (#38164) 2020-07-23 11:05:42 -07:00
config.ts fix(dev-infra): merge script should not always require full repo permissions (#37718) 2020-06-26 09:52:33 -07:00
console.ts feat(dev-infra): add group functions to logging system and remove color param (#37232) 2020-05-21 17:40:34 -04:00
github.ts style(dev-infra): correct tslint failures in dev-infra directory (#37233) 2020-06-04 12:44:46 -07:00
repo-files.ts refactor(dev-infra): use the `exec()` helper from `utils/shelljs` whenever possible (#37444) 2020-06-05 09:21:18 -07:00
shelljs.ts fix(dev-infra): incorrect token sanitization when no token is specified (#37489) 2020-06-09 08:27:31 -07:00
ts-node.ts style(dev-infra): correct tslint failures in dev-infra directory (#37233) 2020-06-04 12:44:46 -07:00