2017-07-26 15:37:14 -04:00
# Caretaker
Caretaker is responsible for merging PRs into the individual branches and internally at Google.
## Responsibilities
2020-08-10 15:46:56 -04:00
- Draining the queue of PRs ready to be merged. (PRs with [`action: merge` ](https://github.com/angular/angular/pulls?q=is%3Aopen+is%3Apr+label%3A%22action%3A+merge%22 ) label)
2018-01-23 19:49:20 -05:00
- Assigning [new issues ](https://github.com/angular/angular/issues?q=is%3Aopen+is%3Aissue+no%3Alabel ) to individual component authors.
2017-07-26 15:37:14 -04:00
## Merging the PR
2020-08-10 15:46:56 -04:00
A PR needs to have `action: merge` and `target: *` labels to be considered
ready to merge. Merging is performed by running `ng-dev pr merge` with a PR number to merge.
The tooling automatically verifies the given PR is ready for merge. If the PR passes the tests, the
tool will automatically merge it based on the applied target label.
2017-07-26 15:37:14 -04:00
To merge a PR run:
```
2020-08-10 15:46:56 -04:00
$ yarn ng-dev pr merge < pr number >
2017-07-26 15:37:14 -04:00
```
### Recovering from failed `merge-pr` due to conflicts
2020-08-10 15:46:56 -04:00
The `ng-dev pr merge` tool will automatically restore to the previous git state when a merge fails.