We welcome contributions to the Discord Interactions Webhook project! Whether you're reporting bugs, improving the documentation, or contributing code, your help is greatly appreciated.
To get started with contributing to the project, follow these steps:
- Fork the Repository: Click the "Fork" button at the top right of this page to create a copy of the repository on your GitHub account.
- Clone Your Fork: Clone your forked repository to your local machine:
git clone https://github.com/Chrisae9/discord-interactions-webhook.git
- Set Upstream Remote: Set the original repository as the upstream remote:
cd discord-interactions-webhook git remote add upstream https://github.com/Chrisae9/discord-interactions-webhook.git
If you find a bug, please report it by creating an issue in the GitHub Issue Tracker. Include as much detail as possible, including steps to reproduce the bug, the environment you're using, and any relevant log output.
If you have an idea for an enhancement or new feature, please create an issue in the GitHub Issue Tracker. Provide a clear description of the enhancement and why it would be beneficial to the project.
- Create a Branch: Create a new branch for your work:
git checkout -b feature/your-feature-name
- Make Changes: Make your changes to the codebase.
- Commit Changes: Commit your changes with a descriptive commit message:
git commit -m "Add feature: your-feature-name"
- Push Changes: Push your changes to your forked repository:
git push origin feature/your-feature-name
- Create a Pull Request: Create a pull request from your branch to the main repository. Provide a clear description of your changes and why they should be merged.
Most of the setup can be inferred from the basic README, but for local development, use the Makefile to run commands:
- Build the Docker Image Locally:
make build
- Pull and Push Commands: You can use the
make pull
andmake push
commands to manage Discord commands.make pull make push
- Run the Application: Start the application using:
make dev
- Open a Shell in the Container: Use this command to open a shell in the container:
make shell
- Test Docker Environment: Check if the Docker environment is set up correctly, including Docker group ID and user permissions:
make docker-test
- Environment Variables Check: Verify that the environment variables are correctly loaded into the container:
make env-check
- Service Check: Run a test Docker Compose file from the services directory to ensure services are configured correctly:
make service-check
- Cron Job Check: Verify that the cron job is set up correctly for the node user:
make cron-check
- Follow the coding style and conventions used in the existing codebase.
- Write clear and concise comments where necessary.
- Ensure your code is properly formatted and linted.
- Use the present tense ("Add feature" not "Added feature").
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...").
- Provide a brief description of the changes made.
By contributing to this project, you agree that your contributions will be licensed under the MIT License.