From 85039dd9753b4cfff3fd43af7ad8491080d3576e Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 28 Jun 2025 15:18:34 +0800 Subject: [PATCH] feat: justfile - commands for nixpkgs review --- Justfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Justfile b/Justfile index c8f5951e..409c9cd4 100644 --- a/Justfile +++ b/Justfile @@ -380,3 +380,29 @@ list-failed: [group('services')] list-systemd: systemctl list-units systemd-* + + +# ================================================= +# +# Nixpkgs Review via Github Action +# https://github.com/ryan4yin/nixpkgs-review-gha +# +# ================================================= + +# Run nixpkgs-review for PR +[linux] +[group('nixpkgs')] +review pr: + gh workflow run review.yml --repo ryan4yin/nixpkgs-review-gha -f post-result=true -f pr={{pr}} + +# Run package tests for PR +[linux] +[group('nixpkgs')] +test pr pname: + gh workflow run review.yml --repo ryan4yin/nixpkgs-review-gha -f post-result=true -f pr={{pr}} -f extra-args="-p {{pname}}.passthru.tests" + +# View the summary of a workflow +[linux] +[group('nixpkgs')] +summary: + gh workflow view review.yml --repo ryan4yin/nixpkgs-review-gha