Skip to content

Commit 588b742

Browse files
josephperrottdgp1130
authored andcommitted
build: add caretaker configuration to ng-dev config
Add the caretaker configuration to set up being able to run both the carataker check and the handoff commands. The caretaker handoff command will operate using the angular-cli-caretaker group which has already been seeded with the current information. (cherry picked from commit 3d76cef)
1 parent 6e7ad3e commit 588b742

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.ng-dev/caretaker.ts

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { CaretakerConfig } from '@angular/dev-infra-private/ng-dev';
2+
3+
/** The configuration for `ng-dev caretaker` commands. */
4+
export const caretaker: CaretakerConfig = {
5+
githubQueries: [
6+
{
7+
name: 'Merge Queue',
8+
query: `is:pr is:open status:success label:"action: merge"`,
9+
},
10+
{
11+
name: 'Merge Assistance Queue',
12+
query: `is:pr is:open label:"action: merge-assistance"`,
13+
},
14+
],
15+
caretakerGroup: 'angular-cli-caretaker',
16+
};

.ng-dev/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ export { format } from './format';
33
export { github } from './github';
44
export { pullRequest } from './pull-request';
55
export { release } from './release';
6+
export { caretaker } from './caretaker';

docs/process/release.md

+9
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ for the release. Primary-secondary pairs are as follows:
2323
| Charles | Keen |
2424
| Filipe | Joey |
2525

26+
At the end of each caretaker's rotation, they should peform a handoff in which they provide
27+
information to the next caretaker about the current state of the repository and update the
28+
access group to now include the next caretaker and their secondary. To perform this update
29+
to the access group, the caretaker can run:
30+
31+
```bash
32+
$ yarn ng-dev caretaker handoff
33+
```
34+
2635
## Merging PRs
2736

2837
The list of PRs which are currently ready to merge (approved with passing status checks) can

0 commit comments

Comments
 (0)