getsentry / action-github-commit Goto Github PK
View Code? Open in Web Editor NEWGitHub Action to commit to GitHub using the API
License: MIT License
GitHub Action to commit to GitHub using the API
License: MIT License
We need to look into handling a large number of files as we currently have errors due to wrong commit SHA being used when we update multiple files (missing await
somewhere).
We also will hit API limits as well because we are creating a new commit per file. We should look into using bulk commits, maybe using the git data API.
There are actions in the marketplace that solve the same problem, we should use one of those rather than maintaining our own.
https://www.google.com/search?q=action+github+commit
https://github.com/marketplace/actions/add-commit
https://github.com/marketplace/actions/git-auto-commit
https://github.com/marketplace/actions/github-commit-push
https://github.com/marketplace/actions/github-action-for-committing-changes-to-a-repository
https://github.com/marketplace/actions/verified-commit
@asottile further suggests that we could reimplement with pre-commit ci or pre-commit ci lite which handles this in a safe manner without exposing creds to GHA.
Action doesn't seem to handle committing removed files well.
Example: https://github.com/getsentry/security-as-code/actions/runs/6302004945/job/17108284070#logs
Error: Error: ENOENT: no such file or directory, open '/filename'
at Object.openSync (node:fs:590:3)
at Object.readFileSync (node:fs:458:35)
at /home/runner/work/_actions/getsentry/action-github-commit/v1.1.0/dist/index.js:92:50
at Generator.next (<anonymous>)
at fulfilled (/home/runner/work/_actions/getsentry/action-github-commit/v1.1.0/dist/index.js:35:58)
Error: ENOENT: no such file or directory, open '/filename'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.