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

Allow writing changes in the github action #657

Merged
merged 2 commits into from
Feb 23, 2023

Conversation

bnjbvr
Copy link
Contributor

@bnjbvr bnjbvr commented Jan 26, 2023

Hi! I think it'd make sense to allow writing changes in the github action itself, so that this can be combined with other actions like https://github.com/getsentry/action-git-diff-suggestions. That way, I can run typos in my repository, and instead of a hard failure, it will suggest code changes to fix the typos.

See bnjbvr/octotest#5 for an example.

(The entrypoint file will run the command twice, so I suspect that it will only have an effect the first time. I can tweak the script so it doesn't, but as far as I could tell, this didn't add extra warnings or other issues, so that seemed ok to me. Let me know if you'd like me to fix that!)

@bnjbvr
Copy link
Contributor Author

bnjbvr commented Feb 6, 2023

@epage Hi! I'm curious to hear what your thoughts are about this?

@epage
Copy link
Collaborator

epage commented Feb 6, 2023

Sorry for the delay in getting back on this.

We have mostly focused talk on Sarif support (#594) though providing suggested edits is an interesting idea (though that linked Action seems to be abandoned)

action.yml Show resolved Hide resolved
@bnjbvr
Copy link
Contributor Author

bnjbvr commented Feb 8, 2023

Interesting, I didn't know about Sarif! Actions like the one I've combined this one with could probably read from sarif outputs in the future, and then emit code suggestions based on that. For now, the current solution has been working great for us, for the past week.

I've now added documentation; can you take another look, please? Thanks!

@epage epage merged commit efa3813 into crate-ci:master Feb 23, 2023
@epage
Copy link
Collaborator

epage commented Feb 23, 2023

Thanks!

@bnjbvr bnjbvr deleted the write-changes branch February 25, 2023 08:54
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.

2 participants