Reputation: 1096
Github provides a nice way to list commits between two tags, e.g. https://github.com/jupyter/nbconvert/compare/6.0.6...6.0.7
Is there any way to list merged PRs between two tags? I want this to include PRs that were rebase-merged.
Upvotes: 7
Views: 2495
Reputation: 489848
(This particular answer is based on the git tag, not the github tag.)
It is worth pointing out that the notion of between does not always make sense here. Sometimes it does; consider for instance this series of commits:
...--G--H--I--J--K--L--M--N <-- branch
^ ^
| |
tag:v1.0 tag:v1.1
The commits "between" the two tags are commits I-J-K
. (There's a fencepost issue1 with deciding whether to include the boundaries at H
and L
.)
But: what about this series of commits?
tag:v1.0
|
v
I--J--K <-- br1
/
...--G--H
\
L--M--N <-- br2
^
|
tag:v1.1
Which commits, if any, are between these tags?
In any case, Git itself lacks anything like issue trackers, a commenting system, and GitHub-style Pull Requests. Mapping from these GitHub-specific features into Git must be done at the GitHub end.
1The two really hard issues in computing are naming, caching, and fencepost errors.
Upvotes: 0
Reputation: 77045
You can do this using git CLI, like:
git log --grep='Merge pull request' --since='2019-01-01' --until='2020-01-01'
where you are searching for merged pull requests between two dates. For this purpose you will need to find out what the dates of the tags are.
The solution above assumes that no rebasing was done during PRs.
On GitHub you can use the UI to search, you may search for PRs between two dates.
Upvotes: 2