Comments (7)
This doesn't exist, but it could be added.
Ignoring commits starting from a given date is tricky, because commits are not necessarily ordered chronologically. It might work fine on a case-by-case basis depending on how the filtering is done (e.g., check commits starting from HEAD and stop checking them once the commit's date is before the given date).
What about providing a commit hash from which to start checking? Meaning only check from commit to HEAD.
from dco-check.
Thanks for the quick reply!
I followed your advice and found out about CI_COMMIT_BEFORE_SHA
, which I set to the desired starting commit. This solves the problem (at least for my use case) :).
from dco-check.
Oh yeah, that works for GitLab CI specifically!
from dco-check.
The suggestion to provide a commit hash, this was just a thought for an enhancement and would not work yet with a Github CI, right? (My CI Pipeline might migrate towards Github in the future.)
from dco-check.
I had to re-read the documentation and code 😅
For pushes to the default branch, dco-check
tries to only check new commits if possible. GitLab CI provides the hash of the last commit on the branch before the push, and GitHub does too:
dco-check/dco_check/dco_check.py
Line 932 in 9dd86e2
So dco-check
won't re-check old commits every time you merge a MR/PR. And assuming that the un-signed-off commits are already on the default branch, dco-check
just won't re-check them.
The suggestion to provide a commit hash, this was just a thought for an enhancement
If there are corner cases or CI platforms that don't support the current behaviour you get with GitLab CI and GitHub CI, then yes an option could be added to never check commits before the given commit hash (inclusive). But as I said, I don't think you'll need this.
from dco-check.
Thanks a lot for the advice. Indeed, this sounds like this will not be a problem on Github and GitLab :).
from dco-check.
Let me know if you do have any issues!
from dco-check.
Related Issues (20)
- Fails to check commits for a brand new branch on GitLab
- GitLab integration fails with detached pipelines for mere requests HOT 6
- dco-check run as GH action fails after extensive rebase HOT 3
- Add option to exclude some commit authors from DCO checking
- Fails when source branch has been merged in the target branch before HOT 1
- GitLabRetriever does not work with pipelines for merge requests HOT 4
- Please provide aarch64 container HOT 4
- Update GitHub workflow shield/badge
- maintenance bots that uses generic emails for commits causing dco check fail
- Improve code coverage HOT 1
- Use GitHub action to automatically tag commits
- Fix & improve handling of env vars wrt params and default values
- Codecov job fails because of coverage %
- Add more tests for supported CIs
- Fails on GitLab when triggering a new pipeline on a branch without new commits HOT 2
- Add option to force dco-check to use GitRetriever
- Add license to source tarballs HOT 1
- Python internal error when manually running dco-check pipeline in GitLab
- Mypy detects several possible type errors
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 dco-check.