[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 11/12] .github: move repo lockdown to the v2 configuration
From: |
Alex Bennée |
Subject: |
[PULL 11/12] .github: move repo lockdown to the v2 configuration |
Date: |
Fri, 8 Oct 2021 13:25:55 +0100 |
I was getting prompted by GitHub for new permissions but it turns out
per https://github.com/dessant/repo-lockdown/issues/6:
Repo Lockdown has been rewritten for GitHub Actions, offering new
features and better control over your automation presets. The legacy
GitHub App has been deprecated, and the public instance of the app
has been shut down.
So this is what I've done. As the issues tab is disabled I've removed
the handling for issues from the new version.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Willian Rampazzo <willianr@redhat.com>
Message-Id: <20211004154308.2114870-1-alex.bennee@linaro.org>
diff --git a/.github/lockdown.yml b/.github/lockdown.yml
deleted file mode 100644
index d3546bd2bc..0000000000
--- a/.github/lockdown.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-# Configuration for Repo Lockdown - https://github.com/dessant/repo-lockdown
-
-# Close issues and pull requests
-close: true
-
-# Lock issues and pull requests
-lock: true
-
-issues:
- comment: |
- Thank you for your interest in the QEMU project.
-
- This repository is a read-only mirror of the project's repostories hosted
- at https://gitlab.com/qemu-project/qemu.git.
- The project does not process issues filed on GitHub.
-
- The project issues are tracked on GitLab:
- https://gitlab.com/qemu-project/qemu/-/issues
-
- QEMU welcomes bug report contributions. You can file new ones on:
- https://gitlab.com/qemu-project/qemu/-/issues/new
-
-pulls:
- comment: |
- Thank you for your interest in the QEMU project.
-
- This repository is a read-only mirror of the project's repostories hosted
- on https://gitlab.com/qemu-project/qemu.git.
- The project does not process merge requests filed on GitHub.
-
- QEMU welcomes contributions of code (either fixing bugs or adding new
- functionality). However, we get a lot of patches, and so we have some
- guidelines about contributing on the project website:
- https://www.qemu.org/contribute/
diff --git a/.github/workflows/lockdown.yml b/.github/workflows/lockdown.yml
new file mode 100644
index 0000000000..ad8b8f7e30
--- /dev/null
+++ b/.github/workflows/lockdown.yml
@@ -0,0 +1,30 @@
+# Configuration for Repo Lockdown - https://github.com/dessant/repo-lockdown
+
+name: 'Repo Lockdown'
+
+on:
+ pull_request_target:
+ types: opened
+
+permissions:
+ pull-requests: write
+
+jobs:
+ action:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: dessant/repo-lockdown@v2
+ with:
+ pull-comment: |
+ Thank you for your interest in the QEMU project.
+
+ This repository is a read-only mirror of the project's repostories
hosted
+ on https://gitlab.com/qemu-project/qemu.git.
+ The project does not process merge requests filed on GitHub.
+
+ QEMU welcomes contributions of code (either fixing bugs or adding
new
+ functionality). However, we get a lot of patches, and so we have
some
+ guidelines about contributing on the project website:
+ https://www.qemu.org/contribute/
+ lock-pull: true
+ close-pull: true
--
2.30.2
- [PULL 00/12] some testing and plugin updates, Alex Bennée, 2021/10/08
- [PULL 02/12] tests/tcg/sha1: remove endian include, Alex Bennée, 2021/10/08
- [PULL 01/12] configure: don't override the selected host test compiler if defined, Alex Bennée, 2021/10/08
- [PULL 03/12] tests/tcg: move some multiarch files and make conditional, Alex Bennée, 2021/10/08
- [PULL 08/12] gitlab: fix passing of TEST_TARGETS env to cirrus, Alex Bennée, 2021/10/08
- [PULL 06/12] travis.yml: Remove the "Release tarball" job, Alex Bennée, 2021/10/08
- [PULL 04/12] tests/docker: promote debian-riscv64-cross to a full image, Alex Bennée, 2021/10/08
- [PULL 09/12] plugins/: Add missing functions to symbol list, Alex Bennée, 2021/10/08
- [PULL 11/12] .github: move repo lockdown to the v2 configuration,
Alex Bennée <=
- [PULL 05/12] gitlab: Add cross-riscv64-system, cross-riscv64-user, Alex Bennée, 2021/10/08
- [PULL 07/12] gitlab: skip the check-patch job on the upstream repo, Alex Bennée, 2021/10/08
- [PULL 10/12] accel/tcg: re-factor plugin_inject_cb so we can assert insn_idx is valid, Alex Bennée, 2021/10/08
- [PULL 12/12] tests/docker: add a debian-native image and make available, Alex Bennée, 2021/10/08
- Re: [PULL 00/12] some testing and plugin updates, Richard Henderson, 2021/10/08