From a4d0d5c182f7bd9e3a0b305e1a4e02168c5548a9 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 3 Feb 2026 09:31:56 -0800 Subject: [PATCH] moving stuff around --- .github/{scripts => vouch}/github.nu | 0 .github/{scripts => vouch}/vouch.nu | 7 ++++--- .github/workflows/pr-gate.yml | 2 +- .github/workflows/vouch.yml | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) rename .github/{scripts => vouch}/github.nu (100%) rename .github/{scripts => vouch}/vouch.nu (98%) diff --git a/.github/scripts/github.nu b/.github/vouch/github.nu similarity index 100% rename from .github/scripts/github.nu rename to .github/vouch/github.nu diff --git a/.github/scripts/vouch.nu b/.github/vouch/vouch.nu similarity index 98% rename from .github/scripts/vouch.nu rename to .github/vouch/vouch.nu index 64f0bdb06..495cc41e7 100755 --- a/.github/scripts/vouch.nu +++ b/.github/vouch/vouch.nu @@ -5,9 +5,10 @@ use github.nu # Vouch - contributor trust management. # # Environment variables required: +# # GITHUB_TOKEN - GitHub API token with repo access. If this isn't # set then we'll attempt to read from `gh` if it exists. -def main [] { +export def main [] { print "Usage: vouch " print "" print "Commands:" @@ -31,7 +32,7 @@ def main [] { # # Actually close an unvouched PR # ./vouch.nu check-pr 123 --dry-run=false # -def "main check-pr" [ +export def "main check-pr" [ pr_number: int, # GitHub pull request number --repo (-R): string = "ghostty-org/ghostty", # Repository in "owner/repo" format --vouched-file: string = ".github/VOUCHED", # Path to vouched contributors file @@ -128,7 +129,7 @@ This PR will be closed automatically. See https://github.com/($owner)/($repo_nam # # Actually vouch for a contributor # ./vouch.nu approve-by-issue 123 456789 --dry-run=false # -def "main approve-by-issue" [ +export def "main approve-by-issue" [ issue_id: int, # GitHub issue number comment_id: int, # GitHub comment ID --repo (-R): string = "ghostty-org/ghostty", # Repository in "owner/repo" format diff --git a/.github/workflows/pr-gate.yml b/.github/workflows/pr-gate.yml index f803e3c51..360b97369 100644 --- a/.github/workflows/pr-gate.yml +++ b/.github/workflows/pr-gate.yml @@ -29,7 +29,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - nix develop -c nu .github/scripts/vouch.nu check-pr \ + nix develop -c nu .github/vouch/vouch.nu check-pr \ -R ${{ github.repository }} \ ${{ github.event.pull_request.number }} \ --dry-run=false diff --git a/.github/workflows/vouch.yml b/.github/workflows/vouch.yml index deadc30ac..9ef8297a3 100644 --- a/.github/workflows/vouch.yml +++ b/.github/workflows/vouch.yml @@ -30,7 +30,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - status=$(nix develop -c nu .github/scripts/vouch.nu approve-by-issue \ + status=$(nix develop -c nu .github/vouch/vouch.nu approve-by-issue \ -R ${{ github.repository }} \ ${{ github.event.issue.number }} \ ${{ github.event.comment.id }} \