Skip to content

Instantly share code, notes, and snippets.

@kui
Last active August 6, 2021 10:48
Show Gist options
  • Save kui/e0ea1d338b6888e091525254f69aec8c to your computer and use it in GitHub Desktop.
Save kui/e0ea1d338b6888e091525254f69aec8c to your computer and use it in GitHub Desktop.
List Pull Requests with your terminal between two commits/tags/branches
git clone git@github.com:microsoft/vscode.git
cd vscode
# CommitID/Tag/Branch
BASE=1.58.0
HEAD=1.59.0
## With Rest API and jq
# This will fail if too many commits to put these as querystring. In this case, it uses `-n 10`.
FORMAT='* [#\(.number)](\(.url)) \(.title)'
curl -s "https://api.github.com/search/issues?per_page=100&q=is:merged+repo:microsoft/vscode+$(git log "$BASE...$HEAD" --reverse --pretty=format:%h --merges -n 10 | tr '\n' '+')" \
| jq -r ".items[] | select(.score >= 1) | \"$FORMAT\""
* [#129237](https://api.github.com/repos/microsoft/vscode/issues/129237) Replaces whitespaces/tab with no-break whitespace for inlay hints.
* [#129282](https://api.github.com/repos/microsoft/vscode/issues/129282) Ensure ipynb serializer supports node environments and large # of outputs
* [#129447](https://api.github.com/repos/microsoft/vscode/issues/129447) Settings description typos
* [#129616](https://api.github.com/repos/microsoft/vscode/issues/129616) Fix focus issues in disassembly view
* [#129247](https://api.github.com/repos/microsoft/vscode/issues/129247) When injected text is added or removed, cursors in that line need to be normalized again
* [#129651](https://api.github.com/repos/microsoft/vscode/issues/129651) Larger initial view size in disassembly view
* [#129726](https://api.github.com/repos/microsoft/vscode/issues/129726) Open Disassembly View should be present but disabled
* [#129793](https://api.github.com/repos/microsoft/vscode/issues/129793) Temp: swtich image rendering pref from svg to png
* [#129955](https://api.github.com/repos/microsoft/vscode/issues/129955) Makes eslint-plugin-header a dev dependency
* [#129439](https://api.github.com/repos/microsoft/vscode/issues/129439) Fixed minor typos
...
## With git/sed
# This cannot find it if you edit the comment on merge commit.
REPOSITORY_URL=https://github.com/microsoft/vscode
FORMAT="* [#\1](${REPOSITORY_URL}/pull/\1) \2"
git log "$BASE...$HEAD" --reverse --grep="^Merge pull request #[0-9]* from .*" --pretty=format:%B \
| sed -nr "\|^Merge pull request #[0-9]+ from .*|{N;N;s|^Merge pull request #([0-9]+) from .*\\n\\n(.*)|${FORMAT}|p}"
* [#127874](https://github.com/microsoft/vscode/pull/127874) Adopt webpack@5
* [#127986](https://github.com/microsoft/vscode/pull/127986) update distro
* [#127302](https://github.com/microsoft/vscode/pull/127302) Implements support for decorations for injected text.
* [#127391](https://github.com/microsoft/vscode/pull/127391) Expose inlay hints api for monaco
* [#127962](https://github.com/microsoft/vscode/pull/127962) Add `.ixx` as a possible C++ extension
* [#128022](https://github.com/microsoft/vscode/pull/128022) A run & debug dropdown with default button
* [#125563](https://github.com/microsoft/vscode/pull/125563) Add Copy Command Label to Keyboard Shortcuts.
* [#127329](https://github.com/microsoft/vscode/pull/127329) Implements utils that can be used to ensure that all disposables are disposed after a test completes
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment