Skip to contentSkip to conversation

.github: Enable repo-lockdown bot to refuse GitHub pull requests

PATCH-for-5.0? Applied Philippe Mathieu-Daudé 4 participants 5 messages Apr 6, 2020 – Apr 7, 2020

lore
Share & tools
lore
#0 lore raw

Some GitHub users try to open pull requests against the GitHub mirror. Unfortunate these get ignored until eventually someone notices and closes the request.

Enable the 'Repo Lockdown' [*] 3rd party bot which can autorespond to pull requests with a friendly comment, close the request, and then lock it to prevent further comments.

[*] https://github.com/dessant/repo-lockdown

---
Repo Lockdown is enabled on https://github.com/qemu/qemu/

---
 .github/lockdown.yml | 35 +++++++++++++++++++++++++++++++++++
 MAINTAINERS          |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 .github/lockdown.yml
.github/lockdown.yml new file +35 -0
new file mode 100644
index 0000000000..94472d1256
@@ -0,0 +1,35 @@
+# 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 master
+    repostories hosted on https://git.qemu.org/git/qemu.git.
+    The project does not process issues filed on GitHub.
+
+    The project issues are tracked on Launchpad:
+    https://bugs.launchpad.net/qemu
+
+    QEMU welcomes bug report contributions. You can fill new ones on:
+    https://bugs.launchpad.net/qemu/+filebug
+
+pulls:
+  comment: |
+    Thank you for your interest in the QEMU project.
+
+    This repository is a read-only mirror of the project's master
+    repostories hosted on https://git.qemu.org/git/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 submitting patches described in our Wiki:
+    https://wiki.qemu.org/Contribute/SubmitAPatch and
+    https://wiki.qemu.org/Contribute/FAQ
MAINTAINERS +1 -0
index 9d156d73b3..0559e84790 100644
@@ -2833,6 +2833,7 @@ M: Alex Bennée <[email protected]>
 M: Fam Zheng <[email protected]>
 R: Philippe Mathieu-Daudé <[email protected]>
 S: Maintained
+F: .github/lockdown.yml
 F: .travis.yml
 F: scripts/travis/
 F: .shippable.yml
Signature · 1 line
2.21.1
Reviewed-by
#1 lore raw
Quoted 67 lines · Philippe Mathieu-Daudé

Some GitHub users try to open pull requests against the GitHub mirror. Unfortunate these get ignored until eventually someone notices and closes the request.

Enable the 'Repo Lockdown' [*] 3rd party bot which can autorespond to pull requests with a friendly comment, close the request, and then lock it to prevent further comments.

[*] https://github.com/dessant/repo-lockdown

---
Repo Lockdown is enabled on https://github.com/qemu/qemu/

---
 .github/lockdown.yml | 35 +++++++++++++++++++++++++++++++++++
 MAINTAINERS          |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 .github/lockdown.yml
.github/lockdown.yml new file +35 -0
new file mode 100644
index 0000000000..94472d1256
@@ -0,0 +1,35 @@
+# 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 master
+    repostories hosted on https://git.qemu.org/git/qemu.git.
+    The project does not process issues filed on GitHub.
+
+    The project issues are tracked on Launchpad:
+    https://bugs.launchpad.net/qemu
+
+    QEMU welcomes bug report contributions. You can fill new ones on:
+    https://bugs.launchpad.net/qemu/+filebug
+
+pulls:
+  comment: |
+    Thank you for your interest in the QEMU project.
+
+    This repository is a read-only mirror of the project's master
+    repostories hosted on https://git.qemu.org/git/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 submitting patches described in our Wiki:
+    https://wiki.qemu.org/Contribute/SubmitAPatch and
+    https://wiki.qemu.org/Contribute/FAQ
MAINTAINERS +0 -0
index 9d156d73b3..0559e84790 100644

MAINTAINERS M: Alex Bennée <[email protected]> · line 2839

Quoted 7 lines
MAINTAINERS +1 -0
@@ -2833,6 +2833,7 @@ M: Alex Bennée <[email protected]>
 M: Fam Zheng <[email protected]>
 R: Philippe Mathieu-Daudé <[email protected]>
 S: Maintained
+F: .github/lockdown.yml
 F: .travis.yml
 F: scripts/travis/
 F: .shippable.yml

Looks good, and I'd be happy with this as-is, assuming this is enough to enable it.

Applied
#2 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 4 lines · Philippe Mathieu-Daudé

Some GitHub users try to open pull requests against the GitHub mirror. Unfortunate these get ignored until eventually someone notices and closes the request.

Quoted 8 lines

Enable the 'Repo Lockdown' [*] 3rd party bot which can autorespond to pull requests with a friendly comment, close the request, and then lock it to prevent further comments.

[*] https://github.com/dessant/repo-lockdown

Queued to pr/070420-misc-fixes-1, thanks.

Quoted 61 lines

---
Repo Lockdown is enabled on https://github.com/qemu/qemu/

---
 .github/lockdown.yml | 35 +++++++++++++++++++++++++++++++++++
 MAINTAINERS          |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 .github/lockdown.yml
