Skip to content

Add workflow to automate Requests library updates#6262

Merged
swissspidy merged 5 commits intomainfrom
copilot/automate-request-updates
Mar 10, 2026
Merged

Add workflow to automate Requests library updates#6262
swissspidy merged 5 commits intomainfrom
copilot/automate-request-updates

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 10, 2026

  • Create .github/workflows/update-requests.yml workflow that:
    • Runs on a weekly schedule (every Monday at 03:00 UTC) and supports workflow_dispatch
    • Uses gh api (gh CLI) instead of curl to fetch the latest Requests release tag, with GH_TOKEN set for authentication
    • Compares it to the version in utils/install-requests.sh (with validation)
    • If different, updates the version in the script (with verification) and runs it
    • Creates a pull request with the changes using peter-evans/create-pull-request@v7
    • Concurrency group to prevent overlapping runs
Original prompt

This section details on the original issue you should resolve

<issue_title>Automate Request updates</issue_title>
<issue_description>As previously suggested in #5981:

I'd also like to suggest maybe creating a GH Actions workflow which automates keeping Requests up to date by:

  1. Running as a weekly cron job.
  2. Checking the latest released version via the GH API.
  3. If it doesn't match the version in utils/install-requests.sh, update the version nr in the script.
  4. Run the script.
  5. Commit the changes and create a pull request for the update.

The pull request can still be (manually) tweaked if needed and/or rejected, but at least it takes the "we need to remember to do this" out of the equation.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot AI changed the title [WIP] Add automation for keeping Requests up to date Add workflow to automate Requests library updates Mar 10, 2026
@swissspidy swissspidy requested a review from Copilot March 10, 2026 10:06

This comment was marked as resolved.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>

This comment was marked as resolved.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@swissspidy swissspidy marked this pull request as ready for review March 10, 2026 10:52
@swissspidy swissspidy requested a review from a team as a code owner March 10, 2026 10:52
@swissspidy swissspidy merged commit f9cf1cc into main Mar 10, 2026
68 checks passed
@swissspidy swissspidy deleted the copilot/automate-request-updates branch March 10, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

command:cli Related to 'cli' command command:cli-utils

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automate Request updates

3 participants