Skip to content

GODRIVER-3314 Add PR Cherrypicker Task #1765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -2486,6 +2499,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
Loading