Skip to content

Fix publiccode.yml and add CI - #9

Open
bfabio wants to merge 2 commits into
IMIO:masterfrom
bfabio:publiccode
Open

Fix publiccode.yml and add CI#9
bfabio wants to merge 2 commits into
IMIO:masterfrom
bfabio:publiccode

Conversation

@bfabio

@bfabio bfabio commented Apr 29, 2026

Copy link
Copy Markdown

Summary by CodeRabbit

  • Chores
    • Implemented automated validation for project metadata configuration
    • Updated project information including regional codes and supported language details
    • Removed obsolete and empty fields from project configuration to improve clarity

@coderabbitai

coderabbitai Bot commented Apr 29, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Introduces a GitHub Actions CI workflow to validate publiccode.yml on changes, and updates the publiccode.yml manifest file with version correction, country code normalization, removal of empty fields, and cleanup of outdated entries.

Changes

Cohort / File(s) Summary
CI Workflow
.github/workflows/publiccodeyml-check.yml
New GitHub Actions workflow that runs italia/publiccode-parser-action to validate publiccode.yml on push and pull requests, configured with no-network mode and minimal permissions.
Manifest Updates
publiccode.yml
Updated version from 0.7 to 0, normalized country code from be to BE, removed empty videos and awards arrays from descriptions, deleted legal.repoOwner, cleaned up dependsOn fields, and updated localisation.availableLanguages to remove translation percentage notation.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 A workflow springs to life, so fine,
Publiccode manifest does align,
Empty arrays hopped away,
Version dance on display,
All tidy and clean—validation's divine! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Fix publiccode.yml and add CI' directly and accurately summarizes the two main changes: fixing the publiccode.yml manifest file and adding a new CI workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/publiccodeyml-check.yml:
- Line 7: The workflow path filter currently references
".github/workflows/publiccode.yml" which is incorrect; update the workflow
file's paths array entries that mention ".github/workflows/publiccode.yml" to
the correct ".github/workflows/publiccodeyml-check.yml" so changes to this
workflow itself will trigger the check; search for that string in the workflow
and replace it wherever used (e.g., the paths entry on lines referencing the old
filename) to ensure self-path triggering works.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 91a81d3a-ef65-4fa2-adb8-af3ebd476981

📥 Commits

Reviewing files that changed from the base of the PR and between 30f251e and 4a04d5d.

📒 Files selected for processing (2)
  • .github/workflows/publiccodeyml-check.yml
  • publiccode.yml

push:
paths:
- "publiccode.yml"
- ".github/workflows/publiccode.yml"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

# Confirm workflow file exists with this exact name
fd -a -p '.github/workflows/publiccodeyml-check.yml'

# Inspect configured workflow path filters
rg -n '^\s*-\s*"\.github/workflows/.*\.yml"' .github/workflows/publiccodeyml-check.yml

Repository: IMIO/buildout.pm.portal

Length of output: 158


🏁 Script executed:

# Check if publiccode.yml exists at repository root
fd -a -p 'publiccode.yml'

# View the full workflow file to understand its purpose
head -30 .github/workflows/publiccodeyml-check.yml

Repository: IMIO/buildout.pm.portal

Length of output: 716


Fix workflow self-path filter typo.

Lines 7 and 11 reference .github/workflows/publiccode.yml, which doesn't exist. The workflow file is .github/workflows/publiccodeyml-check.yml. As written, changes to this workflow alone won't trigger the validation check.

Proposed fix
 on:
   push:
     paths:
       - "publiccode.yml"
-      - ".github/workflows/publiccode.yml"
+      - ".github/workflows/publiccodeyml-check.yml"
   pull_request:
     paths:
       - "publiccode.yml"
-      - ".github/workflows/publiccode.yml"
+      - ".github/workflows/publiccodeyml-check.yml"
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/publiccodeyml-check.yml at line 7, The workflow path
filter currently references ".github/workflows/publiccode.yml" which is
incorrect; update the workflow file's paths array entries that mention
".github/workflows/publiccode.yml" to the correct
".github/workflows/publiccodeyml-check.yml" so changes to this workflow itself
will trigger the check; search for that string in the workflow and replace it
wherever used (e.g., the paths entry on lines referencing the old filename) to
ensure self-path triggering works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant