Thank you for your interest in contributing to this project! This document provides guidelines and instructions for contributing.
-
Fork the repository
-
Clone your fork:
git clone https://github.com/YOUR-USERNAME/devops-shell-scripts.git
-
Add the original repository as upstream:
git remote add upstream https://github.com/buguno/devops-shell-scripts.git
- Use
#!/bin/bashas the shebang line - Include proper error handling
- Add comments explaining complex logic
- Use meaningful variable names
- Follow the existing code style
#!/bin/bash
# Script name and brief description
# Usage: ./script-name.sh [options]
# Exit on error
set -e
# Main script logic-
Error Handling
- Use
set -eto exit on error - Check for required dependencies
- Validate input parameters
- Provide meaningful error messages
- Use
-
Documentation
- Include a header comment with script description
- Document all functions
- Add usage examples
- Update README.md if necessary
-
Testing
- Test scripts with different scenarios
- Include edge cases
- Verify error handling
- Test on different environments if possible
-
Create a new branch for your feature/fix:
git checkout -b feature/your-feature-name
-
Make your changes following the standards above
-
Test your changes thoroughly
-
Commit your changes with a clear commit message:
git commit -m "feat(file): brief description"
To see how to use Semantic Commit Messages: Click Here!
-
Push to your fork:
git push origin feature/your-feature-name
-
Create a Pull Request from your fork to the main repository
- Update the README.md with details of changes if needed
- Ensure the PR description clearly describes the changes
- Include testing instructions in the PR
- Wait for review and address any feedback
- All submissions require review
- We use GitHub pull requests for this purpose
- Reviewers will look for:
- Code quality
- Error handling
- Documentation
- Testing coverage
- Security considerations
If you have any questions, feel free to open an issue in the repository.
Thank you for contributing! 🚀