diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml deleted file mode 100644 index c635d233..00000000 --- a/.github/workflows/pull_request.yml +++ /dev/null @@ -1,73 +0,0 @@ -name: Check Added Submodules - -on: - pull_request_target: - -jobs: - metadata: - name: Fetch metadata - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - uses: actions/checkout@v3 - name: Checkout LLS-Addons - with: - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.head_ref }} - submodules: false - - - name: Set Base and Head Refs - run: | - echo "BASE_REF=${{ github.event.pull_request.base.ref }}" >> $GITHUB_ENV - echo "HEAD_REF=${{ github.event.pull_request.head.ref }}" >> $GITHUB_ENV - echo "BASE_REMOTE=${{github.event.pull_request.base.repo.clone_url}}" >> $GITHUB_ENV - echo "HEAD_REMOTE=${{github.event.pull_request.head.repo.clone_url}}" >> $GITHUB_ENV - - - name: Fetch Branches - run: | - git remote add base $BASE_REMOTE - git fetch base $BASE_REF - - git remote add head $HEAD_REMOTE - git fetch head $HEAD_REF - - - name: Detect Added Submodules - run: | - ADDED_SUBMODULES=$(git diff --submodule --compact-summary remotes/base/${BASE_REF}..remotes/head/${HEAD_REF} | grep -vE ".*\(gone\)" | grep -oE "addons/.*/module") - echo "Added submodules: $ADDED_SUBMODULES" - { - echo "ADDED_SUBMODULES<> $GITHUB_ENV - - - name: Fetch submodules - run: | - for submodule in $ADDED_SUBMODULES; do - echo "Getting submodule: $submodule" - git submodule update --init --recursive $submodule - done - - # Custom action that gets metadata on each addon - - uses: dsaltares/fetch-gh-release-asset@1.1.0 - name: Get submodule metadata fetching action - with: - token: ${{ secrets.GITHUB_TOKEN }} - repo: LuaLS/LLS-Addons-Action - file: dist.zip - target: action.zip - - name: Unzip custom action - run: unzip action.zip -d action - - uses: ./action/dist - name: Get Addon Metadata - - # Commit new metadata - - name: Commit Metadata - uses: stefanzweifel/git-auto-commit-action@v4.16.0 - with: - commit_message: "chore: Update Addon Metadata" - file_pattern: addons/*/info.json - commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> - commit_user_name: github-actions[bot] - commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com diff --git a/.gitmodules b/.gitmodules index eb1a82c8..3d9ba810 100644 --- a/.gitmodules +++ b/.gitmodules @@ -278,3 +278,6 @@ path = addons/ethos/module url = https://github.com/flyingeek/ethos-lua-definitions.git branch = luals-addon +[submodule "addons/hyprlua/module"] + path = addons/hyprlua/module + url = https://github.com/qompassai/hyprlua diff --git a/addons/hyprlua/info.json b/addons/hyprlua/info.json new file mode 100644 index 00000000..020c61ee --- /dev/null +++ b/addons/hyprlua/info.json @@ -0,0 +1,5 @@ +{ + "$schema": "https://raw.githubusercontent.com/LuaLS/LLS-Addons/main/schemas/addon_info.schema.json", + "name": "hyprlua", + "description": "LuaCATS type annotations and lua_ls addon for Hyprland 0.55+. Goal is to provide autocomplete, hover docs, and type-checking for the full hl.* global API.", +} diff --git a/addons/hyprlua/module b/addons/hyprlua/module new file mode 160000 index 00000000..0dcee8c4 --- /dev/null +++ b/addons/hyprlua/module @@ -0,0 +1 @@ +Subproject commit 0dcee8c448185721965da7e8021e7021555d8302