Skip to content

Commit

Permalink
GODRIVER-3314 Add PR Cherrypicker Task (#1765)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Aug 27, 2024
1 parent 5cb35dd commit 60b508f
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .evergreen/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,14 @@ functions:
export SCRIPT="$DRIVERS_TOOLS/.evergreen/github_app/assign-reviewer.sh"
bash $SCRIPT -p $CONFIG -h ${github_commit} -o "mongodb" -n "mongo-go-driver"
"backport pr":
- command: subprocess.exec
type: test
params:
binary: bash
args:
- ${DRIVERS}/.evergreen/github_app/backport-pr.sh mongodb mongo-go-driver ${github_commit}

send-perf-data:
- command: perf.send
params:
Expand Down Expand Up @@ -909,6 +917,11 @@ tasks:
- func: "add PR labels"
- func: "create-api-report"

- name: backport-pr
allowed_requesters: ["commit"]
commands:
- func: "backport pr"

- name: perf
tags: ["performance"]
exec_timeout_secs: 7200
Expand Down Expand Up @@ -2487,6 +2500,13 @@ buildvariants:
tasks:
- name: ".compile-check"

- name: backport-pr
display_name: "Backport PR"
run_on:
- rhel8.7-large
tasks:
- name: "backport-pr"

- name: atlas-test
tags: ["pullrequest"]
display_name: "Atlas test"
Expand Down
15 changes: 15 additions & 0 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,21 @@ pre-commit run --all-files

### Cherry-picking between branches

#### Using the GitHub App

Within a PR, you can make the comment:

```
drivers-pr-bot please backport to {target_branch}
```

The preferred workflow is to make the comment and then merge the PR.

If you merge the PR and the "backport-pr" task runs before you make the comment, you can
make the comment and then re-run the "backport-pr" task for that commit.

#### Manually

You must first install the `gh` cli (`brew install gh`), then set your GitHub username:

```bash
Expand Down

0 comments on commit 60b508f

Please sign in to comment.