diff options
author | Daniel P. Berrangé <berrange@redhat.com> | 2021-10-20 15:30:18 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2021-12-01 09:27:50 +0000 |
commit | 8f6f40214207003a8746e7fc213224738a8f8564 (patch) | |
tree | 550d9ffa51cdc7ce65b541deb8aa3922a0ba1cf7 /.github | |
parent | a4eed6751be84480e1bafe732bcfc23cc91b92f0 (diff) | |
download | libvirt-python-8f6f40214207003a8746e7fc213224738a8f8564.tar.gz |
Switch to new GitHub repo-lockdown configurationv7.10.0
The repo-lockdown service used to run as a bot outside GitHub, but has
now switched to using the GitHub Actions workflow framework. This
requires use of a new configuration file.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/lockdown.yml | 36 | ||||
-rw-r--r-- | .github/workflows/lockdown.yml | 52 |
2 files changed, 52 insertions, 36 deletions
diff --git a/.github/lockdown.yml b/.github/lockdown.yml deleted file mode 100644 index d2aa81f..0000000 --- a/.github/lockdown.yml +++ /dev/null @@ -1,36 +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 - -# Optionally, specify configuration settings just for `issues` or `pulls` -issues: - comment: | - Thank you for your interest in the libvirt project. - - Since this repository is a read-only mirror of the project's master repostory hosted on GitLab, issues opened here are not processed. - - We kindly request that new issues are reported to - - https://gitlab.com/libvirt/libvirt-python/-/issues/new - - Thank you for your time and understanding. - -pulls: - comment: | - Thank you for your interest in the libvirt project. - - Since this repository is a read-only mirror of the project's master repostory hosted on GitLab, merge requests opened here are not processed. - - We kindly request that contributors fork the project at - - https://gitlab.com/libvirt/libvirt-python/ - - push changes to the fork, and then open a new merge request at - - https://gitlab.com/libvirt/libvirt-python/-/merge_requests/new - - Thank you for your time and understanding. diff --git a/.github/workflows/lockdown.yml b/.github/workflows/lockdown.yml new file mode 100644 index 0000000..2250162 --- /dev/null +++ b/.github/workflows/lockdown.yml @@ -0,0 +1,52 @@ +--- +# Configuration for Repo Lockdown - https://github.com/dessant/repo-lockdown + +name: 'Repo Lockdown' + +on: + issues: + types: opened + pull_request_target: + types: opened + +permissions: + pull-requests: write + issues: write + +jobs: + action: + runs-on: ubuntu-latest + steps: + - uses: dessant/repo-lockdown@v2 + with: + issue-comment: | + Thank you for your interest in the libvirt project. + + Since this repository is a read-only mirror of the project's master + repostory hosted on GitLab, issues opened here are not processed. + + We kindly request that new issues are reported to + + https://gitlab.com/libvirt/libvirt-python/-/issues/new + + Thank you for your time and understanding. + lock-issue: true + close-issue: true + pr-comment: | + Thank you for your interest in the libvirt project. + + Since this repository is a read-only mirror of the project's master + repostory hosted on GitLab, merge requests opened here are not + processed. + + We kindly request that contributors fork the project at + + https://gitlab.com/libvirt/libvirt-python/ + + push changes to the fork, and then open a new merge request at + + https://gitlab.com/libvirt/libvirt-python/-/merge_requests/new + + Thank you for your time and understanding. + lock-pr: true + close-pr: true |