Skip to content

Commit bb07837

Browse files
committed
2 parents e483255 + 569846f commit bb07837

File tree

101 files changed

+386
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+386
-142
lines changed

.github/PULL_REQUEST_TEMPLATE/newAddon.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ Self-review Checklist:
1212
1313
- Verify that the config.json is valid by pasting it into https://www.jsonschemavalidator.net/s/JxX3xtlV.
1414
15-
- StyLua (https://github.com/JohnnyMorganz/StyLua) has been run to meet code style requirements.
16-
1715
- Resolved issues are linked (https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue).
1816
1917
-->

.github/workflows/main.yml

Lines changed: 0 additions & 79 deletions
This file was deleted.

.github/workflows/pull_request.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: Check Added Submodules
2+
3+
on:
4+
pull_request_target:
5+
6+
jobs:
7+
metadata:
8+
name: Fetch metadata
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
steps:
13+
- uses: actions/checkout@v3
14+
name: Checkout LLS-Addons
15+
with:
16+
repository: ${{ github.event.pull_request.head.repo.full_name }}
17+
ref: ${{ github.head_ref }}
18+
submodules: false
19+
20+
- name: Set Base and Head Refs
21+
run: |
22+
echo "BASE_REF=${{ github.event.pull_request.base.ref }}" >> $GITHUB_ENV
23+
echo "HEAD_REF=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV
24+
echo "BASE_REMOTE=${{github.event.pull_request.base.repo.clone_url}}" >> $GITHUB_ENV
25+
echo "HEAD_REMOTE=${{github.event.pull_request.head.repo.clone_url}}" >> $GITHUB_ENV
26+
27+
- name: Fetch Branches
28+
run: |
29+
git remote add base $BASE_REMOTE
30+
git fetch base $BASE_REF
31+
32+
git remote add head $HEAD_REMOTE
33+
git fetch head $HEAD_REF
34+
35+
- name: Detect Added Submodules
36+
run: |
37+
ADDED_SUBMODULES=$(git diff --submodule --compact-summary remotes/base/${BASE_REF}..remotes/head/${HEAD_REF} | grep -vE ".*\(gone\)" | grep -oE "addons/.*/module")
38+
echo "Added submodules: $ADDED_SUBMODULES"
39+
{
40+
echo "ADDED_SUBMODULES<<EOF"
41+
echo "$ADDED_SUBMODULES"
42+
echo "EOF"
43+
} >> $GITHUB_ENV
44+
45+
- name: Fetch submodules
46+
run: |
47+
for submodule in $ADDED_SUBMODULES; do
48+
echo "Getting submodule: $submodule"
49+
git submodule update --init --recursive $submodule
50+
done
51+
52+
# Custom action that gets metadata on each addon
53+
- uses: dsaltares/[email protected]
54+
name: Get submodule metadata fetching action
55+
with:
56+
token: ${{ secrets.GITHUB_TOKEN }}
57+
repo: LuaLS/LLS-Addons-Action
58+
file: dist.zip
59+
target: action.zip
60+
- name: Unzip custom action
61+
run: unzip action.zip -d action
62+
- uses: ./action/dist
63+
name: Get Addon Metadata
64+
65+
# Commit new metadata
66+
- name: Commit Metadata
67+
uses: stefanzweifel/[email protected]
68+
with:
69+
commit_message: "chore: Update Addon Metadata"
70+
file_pattern: addons/*/info.json
71+
commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
72+
commit_user_name: github-actions[bot]
73+
commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com

.gitmodules

Lines changed: 78 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
[submodule "addons/luanti-full-api/module"]
2+
path = addons/luanti-full-api/module
3+
url = https://github.com/Voxrame/luanti-ide-helper.git
4+
15
[submodule "addons/busted/module"]
26
path = addons/busted/module
37
url = https://github.com/LuaCATS/busted.git
@@ -96,6 +100,9 @@
96100
[submodule "addons/moonloader/module"]
97101
path = addons/moonloader/module
98102
url = https://github.com/GovnocodedByChapo/moonloader-definitions.git
103+
[submodule "addons/raksamplite/module"]
104+
path = addons/raksamplite/module
105+
url = https://github.com/DepsCian/raksamp-lite-definitions.git
99106
[submodule "addons/tex-lualibs/module"]
100107
path = addons/tex-lualibs/module
101108
url = https://github.com/LuaCATS/tex-lualibs.git
@@ -119,9 +126,9 @@
119126
[submodule "addons/halion/module"]
120127
path = addons/halion/module
121128
url = https://github.com/misohoza/halion.git
122-
[submodule "addons/minetest/module"]
123-
path = addons/minetest/module
124-
url = https://git.sr.ht/~fgaz/minetest-lls-definitions
129+
[submodule "addons/luanti/module"]
130+
path = addons/luanti/module
131+
url = https://git.sr.ht/~fgaz/luanti-lls-definitions
125132
[submodule "addons/REFramework-LLS/module"]
126133
path = addons/REFramework-LLS/module
127134
url = https://github.com/youwereeatenbyalid/REFramework-LLS.git
@@ -183,3 +190,71 @@
183190
[submodule "addons/starfallex/module"]
184191
path = addons/starfallex/module
185192
url = https://github.com/Periapsises/Starfall-LLS
193+
[submodule "addons/smbx2-lunalua/module"]
194+
path = addons/smbx2-lunalua/module
195+
url = https://github.com/Wild-W/smbx2-lunalua-luacats
196+
branch = publish
197+
[submodule "addons/toml-edit/module"]
198+
path = addons/toml-edit/module
199+
url = https://github.com/nvim-neorocks/toml-edit-lua-ls-addon.git
200+
[submodule "addons/trilogyloader/module"]
201+
path = addons/trilogyloader/module
202+
url = https://github.com/fokichevskiy/TrilogySnippets.git
203+
[submodule "addons/devilspie2/module"]
204+
path = addons/devilspie2/module
205+
url = https://github.com/sparr/LuaLS-Addon-devilspie2.git
206+
[submodule "addons/dontstarve/module"]
207+
path = addons/dontstarve/module
208+
url = https://github.com/LuaCATS/dontstarve
209+
[submodule "addons/scribunto/module"]
210+
path = addons/scribunto/module
211+
url = https://github.com/Dianliang233/scribunto-addon
212+
[submodule "addons/ncine/module"]
213+
path = addons/ncine/module
214+
url = https://github.com/nCine/nCine-LuaCATS
215+
branch = addon
216+
[submodule "addons/umbrella-unstable/module"]
217+
path = addons/umbrella-unstable/module
218+
url = https://github.com/demiurgeQuantified/UmbrellaAddon-Unstable
219+
[submodule "addons/HLA-VScript/module"]
220+
path = addons/HLA-VScript/module
221+
url = https://github.com/FrostSource/HLA-VScript.git
222+
[submodule "addons/pico8/module"]
223+
path = addons/pico8/module
224+
url = https://github.com/ahai64/pico8
225+
[submodule "addons/picotron/module"]
226+
path = addons/picotron/module
227+
url = https://github.com/ahai64/picotron
228+
[submodule "addons/lua-enet/module"]
229+
path = addons/lua-enet/module
230+
url = https://github.com/masakk1/LuaCATS-lua-enet.git
231+
[submodule "addons/lsqlite3/module"]
232+
path = addons/lsqlite3/module
233+
url = https://github.com/KaitlynEthylia/LuaSQLite3-annotations
234+
[submodule "addons/X4/module"]
235+
path = addons/X4/module
236+
url = https://github.com/chemodun/X4-LuaLSAddon.git
237+
branch = publish
238+
[submodule "addons/ftl-hyperspace/module"]
239+
path = addons/ftl-hyperspace/module
240+
url = https://github.com/ranhai613/ftl-hs-lua-lls-addon.git
241+
branch = publish
242+
[submodule "addons/luaposix/module"]
243+
path = addons/luaposix/module
244+
url = https://github.com/kayibea/lls-posix
245+
[submodule "addons/LuaPlayerYT/module"]
246+
path = addons/LuaPlayerYT/module
247+
url = https://github.com/antim0118/lpyt-lls-addon
248+
[submodule "addons/castlexyz/module"]
249+
path = addons/castlexyz/module
250+
url = https://github.com/trobukan/castlexyz.git
251+
[submodule "addons/darkrp/module"]
252+
path = addons/darkrp/module
253+
url = https://github.com/EmekC/darkrp-luals.git
254+
255+
[submodule "addons/celeste-bosses-helper/module"]
256+
path = addons/celeste-bosses-helper/module
257+
url = https://github.com/TheDavSmasher/bosses-helper-addon
258+
[submodule "addons/qsys/module"]
259+
path = addons/qsys/module
260+
url = https://github.com/alvaroyurrita/Q-SYS-Addon-for-LuaLS

CONTRIBUTING.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,8 @@ There are a few steps to adding your own addon. The process is still being worke
4242
2. Create a branch where you can make your changes. Try to name the branch something related to what you are doing, e.g. `issue-58`, `add-busted`, `update-luassert`, etc.
4343
3. Create an `info.json` file that lives in your addon's directory (e.g. `addons/myAddon/info.json`. You can copy an `info.json` from [an already included addon](https://github.com/LuaLS/LLS-Addons/blob/main/addons/cc-tweaked/info.json) as a template.
4444
4. In your `info.json`, specify a `name` (display name) and `description`. The `size` and `hasPlugin` values will be generated automatically.
45-
5. Run [StyLua](https://github.com/JohnnyMorganz/StyLua) on your addon to apply the proper code style to the definition files.
46-
> [!NOTE]
47-
> If you have a `.editorconfig` file, make sure to run StyLua with the `--no-editorconfig` flag to run StyLua using its default configuration.
4845

49-
7. Commit your addon as a submodule to your fork.
46+
5. Commit your addon as a submodule to your fork.
5047
- Your git command should look like `git submodule add $HTTP_CLONE_URL addons/myAddon/module`.
5148
- If you have many miscellaneous/config files in your addon repository, please create a new branch (e.g. `publish`) where you can include the minimum number of files (`LICENSE` is fine). You can then use `git submodule add -b $BRANCH_NAME $HTTP_CLONE_URL addons/myAddon/module` to add your addon.
5249

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
![Addons count](https://img.shields.io/github/directory-file-count/LuaLS/LLS-Addons/addons?label=Addons&type=dir&color=097aba)
55
![Contributors](https://img.shields.io/github/contributors/LuaLS/LLS-Addons?label=Contributors)
6-
![Enforces StyLua](https://img.shields.io/badge/Enforces-StyLua-b2749f)
76

87
Welcome to the repository of [addons][addon-wiki] for the [Lua Language Server][lls-github] by [sumneko](https://github.com/sumneko)!
98

addons/HLA-VScript/info.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "Half Life Alyx VScript API",
3+
"description": "Definitions for the Half Life Alyx Lua API.",
4+
"size": 255706,
5+
"hasPlugin": false
6+
}

addons/HLA-VScript/module

Submodule module added at cb8fbc8

addons/LuaPlayerYT/info.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/LuaLS/LLS-Addons/main/schemas/addon_info.schema.json",
3+
"name": "LuaPlayer by Yulia Team (PSP)",
4+
"description": "Definitions for Definitions for LuaPlayer by YuliaTeam (PSP).",
5+
"size": 36009,
6+
"hasPlugin": false
7+
}

addons/LuaPlayerYT/module

Submodule module added at aefae49

0 commit comments

Comments
 (0)