Skip to content

chore: add CODEOWNERS, CITATION and Dependabot - #53

Merged
uniqueg merged 4 commits into
devfrom
chore/codeowners-citation-dependabot
Nov 6, 2026
Merged

uniqueg merged 4 commits into
devfrom
chore/codeowners-citation-dependabot

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Summary

Closes #48 (part of #51).

Light lane: metadata and configuration, plus a CI job without secrets or permissions.

How it was verified

  • cffconvert --validate -i CITATION.cff: valid (schema 1.2.0).
  • check-jsonschema --builtin-schema vendor.dependabot .github/dependabot.yml: ok.
  • actionlint .github/workflows/ci.yml: no findings.
  • CI on this PR: see the checks.

🤖 Generated with Claude Code

Summary by Sourcery

Add repository metadata and automated dependency maintenance while enforcing citation validation in CI.

New Features:

  • Add repository ownership and citation metadata through CODEOWNERS and CITATION.cff files.

Enhancements:

  • Expand Dependabot coverage to application and updater Python dependencies, GitHub Actions, and Docker base images with grouped monthly updates and compatibility exclusions.
  • Add citation metadata validation to the required CI gate.

CI:

  • Include a dedicated lint job that validates CITATION.cff and require it for the CI status gate.

Code owners, citation metadata (no version before the first release)
and Dependabot for the app's and the updater's packages, the base
images and the actions, as in the org's other repos. A Lint job
validates the citation metadata; more checks follow with #38.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

This PR adds maintainer ownership and pre-release citation metadata, configures grouped monthly Dependabot updates for application, updater, actions, and Docker dependencies with compatibility exclusions, and integrates citation validation into CI as a required gate and prerequisite for publishing.

Flow diagram for citation validation in CI

flowchart TD
    PR[Pull request or push to dev] --> CI[CI workflow]
    CI --> Lint[Lint job]
    Lint --> Validate[Validate citation metadata]
    Validate --> Gate[passed gate]
    Gate --> Publish[Publish and release jobs]
Loading

File-Level Changes

Change Details Files
Adds repository ownership and citation metadata for maintainership and release attribution.
  • Assigns all paths to the listed maintainers through CODEOWNERS.
  • Adds a Citation File Format 1.2.0 record with four contributors and intentionally omits pre-release version and DOI metadata.
.github/CODEOWNERS
CITATION.cff
Expands Dependabot coverage with grouped monthly updates routed to the development branch while preserving compatibility with the current FOCA/Python 3.9 test environment.
  • Adds pip monitoring for the application and updater, GitHub Actions monitoring, and Docker monitoring for both images.
  • Ignores FOCA and its coupled base-image updates, plus pytest 9 and coverage 7.11 incompatibilities.
  • Uses grouped update patterns and documents the target-branch and manual-update rationale.
.github/dependabot.yml
Introduces citation validation as a required CI check and includes it in downstream publishing and the overall CI gate.
  • Runs cffconvert 2.0.0 in an isolated pipx environment on Python 3.13.
  • Adds the lint job to publish dependencies and the final always-run gate.
  • Keeps the job secret-free with pinned checkout and setup actions.
.github/workflows/ci.yml

Possibly linked issues


Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

pytest 9 and coverage 7.11 need Python 3.10, but the tests run in the
FOCA 0.7 image with Python 3.9.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@codecov

codecov Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (cbbed0b) to head (e8c2ff0).

Additional details and impacted files
@@            Coverage Diff            @@
##               dev       #53   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines          669       669           
=========================================
  Hits           669       669           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@uniqueg
uniqueg marked this pull request as ready for review November 6, 2026 04:48
setuptools 82 has no pkg_resources, which connexion 2 of the FOCA 0.7
image imports, and 84 needs Python 3.10.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@sourcery-ai sourcery-ai 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.

Hey - I've found 1 issue

Prompt for AI Agents
Please address the comments from this code review:

## Individual Comments

### Comment 1
<location path=".github/dependabot.yml" line_range="13" />
<code_context>
+    directory: /
+    schedule:
+      interval: monthly
+    target-branch: dev
+    ignore:
+      # FOCA is bumped by hand, together with the base image (see the `docker`
</code_context>
<issue_to_address>
**Security updates skip CI**

When dependabot opens a security-update PR against the default branch `main`, the CI workflow only runs for pull requests targeting `dev`, so the PR receives no title check, tests, lint, or `passed` gate and can be merged without this repository’s validation.

Update the CI workflow to run its checks for security-update PRs targeting `main` as well as PRs targeting `dev`.

Also at `.github/dependabot.yml:4`, `.github/dependabot.yml:32`, `.github/dependabot.yml:43`, `.github/dependabot.yml:52`.
</issue_to_address>

Linked issues

#48 chore: add CODEOWNERS, CITATION and Dependabot · 4 of 4 met

# Requirement Status Notes
1 Add CODEOWNERS with * @uniqueg @akash2237778 and the cloud-registry header. ✅ Met .github/CODEOWNERS has the requested header and catch-all owners.
2 Add citation metadata with authors from the project history and README, and no version before the first release. ✅ Met CITATION.cff lists the authors and contains no version.
3 Configure monthly, grouped Dependabot updates targeting dev for the repository's ecosystems, adding pre-commit when it exists. ✅ Met The config covers pip for the app and updater, GitHub Actions, and Docker; no pre-commit configuration is present.
4 Have CI validate CITATION.cff. ✅ Met The Lint job runs cffconvert validation, and the job is included in the CI gate.

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: .github/dependabot.yml:13


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

Comment thread .github/dependabot.yml Resolved
sourcery-ai[bot]
sourcery-ai Bot previously approved these changes Nov 6, 2026

@sourcery-ai sourcery-ai 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.

Sourcery assessment

Approved.

@sourcery-ai
sourcery-ai Bot dismissed their stale review November 6, 2026 04:57

Sourcery withdrew this approval because the latest commits introduced blocking findings.

@uniqueg
uniqueg merged commit 40cfab0 into dev Nov 6, 2026
26 of 27 checks passed
@uniqueg
uniqueg deleted the chore/codeowners-citation-dependabot branch November 6, 2026 04:58
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.

chore: add CODEOWNERS, CITATION and Dependabot

1 participant