angular-cn/dev-infra/pr
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
..
discover-new-conflicts fix(dev-infra): support running scripts from within a detached head (#37737) 2020-06-26 09:51:09 -07:00
merge feat(dev-infra): provide github API instance to lazy merge configuration (#38223) 2020-08-05 10:53:17 -07:00
rebase fix(dev-infra): support running scripts from within a detached head (#37737) 2020-06-26 09:51:09 -07:00
BUILD.bazel feat(dev-infra): create rebase-pr tool in ng-dev (#37055) 2020-05-18 16:18:32 -07:00
cli.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00