Skip to content

docs: add contributing guide - #7

Merged
uniqueg merged 2 commits into
mainfrom
docs/contributing-guide
Oct 27, 2026
Merged

uniqueg merged 2 commits into
mainfrom
docs/contributing-guide

Conversation

@uniqueg

@uniqueg uniqueg commented Oct 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds a short, generic contributing guide for the organisation. It harmonises the guides of FOCA (CONTRIBUTING.md, docs/contributing.md), Cloud Registry, cloud-registry-ui and the contributor guide on elixir-cloud-aai.github.io, and covers:

  • issues first, issues small enough for one pull request;
  • feature branches and draft pull requests against dev (the default branch in repositories without dev);
  • one issue per pull request, which closes it completely (Closes #<issue>);
  • tests with every change, green CI;
  • automated reviews (Sourcery, GitHub Copilot), squash merges;
  • Conventional Commits for commits and pull request titles (subject of at most 50 characters, imperative mood, no trailing period);
  • repositories add their specifics in their own docs, with links to FOCA's and Cloud Registry's.

Closes #2

Verification

  • npx [email protected] CONTRIBUTING.md: 0 errors.
  • Checked each point against the guides listed above.
  • Review: light lane (quality reviewer + Sourcery, no adversarial review, per the user). Quality reviewer findings fixed in follow-up commits, except those declined below.
  • Sourcery: two findings: the private repository (answered, see the note below) and the squash-commit sentence (declined below); both resolved.
  • No CI workflows in this repository.

Declined review findings

  • Require a human review of every pull request, as FOCA's docs do (medium): kept Cloud Registry's newer wording (automated reviews of every pull request, a maintainer reviews external contributions), as Cloud Registry is the template for the org's apps. Easy to change if you want the stricter rule org-wide.
  • Sourcery: drop or qualify "the maintainers use the title of a pull request as the commit message" (low): kept, as it is the documented practice in FOCA and Cloud Registry, and the maintainers do the squash merge.
  • Commit trailer model name (low): matches this session's attribution setting.

Open questions

None.

Notes for the maintainer

  • The links to the code of conduct and the security policy are absolute links to this repository, so merge those pull requests first.
  • Repository guides that differ (e.g. cloud-registry-ui's, which branches from main and links to a missing commit guide) could be removed or aligned in follow-ups.
  • GitHub uses the files of this repository as org defaults only while it is public; it is still private.

🤖 Generated with Claude Code

uniqueg and others added 2 commits October 27, 2026 03:37
Add a short, generic contributing guide for the organisation that
harmonises the guides of FOCA, Cloud Registry, cloud-components and
cloud-registry-ui: issues first, one issue per pull request, feature
branches and draft pull requests against dev, Conventional Commits,
tests and green CI, automated reviews and squash merges. Repositories
add their specifics in their own docs.

Closes #2

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Use absolute links to the code of conduct and security policy, so that
they work wherever GitHub shows the default guide, state the branch rule
once (dev, or the default branch without dev), mention forks, and avoid
promising auto-closed issues and title-based squash commits.

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

sourcery-ai Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Reviewer's Guide

Introduces a 73-line organisation-wide CONTRIBUTING.md that standardises issue planning, branch and pull-request practices, verification, review and merge expectations, commit conventions, and repository-specific documentation while linking to related community and policy resources.

Flow diagram for the contribution workflow

flowchart TD
    Issue["Open or find a focused issue"] --> Branch["Create a feature branch"]
    Branch --> Draft["Open a draft pull request against dev or the default branch"]
    Draft --> Change["Implement the change and update tests and documentation"]
    Change --> CI["CI passes"]
    CI --> Review["Automated reviewers and maintainer review contributions"]
    Review --> Resolve["Address every review comment"]
    Resolve --> Merge["Maintainers squash-merge the pull request"]
Loading

File-Level Changes

Change Details Files
Add an organisation-wide contributing guide for repositories without project-specific guidance.
  • Define issue-first planning and focused issue scope.
  • Document feature-branch and draft pull-request workflow, including development/default branch handling.
  • Require one issue per pull request, complete issue closure, tests, documentation, and passing CI.
  • Describe automated and maintainer review expectations, comment resolution, and squash merges.
  • Standardise Conventional Commits and pull-request titles with subject-length and imperative-mood rules.
  • Explain repository-specific overrides and link to representative contributing guides.
  • Link to the organisation’s code of conduct, security policy, and community contributor guide.
CONTRIBUTING.md

Assessment against linked issues

Issue Objective Addressed Explanation
#2 Add a concise, generic organization-wide CONTRIBUTING.md covering issue-first work, pull-request workflow, commit conventions, testing and CI, automated reviews, squash merges, and repository-specific guidance. ✅
#2 Make GitHub show the guide by default for organization repositories that do not have their own contributing guide. ❌ The guide is added to the .github repository, but the PR notes that repository is private. GitHub uses its files as organization defaults only while it is public, so the guide will not currently be shown as an org-wide default.

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

@uniqueg
uniqueg marked this pull request as ready for review October 27, 2026 03:30

@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 2 issues

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

## Individual Comments

### Comment 1
<location path="CONTRIBUTING.md" line_range="6" />
<code_context>
+Thanks for your interest in the projects of
+[ELIXIR Cloud & AAI](https://github.com/elixir-cloud-aai)! Bug reports,
+feature requests, discussions, documentation and code are all welcome. This
+guide applies to every repository that has no contributing guide of its own;
+the [contributor guide of ELIXIR
+On-Cloud](https://elixir-cloud-aai.github.io/contribute/) describes how to
</code_context>
<issue_to_address>
**Organization-wide instructions stay hidden**

When the `.github` repository remains private and a repository has no contributing guide of its own, gitHub does not use files from a private `.github` repository as organization defaults, so contributors to those repositories do not see this guide despite its claim that it applies to them.

Make the `.github` repository public or provide the guide through a channel that reaches repositories without their own contributing guide.

Also at `CONTRIBUTING.md:12`, `CONTRIBUTING.md:14`.
</issue_to_address>

### Comment 2
<location path="CONTRIBUTING.md" line_range="53-54" />
<code_context>
+Commit messages and pull request titles follow the
+[Conventional Commits](https://www.conventionalcommits.org/) specification;
+the maintainers use the title of a pull request as the commit message of its
+squash merge:
+
+```text
+<type>[(<scope>)][!]: <description>
</code_context>
<issue_to_address>
**Squash commit titles are overstated**

the guide says maintainers use the pull request title as the squash-merge commit message, so contributors are told to expect title-based commits even though the stated intent is to avoid promising that behavior.

Remove the title-to-commit-message claim, or qualify it to reflect the repositories where that is actually the squash-merge practice.
</issue_to_address>

Sourcery assessment

Approval pending. 1 finding to address first.

Blocking findings: CONTRIBUTING.md:6

Comment thread CONTRIBUTING.md Resolved
Comment thread CONTRIBUTING.md Resolved
@uniqueg
uniqueg merged commit 3807c00 into main Oct 27, 2026
1 check passed
@uniqueg
uniqueg deleted the docs/contributing-guide branch October 27, 2026 09:45
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.

Add org-wide contributing guide

1 participant