Compare commits
4 Commits
84f3becbd1
...
c74de36bf1
| Author | SHA1 | Date | |
|---|---|---|---|
| c74de36bf1 | |||
| 177dcb40e9 | |||
| 7d12a41b48 | |||
|
|
3d41e7f337 |
12
content/post/2026-09-21-hola-mundo.de.md
Normal file
12
content/post/2026-09-21-hola-mundo.de.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
title: Hallo, Welt!
|
||||||
|
date: 2026-09-21 10:19:00+02:00
|
||||||
|
lang: de
|
||||||
|
manual_translation: false
|
||||||
|
categories:
|
||||||
|
- Cultura
|
||||||
|
image: /uploads/pxl_20260326_120256076.jpg
|
||||||
|
translated_from: es
|
||||||
|
---
|
||||||
|
|
||||||
|
Hallo! Dies ist ein Blog-Post.
|
||||||
12
content/post/2026-09-21-hola-mundo.pt-br.md
Normal file
12
content/post/2026-09-21-hola-mundo.pt-br.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
title: Oi Mundo!
|
||||||
|
date: 2026-09-21 10:19:00+02:00
|
||||||
|
lang: pt-br
|
||||||
|
manual_translation: false
|
||||||
|
categories:
|
||||||
|
- Cultura
|
||||||
|
image: /uploads/pxl_20260326_120256076.jpg
|
||||||
|
translated_from: es
|
||||||
|
---
|
||||||
|
|
||||||
|
Olá! Esta é uma entrada de blog.
|
||||||
@ -117,10 +117,15 @@ def changed_markdown() -> list[Path]:
|
|||||||
"""Content files touched by the pushed commits."""
|
"""Content files touched by the pushed commits."""
|
||||||
head = os.environ.get("CI_COMMIT_SHA", "HEAD")
|
head = os.environ.get("CI_COMMIT_SHA", "HEAD")
|
||||||
prev = os.environ.get("CI_PREV_COMMIT_SHA", "")
|
prev = os.environ.get("CI_PREV_COMMIT_SHA", "")
|
||||||
|
# --no-renames matters: git reports a renamed file as R, which --diff-filter=AM
|
||||||
|
# drops, so renaming a post made it invisible here and it silently kept the
|
||||||
|
# siblings of its old name — or, for a post that never had any, got none.
|
||||||
|
# Without rename detection the same change arrives as D + A, and the A is a
|
||||||
|
# translation source like any other.
|
||||||
if prev and not set(prev) <= {"0"}:
|
if prev and not set(prev) <= {"0"}:
|
||||||
out = run("git", "diff", "--name-only", "--diff-filter=AM", prev, head)
|
out = run("git", "diff", "--name-only", "--no-renames", "--diff-filter=AM", prev, head)
|
||||||
elif run("git", "rev-list", "--count", "HEAD") != "1":
|
elif run("git", "rev-list", "--count", "HEAD") != "1":
|
||||||
out = run("git", "diff", "--name-only", "--diff-filter=AM", "HEAD~1", "HEAD")
|
out = run("git", "diff", "--name-only", "--no-renames", "--diff-filter=AM", "HEAD~1", "HEAD")
|
||||||
else: # first commit in the repo
|
else: # first commit in the repo
|
||||||
out = run("git", "ls-files")
|
out = run("git", "ls-files")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user