.github/lockdown.yml new file +35 -0
new file mode 100644
index 0000000000..94472d1256
@@ -0,0 +1,35 @@
+# 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 master
+    repostories hosted on https://git.qemu.org/git/qemu.git.
+    The project does not process issues filed on GitHub.
+
+    The project issues are tracked on Launchpad:
+    https://bugs.launchpad.net/qemu
+
+    QEMU welcomes bug report contributions. You can fill new ones on:
+    https://bugs.launchpad.net/qemu/+filebug
+
+pulls:
+  comment: |
+    Thank you for your interest in the QEMU project.
+
+    This repository is a read-only mirror of the project's master
+    repostories hosted on https://git.qemu.org/git/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 submitting patches described in our Wiki:
+    https://wiki.qemu.org/Contribute/SubmitAPatch and
+    https://wiki.qemu.org/Contribute/FAQ
MAINTAINERS +1 -0
index 9d156d73b3..0559e84790 100644
@@ -2833,6 +2833,7 @@ M: Alex Bennée <[email protected]>
 M: Fam Zheng <[email protected]>
 R: Philippe Mathieu-Daudé <[email protected]>
 S: Maintained
+F: .github/lockdown.yml
 F: .travis.yml
 F: scripts/travis/
 F: .shippable.yml
Signature · 1 line
Alex Bennée
#3 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 37 lines · Philippe Mathieu-Daudé

Some GitHub users try to open pull requests against the GitHub mirror. Unfortunate these get ignored until eventually someone notices and closes the request.

Enable the 'Repo Lockdown' [*] 3rd party bot which can autorespond to pull requests with a friendly comment, close the request, and then lock it to prevent further comments.

[*] https://github.com/dessant/repo-lockdown

---
Repo Lockdown is enabled on https://github.com/qemu/qemu/

---
 .github/lockdown.yml | 35 +++++++++++++++++++++++++++++++++++
 MAINTAINERS          |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 .github/lockdown.yml
.github/lockdown.yml new file +10 -0
new file mode 100644
index 0000000000..94472d1256
@@ -0,0 +1,35 @@
+# 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: |

.github/lockdown.yml line 20

Quoted 10 lines
.github/lockdown.yml new file +10 -0
+    Thank you for your interest in the QEMU project.
+
+    This repository is a read-only mirror of the project's master
+    repostories hosted on https://git.qemu.org/git/qemu.git.
+    The project does not process issues filed on GitHub.
+
+    The project issues are tracked on Launchpad:
+    https://bugs.launchpad.net/qemu
+
+    QEMU welcomes bug report contributions. You can fill new ones on:

"file"

Quoted 5 lines
.github/lockdown.yml new file +5 -0
+    https://bugs.launchpad.net/qemu/+filebug
+
+pulls:
+  comment: |
+    Thank you for your interest in the QEMU project.

.github/lockdown.yml line 35

Quoted 10 lines
.github/lockdown.yml new file +10 -0
+
+    This repository is a read-only mirror of the project's master
+    repostories hosted on https://git.qemu.org/git/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 submitting patches described in our Wiki:
+    https://wiki.qemu.org/Contribute/SubmitAPatch and
+    https://wiki.qemu.org/Contribute/FAQ

Maybe include a reference to the mailing list here too?

thnaks
-- PMM

#4 lore raw
Quoted 60 lines · Peter Maydell
Quoted 37 lines · Philippe Mathieu-Daudé

Some GitHub users try to open pull requests against the GitHub mirror. Unfortunate these get ignored until eventually someone notices and closes the request.

Enable the 'Repo Lockdown' [*] 3rd party bot which can autorespond to pull requests with a friendly comment, close the request, and then lock it to prevent further comments.

[*] https://github.com/dessant/repo-lockdown

---
Repo Lockdown is enabled on https://github.com/qemu/qemu/

---
 .github/lockdown.yml | 35 +++++++++++++++++++++++++++++++++++
 MAINTAINERS          |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 .github/lockdown.yml
.github/lockdown.yml new file +10 -0
new file mode 100644
index 0000000000..94472d1256
@@ -0,0 +1,35 @@
+# 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: |

.github/lockdown.yml line 20

Quoted 10 lines
.github/lockdown.yml new file +10 -0
+    Thank you for your interest in the QEMU project.
+
+    This repository is a read-only mirror of the project's master
+    repostories hosted on https://git.qemu.org/git/qemu.git.
+    The project does not process issues filed on GitHub.
+
+    The project issues are tracked on Launchpad:
+    https://bugs.launchpad.net/qemu
+
+    QEMU welcomes bug report contributions. You can fill new ones on:

"file"

Quoted 9 lines
.github/lockdown.yml new file +9 -0
+    https://bugs.launchpad.net/qemu/+filebug
+
+pulls:
+  comment: |
+    Thank you for your interest in the QEMU project.
+
+    This repository is a read-only mirror of the project's master
+    repostories hosted on https://git.qemu.org/git/qemu.git.
+    The project does not process merge requests filed on GitHub.
Quoted 8 lines

.github/lockdown.yml line 35

Quoted 6 lines
.github/lockdown.yml new file +6 -0
+
+    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 submitting patches described in our Wiki:
+    https://wiki.qemu.org/Contribute/SubmitAPatch and
+    https://wiki.qemu.org/Contribute/FAQ

Maybe include a reference to the mailing list here too?

I'll amend the patch.

Quoted 3 lines

thnaks
-- PMM

Signature · 1 line
Alex Bennée