From aee5ea10c6dd3fb00e301ad714b07e007bb339cd Mon Sep 17 00:00:00 2001 From: Barrett Ruth <62671086+barrettruth@users.noreply.github.com> Date: Wed, 4 Mar 2026 13:49:06 -0500 Subject: [PATCH] ci: scripts and format (#68) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * ci(digest): approve with DIGEST_PAT after disabling require_last_push_approval require_last_push_approval blocked barrettruth from approving their own push. Disabled that restriction in the ruleset — 1 approval is still required for all PRs, but the approver can now be the pusher. DIGEST_PAT (barrettruth) approves, CI runs via PAT push, auto-merge fires when checks pass. * ci: format + scripts --- .../{upstream-digest.yml => upstream-digest.yaml} | 2 +- .luarc.json | 3 ++- .styluaignore | 1 + README.md | 3 ++- scripts/ci.sh | 7 +++++++ 5 files changed, 13 insertions(+), 3 deletions(-) rename .github/workflows/{upstream-digest.yml => upstream-digest.yaml} (98%) create mode 100644 .styluaignore create mode 100755 scripts/ci.sh diff --git a/.github/workflows/upstream-digest.yml b/.github/workflows/upstream-digest.yaml similarity index 98% rename from .github/workflows/upstream-digest.yml rename to .github/workflows/upstream-digest.yaml index 2ebfc22..17020d4 100644 --- a/.github/workflows/upstream-digest.yml +++ b/.github/workflows/upstream-digest.yaml @@ -2,7 +2,7 @@ name: upstream digest on: schedule: - - cron: "0 9 * * 1" + - cron: '0 9 * * 1' workflow_dispatch: permissions: diff --git a/.luarc.json b/.luarc.json index c0448ca..78a7d8a 100644 --- a/.luarc.json +++ b/.luarc.json @@ -4,7 +4,8 @@ "pathStrict": true }, "workspace": { - "checkThirdParty": false + "checkThirdParty": false, + "ignoreDir": [".direnv"] }, "type": { "checkTableShape": true diff --git a/.styluaignore b/.styluaignore new file mode 100644 index 0000000..9b42106 --- /dev/null +++ b/.styluaignore @@ -0,0 +1 @@ +.direnv/ diff --git a/README.md b/README.md index 02e14d7..771c6a7 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,8 @@ A refined [oil.nvim](https://github.com/stevearc/oil.nvim) — edit your filesystem like a buffer, with bug fixes and community PRs that haven't landed upstream. -[Upstream tracker](doc/upstream.md) — full PR and issue triage against [oil.nvim](https://github.com/stevearc/oil.nvim) +[Upstream tracker](doc/upstream.md) — full PR and issue triage against +[oil.nvim](https://github.com/stevearc/oil.nvim) https://user-images.githubusercontent.com/506791/209727111-6b4a11f4-634a-4efa-9461-80e9717cea94.mp4 diff --git a/scripts/ci.sh b/scripts/ci.sh new file mode 100755 index 0000000..3e9356d --- /dev/null +++ b/scripts/ci.sh @@ -0,0 +1,7 @@ +#!/bin/sh +set -eu + +nix develop --command stylua --check lua spec +git ls-files '*.lua' | xargs nix develop --command selene --display-style quiet +nix develop --command prettier --check . +nix develop --command busted