File tree Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Expand file tree Collapse file tree 2 files changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -268,6 +268,19 @@ of the packages listed on command-line. Typical usage::
268
268
find-pkg-bugs app-bar/foo app-foo/bar
269
269
270
270
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
+
271
284
Lastriting helpers
272
285
==================
273
286
Original file line number Diff line number Diff line change
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}" ) "
You can’t perform that action at this time.
0 commit comments