We welcome contributions to the Mass Rename project! Whether you're reporting a bug, adding a feature, or simply helping with documentation, your help is appreciated. Below is a guide on how you can contribute to the project.
If you'd like to contribute, first fork the repository to your own GitHub account:
- Navigate to the main repository: Mass Rename
- Click the "Fork" button in the top-right corner.
Once you've forked the repository, clone it to your local machine:
git clone https://github.com/your-username/mass_rename.git
cd mass_rename
Ensure that the project is ready to be modified. You will need the following:
- BASH and SED installed on your system (required for running the scripts).
- Optionally, the Python version is available by switching to the python branch..
Before making any changes, it's best to create a new branch for your work:
git checkout -b your-branch-name
Once you've made your changes, stage them for commit:
git add .
Commit your changes with a descriptive commit message:
git commit -m "Describe the feature/bugfix in a brief message"
Push the changes to your forked repository:
git push origin your-branch-name
Finally, create a pull request (PR) to submit your changes for review.
Note
Please submit your pull request to the dev
branch, not the main
branch. The dev
branch is where we review and test all changes before merging them into the main
branch.
If you're contributing code, ensure that your changes are properly tested before submitting a pull request.
- Create Dummy Files: If you're testing the
mass_rename.sh
script, use the providedDummyFileCreater.sh
to generate test files in atest-dir
folder. For detailed instructions, refer to the Testing Guide. - Run the Mass Rename Script: Follow the steps outlined in the README to execute the renaming process. Test your changes thoroughly to ensure the script behaves as expected.
If you're working with the Python version of the script, switch to the Python branch:
git checkout python_version
Follow the relevant usage instructions for testing your modifications in the Python version.
When your changes are ready and fully tested:
- Go to the original repository where you'd like to submit your PR.
- Select "New Pull Request" and choose your branch from your forked repository.
- Set the base branch to
dev
. - Add a clear title and description of what your changes address or improve.
- Reference any relevant issues if applicable.
- Submit the pull request.
- BASH: Ensure your shell script is clean and readable. Use comments where necessary and follow best practices for writing portable scripts.
- Python (if contributing to the Python branch): Follow PEP 8 guidelines for formatting code.
- Naming Conventions: If contributing to any file renaming functionality, ensure your changes maintain the flexibility and compatibility with media server conventions.
If you find a bug or have a feature request, please open an issue in the repository and provide the following:
- A clear title and description of the issue or feature.
- Steps to reproduce the problem (if applicable).
- Suggestions for a solution (if you have one).
Thank you for your interest in improving Mass Rename! Your contributions help make the project better for everyone.