From 9361756d9609e3656803e567e17ee81eda5e6f6a Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 24 Oct 2022 11:15:21 +0000 Subject: [PATCH 1/3] Add renovate.json --- .github/renovate.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/renovate.json diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000..942f941 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "constraints": {"python": "3.10.6"}, + "extends": ["config:base"], + "enabledManagers": ["ansible-galaxy", "pip-compile"], + "pip-compile": {"fileMatch": ["^requirements-dev\\.in$"]} +} From 99f523ed5470b53cd4cfb7ef2c4f852052b091b3 Mon Sep 17 00:00:00 2001 From: nre Date: Mon, 24 Oct 2022 13:16:31 +0200 Subject: [PATCH 2/3] Add GitHub workflow to nag us for Python updates --- .github/workflows/update-python.yml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/update-python.yml diff --git a/.github/workflows/update-python.yml b/.github/workflows/update-python.yml new file mode 100644 index 0000000..b8f8d6f --- /dev/null +++ b/.github/workflows/update-python.yml @@ -0,0 +1,31 @@ +--- +on: # yamllint disable-line rule:truthy + pull_request_target: + types: [opened, reopened] + paths: + - .python-version + +permissions: + pull-requests: write + +jobs: + update-python: + runs-on: ubuntu-latest + name: Update Python version used by renovate + steps: + - name: Post a reminder to update the Python version used by renovate + shell: python + # yamllint disable rule:line-length + run: | + import requests + + PR_NUM = ${{ github.event.pull_request.number }} + REPO_SLUG = ${{ github.repository }} + + r = requests.post( + f"https://api.github.com/repos/{REPO_SLUG}/issues/{PR_NUM}/comments", + headers={"Authorization": "token ${{ github.token }}"}, + json={"body": "Don't forget to update the Python version in `.github/renovate.json`"}, + ) + r.raise_for_status() + print(f"Posted comment on pull request {PR_NUM}") From 1ffccecb9d7e47eb202c4b6ef7a2da9fb334ecea Mon Sep 17 00:00:00 2001 From: nre Date: Mon, 24 Oct 2022 13:16:31 +0200 Subject: [PATCH 3/3] Remove dependabot configuration --- .github/dependabot.yml | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 8dce97d..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -version: 2 -updates: - - package-ecosystem: pip - directory: "/" - schedule: - interval: daily - open-pull-requests-limit: 1