ci: scripts and format (#68)

* 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
This commit is contained in:
Barrett Ruth 2026-03-04 13:49:06 -05:00 committed by GitHub
parent 9b656387fb
commit aee5ea10c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 13 additions and 3 deletions

View file

@ -2,7 +2,7 @@ name: upstream digest
on:
schedule:
- cron: "0 9 * * 1"
- cron: '0 9 * * 1'
workflow_dispatch:
permissions:

View file

@ -4,7 +4,8 @@
"pathStrict": true
},
"workspace": {
"checkThirdParty": false
"checkThirdParty": false,
"ignoreDir": [".direnv"]
},
"type": {
"checkTableShape": true

1
.styluaignore Normal file
View file

@ -0,0 +1 @@
.direnv/

View file

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

7
scripts/ci.sh Executable file
View file

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