You need to sign in or sign up before continuing.
Add a finder class for fetching commits between two refs that include a Git trailer tag
When #1364 (closed) is in place, we need to add a finder class that fetches commits to use for a changelog. The input of this class is:
- A project to fetch the commits for
- The start ref of the commit range
- The end ref of the commit range (defaults to HEAD)
- A Git trailer tag and its value that a commit must contain to be included
The output is an array of commits that contain the specified Git trailer and its value. Applying pagination will likely not be possible, as the pagination and total page count is not known before applying the filter, and applying the filter requires fetching the commits. If Gitaly/GitLab supports it, we could perhaps do something like git log --grep="Trailer-name=trailer-value"
to reduce the size of the data to process.
Edited by Yorick Peterse