Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discussion] Contribution Guidelines #220

Open
MGLL opened this issue Apr 8, 2024 · 1 comment
Open

[Discussion] Contribution Guidelines #220

MGLL opened this issue Apr 8, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation priority

Comments

@MGLL
Copy link
Contributor

MGLL commented Apr 8, 2024

Hello,

I wanted to know if there are some contribution guidelines somewhere or if there are any plans to add them.

Globally, I try to look around the codebase and align, but I think some guidelines on your way of working or your best practices could help a bit.

Also, regarding the tests, I was a bit surprised to see long and complex test in 1 file (OrganizationResourceTest). Nonetheless I have aligned there too, but I wanted to know if it was part of your internal guidelines.

Best regards,

@xgp
Copy link
Member

xgp commented Apr 9, 2024

Thanks for the idea. We haven't published anything. Let's start something here, and then I can add a file to the top level of the repo.

I think your point on tests is a good one. I think it was more out of haste that everything got put in one huge test. Those could be refactored.


(partially pulled from Keycloak)

  1. Create an issue to propose a bugfix or enhancement. Take your time to write a proper issue including a good summary and description.
  2. Implementation. (need some more detail about compatibility and style). Do not format or refactor code that is not directly related to your contribution.
  3. Testing. Separate code into logical, readable classes. Do not add mock frameworks or other testing frameworks that are not already part of the testsuite. Please write tests in the same way as we have written our tests.
  4. Documentation. We require contributions to include relevant documentation both in the source code as javadoc and as functional documentation in or linked from the README.
  5. PR. Provide a good description commit message, with a link to the issue.
  6. Developer's Certificate of Origin. Any contributions to Phase Two open source projects must only contain code that can legally be contributed to Phase Two, and which the Phase Two project can distribute under its license. Prior to contributing to Keycloak please read the Developer's Certificate of Origin and sign-off all commits with the --signoff option provided by git commit.

@xgp xgp added documentation Improvements or additions to documentation priority labels Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation priority
Projects
None yet
Development

No branches or pull requests

2 participants