Memorandum: How do I get PRs that merged into master branch between two releases in GitHub.

NOTE: In the strict sense, “between two date times”.

For example, if you’d like to see PRs that merged into master branch between 2019-03-13T00:00:00Z and 2019-03-20T00:00:00Z.

By GitHub Web

Open https://github.com/:user/:repository/pulls, then input following phrase into filter box:

base:master merged:2019-03-13T00:00:00Z..2019-03-20T00:00:00Z

By GitHub API

Request Search API (https://api.github.com/search/issues) with query like following:

q=repo:user/repository+is:pr+base:master+merged:2019-03-13T00:00:00Z..2019-03-20T00:00:00Z

How do I search with tag name instead of date time?

I don’t know…

USE CASE: Auto fill release note into GitHub Release

The GitHub Actions helps us to automate workflows. So, I have automated write release note into GitHub Release.

  1. create a GitHub Release (only input tag name and title)
  2. a GitHub Action will be triggered by release event
    1. the GitHub Action makes release note and write that into GitHub Release

NOTE: If you are interested in this use case, I can show my GitHub Actions in my playground repository.

Ref