From 8176a628859f20966c2af78f553db533cff6e52d Mon Sep 17 00:00:00 2001 From: kireto Date: Thu, 6 Aug 2026 09:23:29 +0000 Subject: [PATCH] GRM-159: fix: move StartLimit to [Unit] and make prune timer reload conditional Co-authored-by: kireto --- .vale/styles/Google/OxfordComma.yml | 29 ++++++++++++++----- ansible/roles/gitea_runner/tasks/prune.yml | 3 ++ ansible/roles/gitea_runner/tasks/service.yml | 15 ++++++++++ .../templates/gitea-runner-user.service.j2 | 4 +-- pyproject.toml | 1 + 5 files changed, 42 insertions(+), 10 deletions(-) diff --git a/.vale/styles/Google/OxfordComma.yml b/.vale/styles/Google/OxfordComma.yml index a3ef78b..c4feb00 100644 --- a/.vale/styles/Google/OxfordComma.yml +++ b/.vale/styles/Google/OxfordComma.yml @@ -4,12 +4,25 @@ link: 'https://developers.google.com/style/commas' scope: sentence level: warning nonword: true -# List items may be several words long, not just one. Two guards keep the -# false-positive rate down: the item can't open with a clause-introducer -# (', which ...', ', specifically ...'), and neither item may contain an -# auxiliary verb, which is what separates a list from a compound predicate -# (', it has some downsides and is officially discouraged.'). The trailing -# anchor allows end-of-scope so list fragments ('Apples, pears or bananas') -# are still caught. +# List items may be several words long, not just one. Four guards keep the +# false-positive rate down: +# +# 1. The comma can't be the one closing a fronted subordinate clause +# ('When your alarm rings, you turn it off and tumble out of bed.') -- +# that comma separates clauses, not list items. Only the first comma of +# such a sentence is exempt, so 'When it rains, apples, pears or bananas +# get wet.' is still caught. +# 2. The item can't open with a clause-introducer (', which ...', +# ', specifically ...'). +# 3. The item can't open with a subject pronoun followed by a verb, which +# marks a compound predicate rather than a list ('..., you walk to the +# fridge and get a snack.'). A pronoun directly followed by 'and'/'or' +# is a real list item, so ', you and me.' still matches. +# 4. Neither item may contain an auxiliary verb, which is another compound +# predicate signal (', it has some downsides and is officially +# discouraged.'). +# +# The trailing anchor allows end-of-scope so list fragments ('Apples, pears +# or bananas') are still caught. tokens: - - ',\s(?!(?:which|who|whom|whose|that|where|when|while|because|since|although|though|if|unless|so|but|and|or|however|therefore|thus|specifically|especially|namely|then|take|see|note|consider|make|use|either|neither)\b)(?:(?!\b(?:is|are|was|were|has|have|had|be|been|being|will|would|can|could|should|may|might|must|do|does|did)\b)\w+ ){0,4}\w+ (?:and|or) (?:(?!\b(?:is|are|was|were|has|have|had|be|been|being|will|would|can|could|should|may|might|must|do|does|did)\b)\w+ ){0,4}\w+(?:[.?!]|$)' + - '(?