* [Buildroot] [PATCH v3 0/1] .github: add github action to automate PR handling
@ 2024-07-09 1:45 zhangdongdong
2024-07-09 1:45 ` [Buildroot] [PATCH v3 1/1] " zhangdongdong
0 siblings, 1 reply; 3+ messages in thread
From: zhangdongdong @ 2024-07-09 1:45 UTC (permalink / raw)
To: buildroot; +Cc: thomas.petazzoni, bonet, Dongdong Zhang
From: Dongdong Zhang <zhangdongdong@eswincomputing.com>
Changes in v3:
- restrict the trigger condition to the repo buildroot/buildroot.so that
this action won't be triggered when others fork the repository.
Dongdong Zhang (1):
.github: add github action to automate PR handling
.github/workflows/repo-lockdown.yml | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 .github/workflows/repo-lockdown.yml
--
2.17.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread* [Buildroot] [PATCH v3 1/1] .github: add github action to automate PR handling
2024-07-09 1:45 [Buildroot] [PATCH v3 0/1] .github: add github action to automate PR handling zhangdongdong
@ 2024-07-09 1:45 ` zhangdongdong
2024-07-09 9:43 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 3+ messages in thread
From: zhangdongdong @ 2024-07-09 1:45 UTC (permalink / raw)
To: buildroot; +Cc: thomas.petazzoni, bonet, Dongdong Zhang
From: Dongdong Zhang <zhangdongdong@eswincomputing.com>
This patch updates the Buildroot repository's GitHub configuration to better
manage incoming pull requests.
- Added a new GitHub Actions workflow (`repo-lockdown.yml`) to automatically
handle new pull requests.
The new workflow:
- Triggers on new pull requests.
- Uses the `dessant/repo-lockdown` action to:
- Comment on the pull request, guiding contributors to use the mailing list
for patch submission.
- Lock the pull request to prevent further discussion.
- Close the pull request.
This change ensures that contributors are properly directed to the preferred
method of patch submission via the mailing list, maintaining consistency and
streamlining the review process.
Signed-off-by: Dongdong Zhang <zhangdongdong@eswincomputing.com>
---
.github/workflows/repo-lockdown.yml | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
create mode 100644 .github/workflows/repo-lockdown.yml
diff --git a/.github/workflows/repo-lockdown.yml b/.github/workflows/repo-lockdown.yml
new file mode 100644
index 0000000000..45cfd2867d
--- /dev/null
+++ b/.github/workflows/repo-lockdown.yml
@@ -0,0 +1,25 @@
+name: 'Repo Lockdown'
+
+on:
+ pull_request_target:
+ types: opened
+
+permissions:
+ pull-requests: write
+
+jobs:
+ action:
+ if: github.repository == 'buildroot/buildroot'
+ runs-on: ubuntu-latest
+ steps:
+ - uses: dessant/repo-lockdown@v4
+ with:
+ pr-comment: |
+ Please do not submit a Pull Request via GitHub. Buildroot makes use of a
+ [mailing list](http://lists.buildroot.org/mailman/listinfo/buildroot) for patch submission and review.
+ See [submitting your own patches](http://buildroot.org/manual.html#submitting-patches) for more info.
+
+ Thanks for your help!
+ lock-pr: true
+ close-pr: true
+
--
2.17.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [Buildroot] [PATCH v3 1/1] .github: add github action to automate PR handling
2024-07-09 1:45 ` [Buildroot] [PATCH v3 1/1] " zhangdongdong
@ 2024-07-09 9:43 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-09 9:43 UTC (permalink / raw)
To: zhangdongdong; +Cc: bonet, buildroot
On Tue, 9 Jul 2024 09:45:17 +0800
zhangdongdong@eswincomputing.com wrote:
> From: Dongdong Zhang <zhangdongdong@eswincomputing.com>
>
> This patch updates the Buildroot repository's GitHub configuration to better
> manage incoming pull requests.
>
> - Added a new GitHub Actions workflow (`repo-lockdown.yml`) to automatically
> handle new pull requests.
>
> The new workflow:
> - Triggers on new pull requests.
> - Uses the `dessant/repo-lockdown` action to:
> - Comment on the pull request, guiding contributors to use the mailing list
> for patch submission.
> - Lock the pull request to prevent further discussion.
> - Close the pull request.
>
> This change ensures that contributors are properly directed to the preferred
> method of patch submission via the mailing list, maintaining consistency and
> streamlining the review process.
>
> Signed-off-by: Dongdong Zhang <zhangdongdong@eswincomputing.com>
> ---
> .github/workflows/repo-lockdown.yml | 25 +++++++++++++++++++++++++
> 1 file changed, 25 insertions(+)
> create mode 100644 .github/workflows/repo-lockdown.yml
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-09 9:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-09 1:45 [Buildroot] [PATCH v3 0/1] .github: add github action to automate PR handling zhangdongdong
2024-07-09 1:45 ` [Buildroot] [PATCH v3 1/1] " zhangdongdong
2024-07-09 9:43 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox