Skip to content

Commit

Permalink
build: add caretaker configuration to ng-dev config
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
josephperrott authored and dgp1130 committed May 23, 2022
1 parent 163906a commit 3d76cef
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .ng-dev/caretaker.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { CaretakerConfig } from '@angular/dev-infra-private/ng-dev';

/** The configuration for `ng-dev caretaker` commands. */
export const caretaker: CaretakerConfig = {
githubQueries: [
{
name: 'Merge Queue',
query: `is:pr is:open status:success label:"action: merge"`,
},
{
name: 'Merge Assistance Queue',
query: `is:pr is:open label:"action: merge-assistance"`,
},
],
caretakerGroup: 'angular-cli-caretaker',
};
1 change: 1 addition & 0 deletions .ng-dev/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ export { format } from './format';
export { github } from './github';
export { pullRequest } from './pull-request';
export { release } from './release';
export { caretaker } from './caretaker';
9 changes: 9 additions & 0 deletions docs/process/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ Each shift consists of two caretakers. The primary caretaker is responsible for
merging PRs to `main` and patch whereas the secondary caretaker is responsible
for the release.

At the end of each caretaker's rotation, they should peform a handoff in which they provide
information to the next caretaker about the current state of the repository and update the
access group to now include the next caretaker and their secondary. To perform this update
to the access group, the caretaker can run:

```bash
$ yarn ng-dev caretaker handoff
```

## Merging PRs

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

0 comments on commit 3d76cef

Please sign in to comment.