From d25129d829e0ebd70b4e60e399fe91c0d80aa1ad Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 16 Jun 2024 07:15:13 -0400 Subject: use libgit2 to track PRs (#10) * nix: don't depend on registry for nixpkgs input * use libgit2 to track PRs * nix: don't use ci devShell as defaul * crates: bump serenity from `9ad74d4` to `0.12.2 * nix: fix cross compiled builds * crates: split more from client * bot-jobs: update remote refs more efficiently * git-tracker: account for HEAD commits * bot-config: use nixpkgs branches from environment * bot-commands: don't display branches prs haven't landed in * git-tracker: return false when commits aren't found this is annoying as a hard error since it turns out github will report garbage merge commit SHAs for PRs that *haven't* been merged yet. yay * bot: improve docs in some places * bot-client: display invite link on start * bot-http: add TeawieClientExt * bot-commands: add /about * docs: update readme todos * nix: enable StateDirectory in module * crates: bump to 0.2.0 --- .github/workflows/ci.yaml | 2 +- .github/workflows/docker.yaml | 2 +- .github/workflows/update-flake.yaml | 11 ++++------- 3 files changed, 6 insertions(+), 9 deletions(-) (limited to '.github') diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 94518e0..34ced56 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -48,7 +48,7 @@ jobs: uses: actions/checkout@v4 - name: Install Nix - uses: cachix/install-nix-action@v27 + uses: DeterminateSystems/nix-installer-action@v12 - name: Run checks run: | diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index b4823fe..bf9e530 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -34,7 +34,7 @@ jobs: uses: actions/checkout@v4 - name: Install Nix - uses: cachix/install-nix-action@v27 + uses: DeterminateSystems/nix-installer-action@v12 - name: Setup Nix cache uses: DeterminateSystems/magic-nix-cache-action@v7 diff --git a/.github/workflows/update-flake.yaml b/.github/workflows/update-flake.yaml index ed334bd..e1a7112 100644 --- a/.github/workflows/update-flake.yaml +++ b/.github/workflows/update-flake.yaml @@ -9,7 +9,6 @@ on: jobs: update: name: Run update - runs-on: ubuntu-latest permissions: @@ -21,12 +20,10 @@ jobs: uses: actions/checkout@v4 - name: Install Nix - uses: cachix/install-nix-action@v27 + uses: DeterminateSystems/nix-installer-action@v12 - - name: Update lockfile & make PR + - name: Update flake.lock & make PR uses: DeterminateSystems/update-flake-lock@v22 - id: update with: - commit-msg: 'nix: update flake.lock' - pr-title: 'nix: update flake.lock' - token: ${{ github.token }} + commit-msg: "nix: update flake.lock" + pr-title: "nix: update flake.lock" -- cgit v1.2.3