Skip to content

A template for Conduit connectors

Notifications You must be signed in to change notification settings

ConduitIO/conduit-connector-template

Repository files navigation

Conduit Connector Template

This is a template project for building Conduit connectors in Go. It makes it possible to start working on a Conduit connector in a matter of seconds.

Quick start

  1. Click Use this template and clone your new repository.
  2. Initialize the repository using setup.sh and commit your changes.
    ./setup.sh github.com/myusername/conduit-connector-myconnector
    git add -A
    git commit -m "initialize repository"
  3. Set up automatic Dependabot PR merges.

With that, you're all set up and ready to start working on your connector! As a next step, we recommend that you check out the Conduit Connector SDK.

What's included?

Automatically merging Dependabot PRs

Note

This applies only to public connector repositories, as branch protection rules are not enforced in private repositories.

The template makes it simple to keep your connector up-to-date using automatic merging of Dependabot PRs. To make use of this setup, you need to adjust some repository settings.

  1. Navigate to Settings -> General and allow auto-merge of PRs.

    Allow auto-merge

  2. Navigate to Settings -> Branches and add a branch protection rule.

    Add branch protection rule

  3. Create a rule for branch main that requires status checks build and golangci-lint.

    Status checks

Recommended repository settings

  • Allow squash merging only.
  • Always suggest updating pull request branches.
  • Automatically delete head branches.
  • Branch protection rules on branch main (only in public repositories):
    • Require a pull request before merging.
    • Require approvals.
    • Require status checks build and golangci-lint.
    • Require branches to be up to date before merging.
    • Require conversation resolution before merging.
    • Do not allow bypassing the above settings.

About

A template for Conduit connectors

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published