diff --git a/.codacy.yml b/.codacy.yml index c465637..7fa30e2 100644 --- a/.codacy.yml +++ b/.codacy.yml @@ -10,3 +10,10 @@ exclude_paths: - "translations/**" - ".venv/**" - "eslint.config.mjs" + # CSS is excluded from Codacy: its server-side Stylelint profile is + # misconfigured (it references non-existent "scss_*"-prefixed rules, which + # fail to load and report as errors on line 1), and the remaining findings + # are pure style/notation preferences that conflict with our actual CSS + # formatter (Prettier, run via pre-commit) and with deliberate + # browser-compatibility choices (rgba()/max-width over modern syntax). + - "**/*.css" diff --git a/.github/workflows/vibe-coded.yml b/.github/workflows/vibe-coded.yml new file mode 100644 index 0000000..3e8cb2a --- /dev/null +++ b/.github/workflows/vibe-coded.yml @@ -0,0 +1,46 @@ +name: Vibe Coded Badge + +on: + push: + branches: [main] + workflow_dispatch: {} + +permissions: + contents: read + +concurrency: + group: vibe-coded-${{ github.ref }} + cancel-in-progress: true + +jobs: + update-badge: + name: Update vibe-coded badge + runs-on: ubuntu-latest + # The action itself pushes the README update; skip those commits so the + # workflow does not retrigger itself in a loop. + if: "!contains(github.event.head_commit.message, '[skip vibe-badge]')" + permissions: + contents: write + steps: + - # Full history is required so the action can classify every commit. + # Check out with VIBE_BADGE_TOKEN (a PAT) so the badge commit can be + # pushed past branch protection on main; the default GITHUB_TOKEN is + # rejected by the protected branch. Falls back to GITHUB_TOKEN if the + # secret is unset (push will then be skipped, not fail the run). + name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.VIBE_BADGE_TOKEN || secrets.GITHUB_TOKEN }} + persist-credentials: true + + - # Recompute the AI-authored commit percentage and rewrite the badge in + # README.md. badge-style is flat-square to match the other README + # badges (the social ones excepted, which keep style=social). + name: Update badge + uses: ai-ecoverse/vibe-coded-badge-action@c6875e7a00b5fa208aef24a2e083ccbe13fa870d # main + with: + badge-style: flat-square + badge-color: ff69b4 + badge-text: Vibe_Coded + commit-message: "chore: update vibe-coded badge [skip vibe-badge]" diff --git a/README.md b/README.md index 1e361c1..04f5dfc 100644 --- a/README.md +++ b/README.md @@ -5,15 +5,22 @@
@@ -154,55 +161,55 @@ Summary: this project exposes many status and quality badges (CI, linting, cover
### 🏗️ 1. Build & Test Status
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/actions/workflows/ci.yml?query=branch%3Amain)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/actions/workflows/i18n.yml?query=branch%3Amain)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/actions/workflows/lint.yml?query=branch%3Amain)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/actions/workflows/docs.yml?query=branch%3Amain)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/actions/workflows/bandit-sarif.yml?query=branch%3Amain)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/actions/workflows/ci.yml?query=branch%3Amain)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/actions/workflows/i18n.yml?query=branch%3Amain)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/actions/workflows/lint.yml?query=branch%3Amain)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/actions/workflows/docs.yml?query=branch%3Amain)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/actions/workflows/bandit-sarif.yml?query=branch%3Amain)
### 🧪 2. Code Quality & Formatting
-[](https://github.com/psf/black)
-[](https://pycqa.github.io/isort/)
-[](https://github.com/prettier/prettier)
-[](https://pre-commit.com/)
-[](https://app.codacy.com/gh/Ajimaru/OctoPrint-LogMonitor/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
-[](https://codecov.io/gh/Ajimaru/OctoPrint-LogMonitor)
-[](https://www.pylint.org/)
-[](https://bandit.readthedocs.io/en/latest/)
+[](https://github.com/psf/black)
+[](https://pycqa.github.io/isort/)
+[](https://github.com/prettier/prettier)
+[](https://pre-commit.com/)
+[](https://app.codacy.com/gh/Ajimaru/OctoPrint-LogMonitor/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
+[](https://codecov.io/gh/Ajimaru/OctoPrint-LogMonitor)
+[](https://www.pylint.org/)
+[](https://bandit.readthedocs.io/en/latest/)
[](https://depfu.com)
[](https://snyk.io/test/github/Ajimaru/OctoPrint-LogMonitor)
### 🔄 3. CI/CD & Release
-[](https://semver.org/)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/releases)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/releases/latest)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/releases)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/releases)
-[](https://python.org)
-[](https://octoprint.org)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/graphs/commit-activity)
+[](https://semver.org/)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/releases)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/releases/latest)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/releases)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/releases)
+[](https://python.org)
+[](https://octoprint.org)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/graphs/commit-activity)
### 📊 4. Repository Activity
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/issues?q=is%3Aissue%20state%3Aopen)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/issues?q=is%3Aissue%20state%3Aclosed)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/pulls?q=is%3Apr+is%3Aopen)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/pulls?q=is%3Apr+is%3Aclosed)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/commits/main)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/graphs/commit-activity)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/graphs/contributors)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/issues?q=is%3Aissue%20state%3Aopen)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/issues?q=is%3Aissue%20state%3Aclosed)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/pulls?q=is%3Apr+is%3Aopen)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/pulls?q=is%3Apr+is%3Aclosed)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/commits/main)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/graphs/commit-activity)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/graphs/contributors)
### 🧾 5. Metadata
-
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/blob/main/SECURITY.md)
-[](https://app.snyk.io)
-
-
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/blob/main/LICENSE)
-[](https://github.com/Ajimaru/OctoPrint-LogMonitor/pulls)
+
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/blob/main/SECURITY.md)
+[](https://app.snyk.io)
+
+
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/blob/main/LICENSE)
+[](https://github.com/Ajimaru/OctoPrint-LogMonitor/pulls)