You can contribute in several ways to AzerothCore:
To contribute, you obviously need a github account.
You can help much by checking the issues and joining their discussions.
One thing you can do is to update your core and check if the issue is still valid on your revision, then you can write a comment including the commit hash.
Important things to do before reporting a bug:
1) Update your core to the latest AzerothCore revision and check whether the bug is still there
2) Search among the issues to check if someone has already reported the bug, in that case you have just to comment the issue to confirm the bug (including your core revision)
If (and only if) the bug hasn’t been reported yet, you can open an issue and include:
Official GitHub tutorial here.
In order to create a Pull Request (PR), you have to fork the AzerothCore repository (via your web browser, using the top-right Fork button) and clone your fork locally with
git clone https://github.com/YOUR_USERNAME/azerothcore-wotlk.git.
If you already have a local fork, remember to sync it before creating a new Pull Request to avoid conflicts.
Open a terminal and move to your local clone of the fork, then create a new branch by typing:
git checkout -b my-branch (Note: my-branch is an arbitrary name, choose whatever you want here)
Now add your changes to the code.
IMPORTANT: If you are going to add some database contents or structure changes, read how to deal with SQL files first.
Then you can commit your changes and push them:
## Select all your modified files git add . ## Commit your changes (you can simply type "git commit -v" too) git commit -v -m "Commit message here" ## origin = your git remote (the url of your fork) git push origin my-branch
Now via web open your repository, switch to your new branch and click on New pull request and compare our original repo/master branch with your fork/my-branch.
IMPORTANT: remember to create one separate PR for each feature/fix (use a separate branch for each PR)
Please describe how other users should test your PR. This way people can easily check it and it will be faster to be merged.
If you want to submit code written by someone else, you can give credits to the author when you commit:
git commit --author="AuthorName <email@example.com>" -am "Commit message here"
Do you want to improve or add a page to our wiki? Good! Let’s discuss it using our chat.