2020-07-02 12:08:29 +00:00
|
|
|
/**
|
|
|
|
|
* Configuration for the merge tool in `ng-dev`. This sets up the labels which
|
|
|
|
|
* are respected by the merge script (e.g. the target labels).
|
2025-11-06 20:56:06 +00:00
|
|
|
*
|
|
|
|
|
* @type { import("@angular/ng-dev").PullRequestConfig }
|
2020-07-02 12:08:29 +00:00
|
|
|
*/
|
2025-11-06 20:56:06 +00:00
|
|
|
export const pullRequest = {
|
2025-10-23 07:52:08 +00:00
|
|
|
githubApiMerge: {
|
|
|
|
|
default: 'auto',
|
|
|
|
|
labels: [{pattern: 'merge: squash commits', method: 'squash'}],
|
|
|
|
|
},
|
2021-09-02 14:29:47 +00:00
|
|
|
requiredBaseCommits: {
|
2022-04-21 13:45:42 +00:00
|
|
|
// PRs that target either `main` or the patch branch, need to be rebased
|
2021-09-02 14:29:47 +00:00
|
|
|
// on top of the latest commit message validation fix.
|
|
|
|
|
// These SHAs are the commits that update the required license text in the header.
|
2022-04-21 13:45:42 +00:00
|
|
|
'main': '5aeb9a4124922d8ac08eb73b8f322905a32b0b3a',
|
2021-09-02 14:29:47 +00:00
|
|
|
'10.0.x': '27b95ba64a5d99757f4042073fd1860e20e3ed24',
|
|
|
|
|
},
|
2025-10-23 07:52:08 +00:00
|
|
|
// `docs-infra` are not affecting the public NPM packages.
|
|
|
|
|
targetLabelExemptScopes: ['docs-infra'],
|
2024-02-29 16:55:59 +00:00
|
|
|
// enables specific validations during the pull request merge process
|
|
|
|
|
validators: {
|
|
|
|
|
assertEnforceTested: true,
|
|
|
|
|
assertIsolatedSeparateFiles: true,
|
|
|
|
|
},
|
2025-01-28 11:10:37 +00:00
|
|
|
|
|
|
|
|
requiredStatuses: [
|
|
|
|
|
{type: 'check', name: 'test'},
|
|
|
|
|
{type: 'check', name: 'lint'},
|
|
|
|
|
{type: 'check', name: 'adev'},
|
|
|
|
|
{type: 'check', name: 'zone-js'},
|
|
|
|
|
{type: 'status', name: 'google-internal-tests'},
|
|
|
|
|
],
|
2020-07-02 12:08:29 +00:00
|
|
|
};
|