We appreciate your contribution to this amazing project! Any form of engagement is welcome, including but not limiting to
- feature request
- documentation wording
- bug report
- roadmap suggestion
- ...and so on!
Please refer to the community contributing section for more details.
Before delving into the details to come up with your first PR, please familiarise yourself with the project structure of Instill Core.
On the local machine, clone the desired project repository in your workspace either core, vdp or model, then move to the repository folder, and launch all dependent microservices:
$ git clone https://github.com/instill-ai/<project-name-here>.git
$ cd <project-name-here>
$ make latest PROFILE=api-gateway
Clone api-gateway
repository in your workspace and move to the repository folder:
$ git clone https://github.com/instill-ai/api-gateway.git
$ cd api-gateway
$ make build
$ make dev
Now, you have the Go project set up in the container, in which you can compile and run the binaries together with the integration test in each container shell.
# Enter api-gateway container
$ docker exec -it api-gateway /bin/bash
# In the api-gateway container
$ make plugin
$ make config # generate KrakenD configuration file
$ krakend run -c krakend.json
- pull_request to the
main
branch will trigger theIntegration Test
workflow running the integration test using the image built on the PR head branch. - push to the
main
branch will trigger- the
Integration Test
workflow building and pushing the:latest
image on themain
branch, following by running the integration test, and - the
Release Please
workflow, which will create and update a PR with respect to the up-to-datemain
branch using release-please-action.
- the
Once the release PR is merged to the main
branch, the release-please-action will tag and release a version correspondingly.
The images are pushed to Docker Hub repository.
Please take these general guidelines into consideration when you are sending a PR:
- Fork the Repository: Begin by forking the repository to your GitHub account.
- Create a New Branch: Create a new branch to house your work. Use a clear and descriptive name, like
<your-github-username>/<what-your-pr-about>
. - Make and Commit Changes: Implement your changes and commit them. We encourage you to follow these best practices for commits to ensure an efficient review process:
- Adhere to the conventional commits guidelines for meaningful commit messages.
- Follow the 7 rules of commit messages for well-structured and informative commits.
- Rearrange commits to squash trivial changes together, if possible. Utilize git rebase for this purpose.
- Push to Your Branch: Push your branch to your GitHub repository:
git push origin feat/<your-feature-name>
. - Open a Pull Request: Initiate a pull request to our repository. Our team will review your changes and collaborate with you on any necessary refinements.
When you are ready to send a PR, we recommend you to first open a draft
one. This will trigger a bunch of tests
workflows running a thorough test suite on multiple platforms. After the tests are done and passed, you can now mark the PR open
to notify the codebase owners to review. We appreciate your endeavour to pass the integration test for your PR to make sure the sanity with respect to the entire scope of Instill Core.
Your contributions make a difference. Let's build something amazing together!