-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
feat: unify linting #27590
feat: unify linting #27590
Conversation
Hi! This is the friendly automated conda-forge-linting service. I was trying to look for recipes to lint for you, but couldn't find any. |
@conda-forge/staged-recipes @conda-forge/core this PR is ready for review! |
To help direct your pull request to the best reviewers, please mention a topic-specifc team if your recipe matches any of the following: conda-forge/help-c-cpp, conda-forge/help-cdts, conda-forge/help-go, conda-forge/help-java, conda-forge/help-julia, conda-forge/help-nodejs, conda-forge/help-perl, conda-forge/help-python, conda-forge/help-python-c, conda-forge/help-r, conda-forge/help-ruby,or conda-forge/help-rust. Thanks! |
Any comments here @conda-forge/core or shall we try this out for a while? |
This smithy PR that compliments this one was merged, so I am going to merge this one too since they have to go together. |
This PR unifies the staged-recipes linting into a single module in one spot in this repo. It is the complement of conda-forge/conda-smithy#2063.
The job is done in two parts. First, a GHA check runs that computes the lint. This job runs in PR context so it does not have access to privileged credentials. This is an important security step. Then another GHA job is kicked off using an event that allows for a token to run on the upstream repo with write permissions. This second job reads the linting message in the logs of the first and comments with on the PR.
You won't see the comments from the second job on this PR since that job has to run from the default branch of the repo. I tested it out and did some examples using my fork. See beckermr#10 and beckermr#11 for examples of the comments.