| 1 | # Contributing to Dasel |
| 2 | |
| 3 | Thank you for considering contributing to Dasel! Contributions of all kinds are welcome — whether it's fixing bugs, improving documentation, or adding new features. |
| 4 | |
| 5 | ## How to Contribute |
| 6 | |
| 7 | ### 1. Reporting Issues |
| 8 | |
| 9 | * Check the [issue tracker](https://github.com/TomWright/dasel/issues) to see if your issue has already been reported. |
| 10 | * If not, open a new issue with a clear description. Please include: |
| 11 | |
| 12 | * Steps to reproduce (if it's a bug) |
| 13 | * Expected vs actual behavior |
| 14 | * Versions of Dasel, Go, and your OS |
| 15 | |
| 16 | ### 2. Suggesting Features |
| 17 | |
| 18 | * Open a [discussion](https://github.com/TomWright/dasel/discussions) if you'd like feedback before implementing. |
| 19 | * If the idea is well-defined, create an issue describing the use case and possible syntax. |
| 20 | |
| 21 | ### 3. Submitting Pull Requests |
| 22 | |
| 23 | 1. Fork the repository and clone your fork. |
| 24 | 2. Create a new branch for your work: |
| 25 | |
| 26 | ```bash |
| 27 | git checkout -b feature/my-new-feature |
| 28 | ``` |
| 29 | 3. Make your changes and add tests if relevant. |
| 30 | 4. Run the test suite to ensure nothing is broken: |
| 31 | |
| 32 | ```bash |
| 33 | go test ./... |
| 34 | ``` |
| 35 | 5. Commit your changes with a clear message: |
| 36 | |
| 37 | ```bash |
| 38 | git commit -m "Add support for XYZ selector" |
| 39 | ``` |
| 40 | 6. Push your branch and open a Pull Request. |
| 41 | |
| 42 | ### 4. Code Style |
| 43 | |
| 44 | * Follow Go best practices and conventions. |
| 45 | * Keep code simple and readable. |
| 46 | * Add comments for complex logic. |
| 47 | |
| 48 | ### 5. Documentation |
| 49 | |
| 50 | * Ensure documentation requirements are listed on your PR so docs site can be updated. |
| 51 | * Ensure examples are clear and consistent with the style of existing docs. |
| 52 | |
| 53 | ### 6. Communication |
| 54 | |
| 55 | * Be respectful and constructive in discussions. |
| 56 | * Aim to keep contributions focused and incremental. |
| 57 | |
| 58 | --- |
| 59 | |
| 60 | ## Getting Help |
| 61 | |
| 62 | If you have questions, feel free to: |
| 63 | |
| 64 | * Start a [discussion](https://github.com/TomWright/dasel/discussions) |
| 65 | * Ask in an open issue related to your question |
| 66 | |
| 67 | We appreciate your contribution and for helping improve Dasel! |