From 0070fcb9f8a37a23109793760c3e00335abf61e5 Mon Sep 17 00:00:00 2001 From: "Matthieu C." <886074+teto@users.noreply.github.com> Date: Tue, 12 Nov 2024 16:13:25 +0100 Subject: [PATCH 1/5] feat(plugins): added lsp_lines.nvim --- plugins.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins.json b/plugins.json index 901bd21..fc3eba6 100644 --- a/plugins.json +++ b/plugins.json @@ -7,6 +7,13 @@ "summary": "An interactive and powerful Git interface for Neovim, inspired by Magit", "license": "MIT" }, + { + "name": "https://git.sr.ht/~whynothugo/lsp_lines.nvim", + "shorthand": "lsp_lines.nvim", + "dependencies": [], + "summary": "Renders diagnostics using virtual lines on top of the real line of code.", + "license": "ISC" + }, { "name": "folke/flash.nvim", "shorthand": "flash.nvim", From a69cd0d2b84b9ff2709f64d32c9f89745f1df988 Mon Sep 17 00:00:00 2001 From: "Matthieu C." <886074+teto@users.noreply.github.com> Date: Tue, 19 Nov 2024 21:12:19 +0100 Subject: [PATCH 2/5] try to get an external repo --- .github/workflows/pr.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index da5d1c8..2dbe91f 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -63,6 +63,13 @@ jobs: with: luaVersion: "5.1" + # actions/checkout doesn't clone git repos external to github. this is a trick to do so + # https://github.com/actions/checkout/issues/24#issuecomment-1234831235 + - name: override remote if needed + if: startWith('https', ${{ matrix.plugin.name }}) + run: | + git config --global url.https://git.sr.ht.insteadOf git://github.com/ + - name: Checkout plugin repository uses: actions/checkout@v4 with: From f868fbf6e67afab7f1f99eb599defb4218c56329 Mon Sep 17 00:00:00 2001 From: "Matthieu C." <886074+teto@users.noreply.github.com> Date: Thu, 19 Dec 2024 21:35:56 +0100 Subject: [PATCH 3/5] fix --- .github/workflows/pr.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 2dbe91f..f7e87cb 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -70,13 +70,19 @@ jobs: run: | git config --global url.https://git.sr.ht.insteadOf git://github.com/ - - name: Checkout plugin repository + - name: Checkout plugin repository from github + if: ${{ startsWith( matrix.plugin.name, 'https://git.sr.ht') == false }} uses: actions/checkout@v4 with: repository: ${{ matrix.plugin.name }} ref: ${{ matrix.plugin.ref }} path: . + - name: Clone from sr.ht + if: ${{ startsWith(env.REPOSITORY_URL, 'https://git.sr.ht') }} + run: | + git clone ${{ matrix.plugin.ref }} + - run: | echo "GITHUB_REPOSITORY_OVERRIDE=${{ matrix.plugin.name }}" >> $GITHUB_ENV echo "GITHUB_SHA_OVERRIDE=$(git rev-parse HEAD)" >> $GITHUB_ENV From c78f33936132b58549a5bd638e880f8b5ff6038b Mon Sep 17 00:00:00 2001 From: "Matthieu C." <886074+teto@users.noreply.github.com> Date: Thu, 19 Dec 2024 22:39:47 +0100 Subject: [PATCH 4/5] fix --- .github/workflows/pr.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index f7e87cb..e4dce26 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -65,10 +65,10 @@ jobs: # actions/checkout doesn't clone git repos external to github. this is a trick to do so # https://github.com/actions/checkout/issues/24#issuecomment-1234831235 - - name: override remote if needed - if: startWith('https', ${{ matrix.plugin.name }}) - run: | - git config --global url.https://git.sr.ht.insteadOf git://github.com/ + # - name: override remote if needed + # if: startWith('https', ${{ matrix.plugin.name }}) + # run: | + # git config --global url.https://git.sr.ht.insteadOf git://github.com/ - name: Checkout plugin repository from github if: ${{ startsWith( matrix.plugin.name, 'https://git.sr.ht') == false }} From 34345fe64caa31cedc2c411ab0fdbde88252e174 Mon Sep 17 00:00:00 2001 From: "Matthieu C." <886074+teto@users.noreply.github.com> Date: Thu, 19 Dec 2024 22:39:58 +0100 Subject: [PATCH 5/5] test teto-ability-override-url branch --- .github/workflows/pr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e4dce26..59ccd13 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -98,7 +98,7 @@ jobs: } >> "$GITHUB_OUTPUT" - name: Publish Development LuaRock - uses: nvim-neorocks/luarocks-tag-release@v7 + uses: nvim-neorocks/luarocks-tag-release@teto-ability-override-url env: LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} with: