moving stuff around

This commit is contained in:
Mitchell Hashimoto
2026-02-03 09:31:56 -08:00
parent f6b67aa25a
commit a4d0d5c182
4 changed files with 6 additions and 5 deletions

View File

@@ -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 <command>"
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

View File

@@ -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

View File

@@ -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 }} \