diff options
| author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-12-22 15:06:38 +0100 |
|---|---|---|
| committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-12-22 15:06:38 +0100 |
| commit | ab1a8a443128ec38bf71b64c654e35f10216fd86 (patch) | |
| tree | deb885cc33e9bdc9d7fa09d6ef4c931728be8af4 /accounts/gkleen@sif/utils/nixpkgs-pr-watch | |
| parent | 224febb08c923a8e4fb4325fc0f0101b5917561e (diff) | |
| download | nixos-ab1a8a443128ec38bf71b64c654e35f10216fd86.tar nixos-ab1a8a443128ec38bf71b64c654e35f10216fd86.tar.gz nixos-ab1a8a443128ec38bf71b64c654e35f10216fd86.tar.bz2 nixos-ab1a8a443128ec38bf71b64c654e35f10216fd86.tar.xz nixos-ab1a8a443128ec38bf71b64c654e35f10216fd86.zip | |
...flakes
Diffstat (limited to 'accounts/gkleen@sif/utils/nixpkgs-pr-watch')
| -rw-r--r-- | accounts/gkleen@sif/utils/nixpkgs-pr-watch/nixpkgs_pr_watch/__main__.py | 2 |
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 | ||
| 28 | def main(): | 28 | def 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 |
