File tree 2 files changed +35
-0
lines changed
2 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -418,6 +418,14 @@ functions:
418
418
export SCRIPT="$DRIVERS_TOOLS/.evergreen/github_app/assign-reviewer.sh"
419
419
bash $SCRIPT -p $CONFIG -h ${github_commit} -o "mongodb" -n "mongo-go-driver"
420
420
421
+ " backport pr " :
422
+ - command : subprocess.exec
423
+ type : test
424
+ params :
425
+ binary : bash
426
+ args :
427
+ - ${DRIVERS}/.evergreen/github_app/backport-pr.sh mongodb mongo-go-driver ${github_commit}
428
+
421
429
send-perf-data :
422
430
- command : perf.send
423
431
params :
@@ -909,6 +917,11 @@ tasks:
909
917
- func : " add PR labels"
910
918
- func : " create-api-report"
911
919
920
+ - name : backport-pr
921
+ allowed_requesters : ["commit"]
922
+ commands :
923
+ - func : " backport pr"
924
+
912
925
- name : perf
913
926
tags : ["performance"]
914
927
exec_timeout_secs : 7200
@@ -2487,6 +2500,13 @@ buildvariants:
2487
2500
tasks :
2488
2501
- name : " .compile-check"
2489
2502
2503
+ - name : backport-pr
2504
+ display_name : " Backport PR"
2505
+ run_on :
2506
+ - rhel8.7-large
2507
+ tasks :
2508
+ - name : " backport-pr"
2509
+
2490
2510
- name : atlas-test
2491
2511
tags : ["pullrequest"]
2492
2512
display_name : " Atlas test"
Original file line number Diff line number Diff line change @@ -49,6 +49,21 @@ pre-commit run --all-files
49
49
50
50
### Cherry-picking between branches
51
51
52
+ #### Using the GitHub App
53
+
54
+ Within a PR, you can make the comment:
55
+
56
+ ```
57
+ drivers-pr-bot please backport to {target_branch}
58
+ ```
59
+
60
+ The preferred workflow is to make the comment and then merge the PR.
61
+
62
+ If you merge the PR and the "backport-pr" task runs before you make the comment, you can
63
+ make the comment and then re-run the "backport-pr" task for that commit.
64
+
65
+ #### Manually
66
+
52
67
You must first install the ` gh ` cli (` brew install gh ` ), then set your GitHub username:
53
68
54
69
``` bash
You can’t perform that action at this time.
0 commit comments