File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed
Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -418,6 +418,17 @@ functions:
418418 export SCRIPT="$DRIVERS_TOOLS/.evergreen/github_app/assign-reviewer.sh"
419419 bash $SCRIPT -p $CONFIG -h ${github_commit} -o "mongodb" -n "mongo-go-driver"
420420
421+ " backport pr " :
422+ - command : subprocess.exec
423+ type : test
424+ params :
425+ binary : bash
426+ args :
427+ - ${DRIVERS_TOOLS}/.evergreen/github_app/backport-pr.sh
428+ - mongodb
429+ - mongo-go-driver
430+ - ${github_commit}
431+
421432 send-perf-data :
422433 - command : perf.send
423434 params :
@@ -906,6 +917,11 @@ tasks:
906917 - func : " add PR labels"
907918 - func : " create-api-report"
908919
920+ - name : backport-pr
921+ allowed_requesters : ["commit"]
922+ commands :
923+ - func : " backport pr"
924+
909925 - name : perf
910926 tags : ["performance"]
911927 exec_timeout_secs : 7200
@@ -2484,6 +2500,15 @@ buildvariants:
24842500 tasks :
24852501 - name : " .compile-check"
24862502
2503+ - name : backport-pr
2504+ display_name : " Backport PR"
2505+ run_on :
2506+ - rhel8.7-small
2507+ expansions :
2508+ GO_DIST : " /opt/golang/go1.20"
2509+ tasks :
2510+ - name : " backport-pr"
2511+
24872512 - name : atlas-test
24882513 tags : ["pullrequest"]
24892514 display_name : " Atlas test"
Original file line number Diff line number Diff line change @@ -51,6 +51,21 @@ pre-commit run --all-files
5151
5252### Cherry-picking between branches
5353
54+ #### Using the GitHub App
55+
56+ Within a PR, you can make the comment:
57+
58+ ```
59+ drivers-pr-bot please backport to {target_branch}
60+ ```
61+
62+ The preferred workflow is to make the comment and then merge the PR.
63+
64+ If you merge the PR and the "backport-pr" task runs before you make the comment, you can
65+ make the comment and then re-run the "backport-pr" task for that commit.
66+
67+ #### Manually
68+
5469You must first install the ` gh ` cli (` brew install gh ` ), then set your GitHub username:
5570
5671``` bash
You can’t perform that action at this time.
0 commit comments