Skip to content
Snippets Groups Projects
Commit 8f1b490f authored by Martyn Welch's avatar Martyn Welch
Browse files

Add metadata check script

parent a8cfc47b
No related merge requests found
Pipeline #724075 passed with warnings
......@@ -25,6 +25,19 @@ test-urls:
allow_failure: true
needs: []
test-metadata:
image: debian:bookworm-slim
stage: test
tags:
- lightweight
before_script:
- apt update && apt install -y --no-install-recommends
python3
python3-markdown
python3-git
script:
- scripts/check_metadata.py .
test-images:
image: debian:bookworm-slim
stage: test
......
#!/usr/bin/env python3
# Check metadata from changed files.
import markdown
import os
import re
import sys
from git import Repo
repo = Repo(sys.argv[1])
print("HEAD commit message:")
print(repo.head.commit.message)
sys.exit(0)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment