Skip to content

Commit b174a21

Browse files
committed
Add find-gh-prs
Signed-off-by: Michał Górny <[email protected]>
1 parent e8b9c78 commit b174a21

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

README.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,19 @@ of the packages listed on command-line. Typical usage::
268268
find-pkg-bugs app-bar/foo app-foo/bar
269269

270270

271+
GitHub helpers
272+
==============
273+
274+
find-gh-prs
275+
-----------
276+
Dependencies: xdg-utils, perl
277+
278+
Runs a web browser with GitHub pull request search for bugs referring
279+
to any of the packages listed on command-line. Typical usage::
280+
281+
find-gh-prs app-bar/foo app-foo/bar
282+
283+
271284
Lastriting helpers
272285
==================
273286

find-gh-prs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/usr/bin/env bash
2+
# open a browser searching Gentoo GitHub repo for pull requests
3+
# (c) 2024 Michał Górny <[email protected]>
4+
# SPDX-License-Identifier: GPL-2.0-or-later
5+
6+
scriptdir=${BASH_SOURCE%/*}
7+
search=
8+
while [[ ${#} -gt 0 ]]; do
9+
search+=${1}
10+
[[ -n ${2} ]] && search+=' OR '
11+
shift
12+
done
13+
14+
set -e
15+
16+
exec xdg-open "https://github.com/gentoo/gentoo/pulls?q=is:pr+is:open+$("${scriptdir}"/urlencode <<<"${search}")"

0 commit comments

Comments
 (0)