Thank you for investing your time in contributing to our project! With your contribution you help Garry's Mod Lua developers get accurate and the latest autocomplete suggestions for the GLua API.
In this guide you will get an overview of the contribution workflow from opening an issue, creating a PR, reviewing, and merging the PR.
To get an overview of the project, read the README. Here are some general resources to help you get started with open source contributions:
- Finding ways to contribute to open source on GitHub
- Set up Git
- GitHub flow
- Collaborating with pull requests
This project automatically builds Garry's Mod Lua API annotations for use with LuaLS/lua-language-server
. It does this by scraping the Garry's Mod Wiki.
The above means that if you want to improve or correct the definitions, you'll have to either:
- Contribute to the official Garry's Mod Wiki (if it contains an error) and wait until the scraper runs again (at the start of every month).
- Or, if there's an error in the scraper, you can contribute to this project and fix it yourself.
The addon for Lua Language Server is seperate from this project. If you want it to be updated, you'll have to contribute to that project according to these instructions.
If you find an error in the scraper, please open an issue and describe the problem. If you can, please include a link to the page on the Garry's Mod Wiki that is incorrectly scraped.
You can help the project even more by fixing the error yourself. To do this, you'll have to fork this project, make corrections and create a pull request with your changes. Before you do that, please consider the following:
- Create an issue before you start working on a pull request. This way you can get feedback on your idea before you spend time on it.
- Make your changes on a seperate branch and name it according to this convention:
bugfix/<short-bug-description>
if you're fixing a bug (e.g.bugfix/incorrect-argument-type
).feature/<short-feature-description>
if you're adding a new feature (e.g.feature/add-example-links
).docs/<short-docs-description>
if you're updating the documentation (e.g.docs/update-contributing-guide
).
- Cluster changes in small commits. This makes it easier to review your changes.
- Do not create a single PR with multiple unrelated changes. Create seperate PRs for each change. This makes it easier to review your changes.
- Make sure your changes are correct and don't break anything.
- Add tests for your changes if possible.
- Clearly describe your changes (and why you made them) in the pull request description.
-
Fork this project to your own GitHub account.
-
Clone the forked project to your local machine.
-
Create a new branch for your changes, for example:
git checkout -b bugfix/incorrect-argument-type
-
Make your changes and commit them:
git add . git commit -m "Fix incorrect argument type"
-
Push your changes to your forked project:
git push origin bugfix/incorrect-argument-type
-
Create a pull request with your changes.
-
Wait for your pull request to be reviewed and merged.
✨ Thanks in advance for your contribution!
We use All Contributors to acknowledge contributions. If you want to be added to the list of contributors, please comment to your pull request with:
@all-contributors please add @<your-github-username> for <contributions>
» Learn more about the All Contributors
bot here
At the first of every month the scraper runs and updates the addon for Lua Language Server to the lua-language-server-addon
branch in this repo. However this does not automatically update the Lua Language Server Addon, since the branch is only a sub repository in the LuaLS/LLS-Addons repository
Step-by-step guide to update our addon at LuaLS/LLS-Addons
-
Go to the Lua Language Server Addons repository and take note of their contribution guidelines
-
Fork the Lua Language Server Addon Repository to your own GitHub account.
-
Clone the forked project to your local machine.
-
Create a new branch for your changes, for example:
git checkout -b update-garrysmod-addon
-
Update the
garrysmod
sub repository to the latest commit in thelua-language-server-addon
branch in this repo:git submodule update --init --remote addons/garrysmod/module
-
Commit your changes:
git add . git commit -m "Updated garrysmod addon"
-
Push your changes to your forked project:
git push origin update-garrysmod-addon
-
Create a pull request at the
LuaLS/LLS-Addons
repository with your changes. Make sure to allow edits from maintainers. -
Wait for your pull request to be reviewed and merged.
✨ Thanks in advance for your help in keeping our addon up to date!