Skip to content

Add coderabbit config and clean up configuration#2

Open
adamwg wants to merge 3 commits intocrossplane:mainfrom
adamwg:awg/config
Open

Add coderabbit config and clean up configuration#2
adamwg wants to merge 3 commits intocrossplane:mainfrom
adamwg:awg/config

Conversation

@adamwg
Copy link
Copy Markdown
Member

@adamwg adamwg commented May 5, 2026

Description of your changes

Three small changes to our repository configuration:

  1. Add a coderabbit config based on Crossplane's. We'll get coderabbit running on this repository once this is merged.
  2. Remove the CODEOWNERS file. I realised we don't need this yet, since our branch protection rules already require an approval from someone with write access and we don't have more specific owners for anything.
  3. Stop trying to push to the Buf schema registry. Our protos are vendored from crossplane/crossplane, so while there's no harm in linting them, there's also no need to push them.

I have:

@adamwg adamwg requested a review from a team as a code owner May 5, 2026 22:10
@adamwg adamwg requested review from jbw976 and removed request for a team May 5, 2026 22:10
adamwg added 3 commits May 5, 2026 16:11
Copy Crossplane's coderabbit config as a starting point and remove irrelevant
parts.

Signed-off-by: Adam Wolfe Gordon <awg@upbound.io>
We don't actually need CODEOWNERS for now, since we don't yet have dedicated
reviewers for different areas. Branch protection rules require an approval from
anyone with write access, which is sufficient.

Signed-off-by: Adam Wolfe Gordon <awg@upbound.io>
The protos in this repository are vendored from crossplane/crossplane. There's
no harm in linting them, but we don't need to push them to the buf schema
registry. Set `push: false` on the buf action and remove the unnecessary token
parameter, avoiding the need for a `BUF_TOKEN` secret in this repo.

Signed-off-by: Adam Wolfe Gordon <awg@upbound.io>
Copy link
Copy Markdown
Member

@jbw976 jbw976 left a comment

Choose a reason for hiding this comment

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

a couple small comments, thanks @adamwg!

Comment thread .github/workflows/ci.yml
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6

- name: Lint and Push Protocol Buffers
- name: Lint Protocol Buffers
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i'd argue we don't need to do the protobuf linting - we also copy protobufs from c/c to https://github.com/crossplane/function-sdk-go and we don't lint them there either - so that has precedent 🤔

Comment thread .coderabbit.yaml
error testing uses proper patterns (cmpopts.EquateErrors, sentinel
errors for complex cases).

- path: "**/design/**"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i see some patterns that are in c/c but not applicable here - want to take a pass to trim this down to only what's applicable in this repo?

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