Skip to content

Commit c8948fc

Browse files
Merge pull request #12502 from webknjaz/maintenance/ci-plugin-update-draft-ux
🧪 Make a draft based plugin bump PR CI trigger
2 parents dab29d3 + 072cb52 commit c8948fc

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ on:
1414
branches:
1515
- main
1616
- "[0-9]+.[0-9]+.x"
17+
types:
18+
- opened # default
19+
- synchronize # default
20+
- reopened # default
21+
- ready_for_review # used in PRs created from the release workflow
1722

1823
env:
1924
PYTEST_ADDOPTS: "--color=yes"

.github/workflows/update-plugin-list.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ jobs:
4646
run: python scripts/update-plugin-list.py
4747

4848
- name: Create Pull Request
49+
id: pr
4950
uses: peter-evans/create-pull-request@6d6857d36972b65feb161a90e484f2984215f83e
5051
with:
5152
commit-message: '[automated] Update plugin list'
@@ -55,3 +56,13 @@ jobs:
5556
branch-suffix: short-commit-hash
5657
title: '[automated] Update plugin list'
5758
body: '[automated] Update plugin list'
59+
draft: true
60+
61+
- name: Instruct the maintainers to trigger CI by undrafting the PR
62+
env:
63+
GITHUB_TOKEN: ${{ github.token }}
64+
run: >-
65+
gh pr comment
66+
--body 'Please mark the PR as ready for review to trigger PR checks.'
67+
--repo '${{ github.repository }}'
68+
'${{ steps.pr.outputs.pull-request-number }}'

changelog/12502.contrib.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
The UX of the GitHub automation making pull requests to update the
2+
plugin list has been updated. Previously, the maintainers had to close
3+
the automatically created pull requests and re-open them to trigger the
4+
CI runs. From now on, they only need to click the `Ready for review`
5+
button instead.
6+
7+
-- by :user:`webknjaz`.

0 commit comments

Comments
 (0)