.gitea/workflows/ci.yaml carries prohibitions that nothing enforces. Two of
them are load-bearing, and both were reinforced by the edited trigger change:
the pull_requesttypes: list must keep edited — reverting it to ready_for_review or to the bare default silently restores the permanent
draft-skip, which is the exact regression that change fixed;
the job's if: guard must keep both clauses. Its own comment says
"Never drop it": the github.event_name != 'pull_request' half is what
stops the negation from also skipping pushes to the integration branch,
since a push event has no pull_request context.
Nothing reads this file. No suite under scripts/tests/ (or scripts/ in
gitdan-actions) parses it, so every one of these rules lives only as prose in
a comment. Per comments-are-not-exposition: if a comment asserts something,
the assertion belongs in a test — prose cannot fail, and a comment is not a
guard for future workers.
Why this is filed rather than fixed in the PR that found it
Surfaced by the review of daniel/gitdan-actions PR #18 (review 928) as a
non-blocking nit, and deliberately not ridden along: neither repo has any
suite that reads workflow YAML, so this is new machinery rather than a small
correction in a file already open. The reviewer's own estimate is ~10 lines.
Both repos have the same gap, with the same two prohibitions, so this is
filed in each rather than cross-referenced from one — a note in the other
repo's tracker is not somewhere anybody reads.
Acceptance criteria
A test asserts edited is present in the pull_requesttypes: list,
and fails if it is removed or replaced by ready_for_review.
A test asserts the if: guard retains both clauses.
Both are red-proven: demonstrated failing against a mutated workflow
before being wired in.
The suite is wired into the repo's standard gate, so it runs in CI
rather than on request.
Any comment whose warning is now enforced points at the test instead of
restating the rule at length.
References
daniel/gitdan-actions PR #18 / daniel/gitdan PR #92 — the edited swap
that reinforced both prohibitions.
daniel/emowheel commit 08da820 — the original derivation.
`.gitea/workflows/ci.yaml` carries prohibitions that nothing enforces. Two of
them are load-bearing, and both were reinforced by the `edited` trigger change:
- the `pull_request` `types:` list must keep `edited` — reverting it to
`ready_for_review` or to the bare default silently restores the permanent
draft-skip, which is the exact regression that change fixed;
- the job's `if:` guard must keep **both** clauses. Its own comment says
"Never drop it": the `github.event_name != 'pull_request'` half is what
stops the negation from also skipping pushes to the integration branch,
since a `push` event has no `pull_request` context.
Nothing reads this file. No suite under `scripts/tests/` (or `scripts/` in
gitdan-actions) parses it, so every one of these rules lives only as prose in
a comment. Per `comments-are-not-exposition`: if a comment asserts something,
the assertion belongs in a test — prose cannot fail, and a comment is not a
guard for future workers.
## Why this is filed rather than fixed in the PR that found it
Surfaced by the review of `daniel/gitdan-actions` PR #18 (review 928) as a
non-blocking nit, and deliberately not ridden along: neither repo has any
suite that reads workflow YAML, so this is new machinery rather than a small
correction in a file already open. The reviewer's own estimate is ~10 lines.
Both repos have the same gap, with the same two prohibitions, so this is
filed in each rather than cross-referenced from one — a note in the other
repo's tracker is not somewhere anybody reads.
## Acceptance criteria
- [ ] A test asserts `edited` is present in the `pull_request` `types:` list,
and fails if it is removed or replaced by `ready_for_review`.
- [ ] A test asserts the `if:` guard retains both clauses.
- [ ] Both are red-proven: demonstrated failing against a mutated workflow
before being wired in.
- [ ] The suite is wired into the repo's standard gate, so it runs in CI
rather than on request.
- [ ] Any comment whose warning is now enforced points at the test instead of
restating the rule at length.
## References
- `daniel/gitdan-actions` PR #18 / `daniel/gitdan` PR #92 — the `edited` swap
that reinforced both prohibitions.
- `daniel/emowheel` commit `08da820` — the original derivation.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
.gitea/workflows/ci.yamlcarries prohibitions that nothing enforces. Two ofthem are load-bearing, and both were reinforced by the
editedtrigger change:pull_requesttypes:list must keepedited— reverting it toready_for_reviewor to the bare default silently restores the permanentdraft-skip, which is the exact regression that change fixed;
if:guard must keep both clauses. Its own comment says"Never drop it": the
github.event_name != 'pull_request'half is whatstops the negation from also skipping pushes to the integration branch,
since a
pushevent has nopull_requestcontext.Nothing reads this file. No suite under
scripts/tests/(orscripts/ingitdan-actions) parses it, so every one of these rules lives only as prose in
a comment. Per
comments-are-not-exposition: if a comment asserts something,the assertion belongs in a test — prose cannot fail, and a comment is not a
guard for future workers.
Why this is filed rather than fixed in the PR that found it
Surfaced by the review of
daniel/gitdan-actionsPR #18 (review 928) as anon-blocking nit, and deliberately not ridden along: neither repo has any
suite that reads workflow YAML, so this is new machinery rather than a small
correction in a file already open. The reviewer's own estimate is ~10 lines.
Both repos have the same gap, with the same two prohibitions, so this is
filed in each rather than cross-referenced from one — a note in the other
repo's tracker is not somewhere anybody reads.
Acceptance criteria
editedis present in thepull_requesttypes:list,and fails if it is removed or replaced by
ready_for_review.if:guard retains both clauses.before being wired in.
rather than on request.
restating the rule at length.
References
daniel/gitdan-actionsPR #18 /daniel/gitdanPR #92 — theeditedswapthat reinforced both prohibitions.
daniel/emowheelcommit08da820— the original derivation.