Pull Request and Maintainer Workflow
This page collects maintainer-facing workflow notes for landing patches and pull requests. Contributor-facing setup and submission notes live in Contributing workflow.
The canonical PostGIS source repository is https://gitea.osgeo.org/postgis/postgis. GitHub, GitLab, Codeberg, and gitea.com repositories are mirrors for contributor convenience. Mirror pull requests are valid contribution surfaces, but the merge target and final branch history should be reconstructed from the canonical Gitea branch.
The public website states the same rule: changes pushed to OSGeo are replicated to mirror repositories, and changes committed directly to mirrors are overwritten on the next sync from OSGeo.
Treat forge-generated merge refs, such as GitHub pull request merge refs, as test artifacts. They are useful for inspecting CI failures, but should not be used as the base for repair branches or as upstream history.
Some umbrella projects and components have their own upstream repositories. Route new work there unless the target is an explicit in-tree backpatch:
| Project or component | Upstream repository |
|---|---|
| Docker PostGIS | https://github.com/postgis/docker-postgis |
| PostGIS Java | https://github.com/postgis/postgis-java |
| PostGIS Workshop | https://github.com/postgis/postgis-workshops |
| H3-pg | https://github.com/postgis/h3-pg |
address_standardizer |
https://github.com/postgis/address_standardizer |
postgis_tiger_geocoder |
https://git.osgeo.org/gitea/postgis/postgis_tiger_geocoder |
When old Trac wiki pages contain backlog, examples, or design notes for a split component, do not carry that material into core PostGIS developer docs only because it was historically on the PostGIS wiki. Check the current component repository first. Completed or superseded ideas can stay as historical Trac context; still-relevant component work belongs as issues, design notes, or documentation in that component repository.
RFC-5, published at https://postgis.net/development/rfcs/rfc05/, records the
core contributor guideline for commit practice, Trac references, NEWS, code
provenance, and legal review. Use Governance notes and
PostGIS project inventory for current PSC
process, repository routing, and service ownership.
Write access to the canonical repository is granted by the Project Steering Committee. Core contributors are expected to understand the contribution process, stay subscribed to the development mailing list, and support the code they commit or delegate that support.
Core contributors are also responsible for provenance checks. Do not commit code unless the contributor has the right to submit it under the project license. Preserve existing copyright and license headers, mark code derived from other projects, and discuss unusual licensing situations with the PSC or OSGeo legal counsel before committing.
For the maintained commit-message, branch-target, authorship, and post-push
rules distilled from RFC-5, see Commit and branch guidelines.
For NEWS wording, prerelease sections, release cleanup, and checker rules,
see NEWS entries. For supported-branch fix propagation, provenance,
branch-local NEWS, and milestone updates, see
Backpatching fixes.
For labels, milestones, draft state, and mirror metadata on pull requests, see
Pull request metadata.
Before editing a public branch, public pull request body, or Trac ticket state, read the current source of truth:
CONTRIBUTING.md, Coding style, and the relevant page under this directory.- The Trac ticket, including all comments, attachments, and linked context.
- The pull request description, commits, diff, review threads, and CI state.
- The target branch’s
Version.configand topNEWSsection when the change may be backpatched or release-note-worthy.
Later ticket comments often refine the real scope. Do not classify a ticket from the opening summary alone when later discussion names a concrete missing API, behavior change, or testable failure.
When a mirror pull request, mailing-list patch, or Trac ticket needs contributor follow-up instead of maintainer-side branch repair, point the contributor to the specific workflow section rather than sending them back to this maintainer page:
- Contributing workflow for Trac tickets, mirror pull requests, mailing lists, chat, and security reports.
- First contribution path for a small-patch checklist from fork through focused validation.
- Development environments and Testing and debugging for local build and regression setup.
- Release and upgrade rules when a proposed change affects SQL API compatibility, extension upgrades, dependency policy, or backpatch scope.
Check inline review threads, not only aggregate review status. Each active thread should be fixed, resolved, or explicitly classified before calling the branch ready. Bot reviews are part of this readback when they are present.
After pushing a branch update, re-read the remote pull request head SHA, body, merge state, checks, and active review threads. A green check belongs to the head commit that produced it, not to a later force-push.
When the contributor-credits Woodpecker workflow fails, read the failing child
step log before changing credits. The workflow runs:
make check-contributor-credits
The Core Contributors Present and Core Contributors Past lists are rosters
of project committers, not general acknowledgments. Credit non-committer
reporters and patch authors under Other Contributors → Individual Contributors; keep organizations under Corporate Sponsors.
The check compares doc/credits.xml with Git authors, co-authors, and
unreleased NEWS attributions after applying .mailmap. It checks that every
Git author and NEWS name is credited, that people and organizations are not
duplicated, and that the Individual Contributors and Corporate Sponsors lists
are sorted (the curated GitHub-handle prefix and core-team lists are exempt).
Run make check-contributor-credits to check the current tree. To apply the
checker’s supported ordering and duplicate fixes, run
make fix-contributor-credits, or
python3 utils/docs/check_contributor_credits.py --repo . --fix.
If it reports a missing person, either add that person’s canonical display
name to doc/credits.xml or normalize an alias in .mailmap.
Keep .mailmap canonical names to person names only. In NEWS attribution
parentheses, comma-separated affiliations such as Name, Organization are
allowed when the organization is listed under the Corporate Sponsors section
of doc/credits.xml. If the checker reports the organization as a missing
contributor, add the organization to that corporate list rather than adding it
to the individual contributor list. Human reporters and patch authors still
belong in the individual contributor credits.
The maintained commit-message and branch-target rules live in Commit and branch guidelines. The short summary below is for common pull request landings.
For a single-commit pull request that can be represented cleanly on the target
branch, land one normal single-parent commit with the original author. Use a
descriptive subject taken from the user-visible change, ticket scope, or NEWS
wording.
Use parser-friendly tracker trailers in the pull request body:
Closes #5638
Closes https://github.com/postgis/postgis/pull/925
Use a separate Closes #NNNN line for each Trac ticket whose reported defect
the pull request fixes, including on master. Close the ticket when that pull
request merges, even if backpatches are pending. Use References #NNNN when
the change leaves part or all of the reported defect unfixed. Use full URLs
for GitHub or Gitea pull requests and issues.
When the landing method does not copy the pull request body into the resulting
commit message, preserve the applicable bare Trac trailers in that commit
message. Keep one Closes #NNNN line per fixed ticket in the pull request body,
and close each ticket when the change merges to master, even when backpatches
are still pending.
Do not add a redundant merge commit only to say Merge PR #NNN when the pull
request URL is already recorded in a Closes trailer. Use merge commits only
when preserving meaningful multi-commit topology, recording a real branch merge,
or following an explicit maintainer request.
Keep validation logs, review summaries, and handoff notes out of commit messages. Report them in the pull request or maintainer handoff instead.
In pull request bodies and forge comments, write Trac ticket references as
clickable links such as https://trac.osgeo.org/postgis/ticket/5638. In tracker
trailers, use bare #NNNN so Trac can act on the reference when the pull
request merges.
Draft public comments, pull request descriptions, and ticket updates before posting. Re-read the posted text after editing so formatting, links, and tracker references match what reviewers will see.
Update NEWS for user-visible changes, release-note-worthy bug fixes, security
fixes, and ticketed behavior changes. On master, place the note under the top
unreleased section and the appropriate category. On stable branches, match that
branch’s existing heading names and release section.
In NEWS, use #NNNN for Trac tickets, GH-NNN for GitHub pull requests, and
GT-NNN for Gitea merge requests. Outside NEWS, prefer full forge URLs for
GitHub and Gitea references so they cannot be confused with Trac ticket numbers.
Collect bug fixes merged to master in one backpatch pull request per
supported stable branch where they apply. Before backpatching, confirm the
target release line is open in Version.config and NEWS. Stable branches
normally receive bug fixes, not new features. End of life branches should not
receive new work without explicit release-manager direction.
Use NEWS entries for wording, credit, release cleanup, and checker
rules. Use Backpatching fixes for the two-pass branch scan,
one-to-one commit provenance, branch-local NEWS, and ticket milestone
updates.
During pre-release code freeze, restrict commits to bug fixes unless the PSC or release manager approves otherwise. Significant changes, especially backward incompatibilities, should be discussed on the development mailing list before implementation; larger changes may require an RFC.
Use service CLIs as operational helpers, not as documentation sources of secrets. Never commit or paste personal tokens into repository files, tickets, or pull requests.
For OSGeo Gitea, Debian’s Gitea CLI package provides the tea-cli command.
Prefer machine-readable output when inspecting branches, pull requests, and
repository metadata.
For Weblate repository maintenance, use wlc with the PostGIS Manual component
postgis/postgis-manual and API root https://weblate.osgeo.org/api/. Lock the
component before changing Weblate repository state, commit pending translation
work before merge or reset operations, and unlock when the repository is clean.
For website maintenance, use the OSGeo Gitea postgis/postgis.net repository.
The site is a Hugo project; update release pointers and news there during
release work, run make check, and do not edit the vendored theme. See
PostGIS website maintenance.