summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/utils
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-12-22 15:06:38 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2025-12-22 15:06:38 +0100
commitab1a8a443128ec38bf71b64c654e35f10216fd86 (patch)
treedeb885cc33e9bdc9d7fa09d6ef4c931728be8af4 /accounts/gkleen@sif/utils
parent224febb08c923a8e4fb4325fc0f0101b5917561e (diff)
downloadnixos-ab1a8a443128ec38bf71b64c654e35f10216fd86.tar
nixos-ab1a8a443128ec38bf71b64c654e35f10216fd86.tar.gz
nixos-ab1a8a443128ec38bf71b64c654e35f10216fd86.tar.bz2
nixos-ab1a8a443128ec38bf71b64c654e35f10216fd86.tar.xz
nixos-ab1a8a443128ec38bf71b64c654e35f10216fd86.zip
Diffstat (limited to 'accounts/gkleen@sif/utils')
-rw-r--r--accounts/gkleen@sif/utils/nixpkgs-pr-watch/nixpkgs_pr_watch/__main__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/utils/nixpkgs-pr-watch/nixpkgs_pr_watch/__main__.py b/accounts/gkleen@sif/utils/nixpkgs-pr-watch/nixpkgs_pr_watch/__main__.py
index 2fff9f07..09bb8651 100644
--- a/accounts/gkleen@sif/utils/nixpkgs-pr-watch/nixpkgs_pr_watch/__main__.py
+++ b/accounts/gkleen@sif/utils/nixpkgs-pr-watch/nixpkgs_pr_watch/__main__.py
@@ -27,7 +27,7 @@ class ChangeDetectionSession(requests.Session):
27 27
28def main(): 28def main():
29 def pr_number(s): 29 def pr_number(s):
30 if m := re.fullmatch(r'(?:https?://github\.com/NixOS/nixpkgs/pull/)?(?P<pr>[0-9]+)', s, flags=re.I): 30 if m := re.fullmatch(r'(?:https?://github\.com/NixOS/nixpkgs/pull/)?(?P<pr>[0-9]+)(?:[^0-9].*)?', s, flags=re.I):
31 return int(m.group('pr')) 31 return int(m.group('pr'))
32 else: 32 else:
33 raise ValueError 33 raise ValueError