mirror of
https://github.com/srid/nixos-config.git
synced 2026-05-11 17:36:07 +08:00
touchpr: add help
This commit is contained in:
parent
db392e4917
commit
e74a532044
1 changed files with 8 additions and 1 deletions
|
|
@ -1,4 +1,11 @@
|
|||
def main [pr_url: string] {
|
||||
# cf. https://github.com/DeterminateSystems/update-flake-lock/issues/110
|
||||
|
||||
# Force push to a GitHub PR
|
||||
#
|
||||
# Useful to trigger GitHub Actions CI
|
||||
def main [
|
||||
pr_url: string # GitHub PR URL
|
||||
] {
|
||||
let parsed = ($pr_url | parse -r 'https://github\.com/(?P<owner>[\w-]+)/(?P<repo>[\w-]+)/pull/(?P<pr_number>\d+)')
|
||||
|
||||
if ($parsed | is-empty) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue