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

feat: unify linting #27590

Merged
merged 68 commits into from
Sep 18, 2024
Merged

feat: unify linting #27590

merged 68 commits into from
Sep 18, 2024

Conversation

beckermr
Copy link
Member

@beckermr beckermr commented Sep 15, 2024

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.

@conda-forge conda-forge deleted a comment from github-actions bot Sep 15, 2024
@conda-forge conda-forge deleted a comment from github-actions bot Sep 15, 2024
@conda-forge-webservices
Copy link

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.
Please ping the 'conda-forge/core' team (using the @ notation in a comment) if you believe this is a bug.

@beckermr beckermr marked this pull request as ready for review September 16, 2024 04:22
@beckermr
Copy link
Member Author

@conda-forge/staged-recipes @conda-forge/core this PR is ready for review!

Copy link

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!

@conda-forge conda-forge deleted a comment from conda-forge-webservices bot Sep 16, 2024
@conda-forge conda-forge deleted a comment from github-actions bot Sep 16, 2024
@conda-forge conda-forge deleted a comment from github-actions bot Sep 16, 2024
@conda-forge conda-forge deleted a comment from github-actions bot Sep 16, 2024
@conda-forge conda-forge deleted a comment from github-actions bot Sep 16, 2024
@conda-forge conda-forge deleted a comment from github-actions bot Sep 16, 2024
@conda-forge conda-forge deleted a comment from github-actions bot Sep 16, 2024
@conda-forge conda-forge deleted a comment from github-actions bot Sep 16, 2024
@conda-forge conda-forge deleted a comment from github-actions bot Sep 16, 2024
@conda-forge conda-forge deleted a comment from conda-forge-webservices bot Sep 16, 2024
@conda-forge conda-forge deleted a comment from conda-forge-webservices bot Sep 16, 2024
@conda-forge conda-forge deleted a comment from conda-forge-webservices bot Sep 16, 2024
@conda-forge conda-forge deleted a comment from conda-forge-webservices bot Sep 16, 2024
@conda-forge conda-forge deleted a comment from conda-forge-webservices bot Sep 16, 2024
@conda-forge conda-forge deleted a comment from github-actions bot Sep 16, 2024
@beckermr
Copy link
Member Author

Any comments here @conda-forge/core or shall we try this out for a while?

@beckermr
Copy link
Member Author

This smithy PR that compliments this one was merged, so I am going to merge this one too since they have to go together.

@beckermr beckermr merged commit 5bf41a7 into conda-forge:main Sep 18, 2024
6 of 7 checks passed
@beckermr beckermr deleted the unify-linting branch September 18, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant