mirror of
https://github.com/storytold/autocraft.git
synced 2026-11-24 16:31:06 +01:00
Lint model patches before the push: store the fix-up and CI-fix patch, queue the lint task, collect it through a lint Plan action (fold format, retry with findings, requeue once)
This commit is contained in:
1 parent
2b183292ce
commit
6da40dba4e
24 files changed
+331
-51
No files matched your search
+2
-2
@@ -9,8 +9,8 @@ import { ORG } from "../act/templates.ts";
|
||||
import { connect } from "../db.ts";
|
||||
import type { Grant, Guarded, GuardedItem, GuardedRepo } from "../core/guard.ts";
|
||||
|
||||
/** The PR steps that push to a contributor's branch or ask on the PR where it is closed to us. */
|
||||
export type AskKind = "fixup" | "conflict" | "cifix";
|
||||
/** The PR steps that push to a contributor's branch or ask on the PR where it is closed to us (`lint`: the collect step of a stored patch). */
|
||||
export type AskKind = "fixup" | "conflict" | "cifix" | "lint";
|
||||
/** What a comment write takes: a PR step's grant for its own kinds, or an item or repo grant (never a merge or CI grant). */
|
||||
export type CommentGrant = Guarded<AskKind> | GuardedItem | GuardedRepo;
|
||||
import type { Exec, ExecResult, Git } from "../fixup/git.ts";
|
||||
|
||||
Reference in new issue
Block a user