Comments (6)
This is intended behavior on GitHub's part: PR status checks always refer to the latest commit, so if you don't re-trigger CI on the automated commit it won't display any status checks
That's because otherwise an action could break your code and the status checks would still be successful
You need to either commit using a PAT, or re-trigger some the status checks you need either manually or via a workflow dispatch call to the API
from add-and-commit.
Hey @EndBug ! thank you.
But one question:; I was testing with my friend yesterday. in the same scenario, If I ask him to Update the Branch, the status is not reset. The reset problem happens using GITHUB_TOKEN and now a GitHub App Token. The PAT is an option, however, using in a enterprise scenario, I will reach the PAT Threshold very fast.
from add-and-commit.
Maybe if you update the branch using the GitHub UI they just keep the previous result, since they "trust" the operation. I don't know exactly what the criteria is though 🙌🏻
I would suggest you allow your "test" workflows, the ones you require the status checks to be run for, to be run via workflow dispatches, then add a step using some action to send the dispatch via the GitHub API
There are a few actions on the marketplace you can use for that, this is one of them: https://github.com/marketplace/actions/workflow-dispatch
from add-and-commit.
I was making some tests here and noticed something.
Before my workflow starts, my PR is attached to a commti Hash. As a need to make a Branch commit, It´s creating a new Hash.
Is there a way to make a commit and preserve the original Hash? I believe it´s Fast-Foward, right?
from add-and-commit.
I don't think it's possible, because the SHA of each commit is generated by git internals by hashing different info about the commit, including the SHA of the parent.
That makes it impossible to insert a commit in the history without modifying every commit down the line.
Even with fast-forward merges or rebases, the SHA of every subsequent commit is re-calcultated.
from add-and-commit.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from add-and-commit.
Related Issues (20)
- How to get push working when another commit was pushed? HOT 3
- `commit_sha` returns the full SHA instead of the 7-character SHA
- Support Disabling\Enabling enforce_admins As Part of Push HOT 5
- Avoid pulling if a new branch was just created HOT 1
- Is there a dry-run input? HOT 1
- suggestion: retry push logic HOT 1
- Pre-Commit script HOT 2
- Warning: There are environment variables missing from this runtime, but would be present on GitHub HOT 4
- Warning: The set-output command is deprecated and will be disabled soon HOT 2
- "add" with array input doesn't seem to work HOT 2
- Error with repository ownership HOT 4
- Error: fatal: detected dubious ownership in repository HOT 1
- It doesn't work for me HOT 5
- Fetch only one branch for performance issues HOT 4
- Node 20 support HOT 3
- False reporting of Working tree clean. Nothing to commit. HOT 3
- Use on a PR HOT 2
- Error: fatal: Cannot prompt because user interactivity has been disabled. HOT 2
- Fails without an error message HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from add-and-commit.