Skip to content

Add Npgsql and EFCore.PG as git submodules#458

Merged
roji merged 1 commit intonpgsql:mainfrom
roji:submodules
Apr 21, 2026
Merged

Add Npgsql and EFCore.PG as git submodules#458
roji merged 1 commit intonpgsql:mainfrom
roji:submodules

Conversation

@roji
Copy link
Copy Markdown
Member

@roji roji commented Apr 21, 2026

Replace separate checkout steps in the build workflow with git submodules pointing to the latest stable releases (Npgsql v10.0.2, EFCore.PG v10.0.1).

  • Add Npgsql and EFCore.PG as git submodules
  • Update workflow checkout to use submodules: true
  • Remove separate Checkout Npgsql/EFCore.PG workflow steps
  • Remove repository_dispatch trigger (no longer needed)
  • Remove /Npgsql and /EFCore.PG from .gitignore

Replace separate checkout steps in the build workflow with git submodules
pointing to the latest stable releases (Npgsql v10.0.2, EFCore.PG v10.0.1).

- Add Npgsql and EFCore.PG as git submodules
- Update workflow checkout to use submodules: true
- Remove separate Checkout Npgsql/EFCore.PG workflow steps
- Remove repository_dispatch trigger (no longer needed)
- Remove /Npgsql and /EFCore.PG from .gitignore

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 21, 2026 08:42
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the documentation build pipeline from separately checking out the Npgsql/EFCore.PG repositories during CI to using git submodules in the repo instead.

Changes:

  • Add Npgsql and EFCore.PG as git submodules via a new .gitmodules file.
  • Update the documentation build workflow to checkout submodules and remove the dedicated checkout steps for Npgsql/EFCore.PG.
  • Remove /Npgsql and /EFCore.PG from .gitignore and drop the repository_dispatch trigger from the workflow.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

File Description
.gitmodules Declares Npgsql and EFCore.PG as submodules under the repo root.
.gitignore Stops ignoring the submodule directories so they can be present in the working tree.
.github/workflows/build-documentation.yml Switches to submodules: true, removes separate checkouts, and removes repository_dispatch trigger.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/build-documentation.yml
Comment thread .github/workflows/build-documentation.yml
Comment thread .gitmodules
Comment on lines +3 to +6
url = https://github.com/npgsql/npgsql.git
[submodule "EFCore.PG"]
path = EFCore.PG
url = https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL.git
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

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

Building the docs runs dotnet build inside the submodule working trees, which will typically produce untracked bin//obj/ and leave the submodules in a dirty state in local dev checkouts. Consider adding ignore = dirty (or ignore = untracked) for these submodules in .gitmodules to reduce local workflow friction.

Suggested change
url = https://github.com/npgsql/npgsql.git
[submodule "EFCore.PG"]
path = EFCore.PG
url = https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL.git
url = https://github.com/npgsql/npgsql.git
ignore = dirty
[submodule "EFCore.PG"]
path = EFCore.PG
url = https://github.com/npgsql/Npgsql.EntityFrameworkCore.PostgreSQL.git
ignore = dirty

Copilot uses AI. Check for mistakes.
@roji roji merged commit cedaeb4 into npgsql:main Apr 21, 2026
6 checks passed
@roji roji deleted the submodules branch April 21, 2026 09:14
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.

2 participants