-
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.56 KB
/
create-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Create Pull Requests
on:
workflow_dispatch:
inputs:
autoqueue:
description: Whether to put the PR in queue automatically
type: boolean
jobs:
create-hotfix:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: |
mkdir testbed
echo `uuidgen` > testbed/`uuidgen`
- name: Create a pull request (autoqueue)
if: ${{ inputs.autoqueue }}
uses: peter-evans/create-pull-request@v5
with:
title: "A pull request automatically merged"
body: >
This is a test pull request.
It will be put in queue automatically by Mergify right now.
You can chose the queue by adding a label:
- Use the `hotfix` label to put the PR in the hotfix queue;
- Use the `lowprio` label to put the PR in the lowprio queue;
- Do not set any label to have it enter the default queue.
labels: autoqueue
- name: Create the hotfix pull request
if: ${{ ! inputs.autoqueue }}
uses: peter-evans/create-pull-request@v5
with:
title: "A pull request"
body: >
This is a test pull request!
To put it in queue, run the `@mergifyio queue` command by posting a
comment.
You can use label to route the PR to any queue:
- `@mergifyio queue hotfix` to enter the hotfix queue;
- `@mergifyio queue` to enter the default queue;
- `@mergifyio queue lowprio` to enter the lowprio queue;
labels: