Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add automation for updating our vendored typeshed stubs #11427

Merged
merged 2 commits into from
May 15, 2024

Conversation

AlexWaygood
Copy link
Member

Summary

This PR adds a workflow that will create an automated PR every two weeks to update our vendored typeshed stubs. Two notes:

  • In order for a GitHub Action to be able to create automated PRs, we will need to tick this checkbox in our repo settings:


    image


  • CI will not be triggered on these automated PRs unless the PR is closed and reopened by a maintainer. I think there are workarounds for this limitation, but we haven't succeeded in figuring out how to do them properly at typeshed or mypy, where we also have workflows to trigger automated PRs.

Test Plan

A GitHub workflow cannot be tested unless it is run, and a workflow cannot be run unless it is already merged to the main branch of a repository. So, that's what I did -- with my Ruff fork! I temporarily merged this PR to the main branch of my Ruff fork, and ran the workflow. You can see a demo PR here that was automatically created by running this workflow from my fork: AlexWaygood#9

@AlexWaygood AlexWaygood requested a review from carljm May 14, 2024 17:23
Copy link
Contributor

github-actions bot commented May 14, 2024

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Copy link
Contributor

@carljm carljm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@AlexWaygood AlexWaygood merged commit bdc15a7 into astral-sh:main May 15, 2024
19 checks passed
@AlexWaygood AlexWaygood deleted the typeshed-automation branch May 15, 2024 00:39
@AlexWaygood
Copy link
Member Author

I manually triggered the workflow to check that everything was working. Looks like it is! #11428

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants