|
1 |
| -import {DevInfraMergeConfig} from '@angular/dev-infra-private/ng-dev/pr/merge/config'; |
2 |
| -import {getDefaultTargetLabelConfiguration} from '@angular/dev-infra-private/ng-dev/pr/merge/defaults'; |
3 |
| -import {github} from './github'; |
4 |
| -import {release} from './release'; |
| 1 | +import {MergeConfig} from '@angular/dev-infra-private/ng-dev/pr/merge/config'; |
5 | 2 |
|
6 | 3 | /**
|
7 | 4 | * Configuration for the merge tool in `ng-dev`. This sets up the labels which
|
8 | 5 | * are respected by the merge script (e.g. the target labels).
|
9 | 6 | */
|
10 |
| -export const merge: DevInfraMergeConfig['merge'] = async api => { |
11 |
| - return { |
12 |
| - // By default, the merge script merges locally with `git cherry-pick` and autosquash. |
13 |
| - // This has the downside of pull requests showing up as `Closed` instead of `Merged`. |
14 |
| - // In the components repository, since we don't use fixup or squash commits, we can |
15 |
| - // use the Github API merge strategy. That way we ensure that PRs show up as `Merged`. |
16 |
| - githubApiMerge: { |
17 |
| - default: 'squash', |
18 |
| - labels: [ |
19 |
| - {pattern: 'preserve commits', method: 'rebase'} |
20 |
| - ] |
21 |
| - }, |
22 |
| - claSignedLabel: 'cla: yes', |
23 |
| - mergeReadyLabel: 'merge ready', |
24 |
| - commitMessageFixupLabel: 'commit message fixup', |
25 |
| - caretakerNoteLabel: 'caretaker note', |
26 |
| - labels: await getDefaultTargetLabelConfiguration(api, github, release), |
27 |
| - }; |
| 7 | +export const merge: MergeConfig = { |
| 8 | + // By default, the merge script merges locally with `git cherry-pick` and autosquash. |
| 9 | + // This has the downside of pull requests showing up as `Closed` instead of `Merged`. |
| 10 | + // In the components repository, since we don't use fixup or squash commits, we can |
| 11 | + // use the Github API merge strategy. That way we ensure that PRs show up as `Merged`. |
| 12 | + githubApiMerge: { |
| 13 | + default: 'squash', |
| 14 | + labels: [ |
| 15 | + {pattern: 'preserve commits', method: 'rebase'} |
| 16 | + ] |
| 17 | + }, |
| 18 | + claSignedLabel: 'cla: yes', |
| 19 | + mergeReadyLabel: 'merge ready', |
| 20 | + commitMessageFixupLabel: 'commit message fixup', |
| 21 | + caretakerNoteLabel: 'caretaker note', |
28 | 22 | };
|
0 commit comments