angular-cn/dev-infra/pr/merge
Paul Gschwendtner cb2ab26296 feat(dev-infra): merge script should link to original commit when cherry-picking with API strategy (#37889)
The merge script uses `git cherry-pick` for both the API merge strategy
and the autosquash strategy. It uses cherry-pick to push commits to
different target branches (e.g. into the `10.0.x` branch).

Those commits never point to the commits that landed in the primary
Github branch though. For the autosquash strategy the pull request number
is always included, so there is a way to go back to the source. On the other
hand though, for commits cherry-picked in the API merge strategy, the
pull request number might not always be included (due to Github's
implementation of the rebase merge method).

e.g.
27f52711c0

For those cases we'd want to link the cherry-picked commits to the
original commits so that the corresponding PR is easier to track
down. This is not needed for the autosquash strategy (as outlined
before), but it would have been good for consistency. Unfortunately
though this would rather complicate the strategy as the autosquash
strategy cherry-picks directly from the PR head, so the SHAs that
are used in the primary branch are not known.

PR Close #37889
2020-07-07 12:16:21 -07:00
..
strategies feat(dev-infra): merge script should link to original commit when cherry-picking with API strategy (#37889) 2020-07-07 12:16:21 -07:00
BUILD.bazel feat(dev-infra): expose script for determining merge branches (#37217) 2020-05-21 10:35:23 -07:00
cli.ts style(dev-infra): correct tslint failures in dev-infra directory (#37233) 2020-06-04 12:44:46 -07:00
config.ts feat(dev-infra): support for caretaker note label in merge script (#37595) 2020-06-16 11:58:55 -07:00
determine-merge-branches.ts feat(dev-infra): expose script for determining merge branches (#37217) 2020-05-21 10:35:23 -07:00
failures.ts feat(dev-infra): Add oauth scope check to ensure necessary permissions for merge tooling (#37421) 2020-06-04 09:35:59 -07:00
index.ts feat(dev-infra): support for caretaker note label in merge script (#37595) 2020-06-16 11:58:55 -07:00
messages.ts feat(dev-infra): support for caretaker note label in merge script (#37595) 2020-06-16 11:58:55 -07:00
pull-request.ts refactor(dev-infra): migrate github api in GitClient to rely on GithubClient (#37593) 2020-06-22 10:54:43 -07:00
string-pattern.ts feat(dev-infra): move merge script over from components repo (#37138) 2020-05-18 11:50:07 -07:00
target-label.ts feat(dev-infra): move merge script over from components repo (#37138) 2020-05-18 11:50:07 -07:00
task.ts fix(dev-infra): merge script should not always require full repo permissions (#37718) 2020-06-26 09:52:33 -07:00