diff options
author | kylo252 <[email protected]> | 2022-04-02 12:22:32 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-04-02 12:22:32 +0200 |
commit | b892b97708db69eb85e88f9ea4292bd83a1c1241 (patch) | |
tree | bb0d5376fa5b88f082fd8808d34def96abcd2a6e | |
parent | 84e499aa38f661be5ea54a6bf7b0cbbf987ec9ff (diff) |
ci(test): add write-permission for prs (#2417)
-rw-r--r-- | .github/workflows/format.yaml | 5 | ||||
-rw-r--r-- | .github/workflows/install.yaml | 5 | ||||
-rw-r--r-- | .github/workflows/lint.yaml | 5 | ||||
-rw-r--r-- | .github/workflows/plugins.yml | 6 | ||||
-rw-r--r-- | lua/lvim/core/info.lua | 34 |
5 files changed, 36 insertions, 19 deletions
diff --git a/.github/workflows/format.yaml b/.github/workflows/format.yaml index a7f7d9f8..b63b89d7 100644 --- a/.github/workflows/format.yaml +++ b/.github/workflows/format.yaml @@ -4,6 +4,11 @@ on: pull_request: branches: - "rolling" + paths: + - 'lua/**' + - 'snapshots/**' + - 'tests/**' + - 'utils/**' jobs: stylua-check: diff --git a/.github/workflows/install.yaml b/.github/workflows/install.yaml index 4266896b..6e3685dd 100644 --- a/.github/workflows/install.yaml +++ b/.github/workflows/install.yaml @@ -5,6 +5,11 @@ on: branches: - "master" - "rolling" + paths: + - 'lua/**' + - 'snapshots/**' + - 'tests/**' + - 'utils/**' jobs: unixish: diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 9746425d..c238a5d1 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -4,6 +4,11 @@ on: pull_request: branches: - "rolling" + paths: + - 'lua/**' + - 'snapshots/**' + - 'tests/**' + - 'utils/**' jobs: lua-linter: diff --git a/.github/workflows/plugins.yml b/.github/workflows/plugins.yml index 56d2a9cc..8f29b0e9 100644 --- a/.github/workflows/plugins.yml +++ b/.github/workflows/plugins.yml @@ -13,13 +13,17 @@ on: - warning - debug schedule: - - cron: "30 18 * * 1,5" + # note: this will keep updating the existing branch + - cron: "*/15 10-14 * * 0,6" + - cron: "0 14 * * 1-5" jobs: plugins-version-bump: runs-on: ubuntu-latest + continue-on-error: true permissions: contents: write + pull-requests: write steps: - uses: actions/checkout@v2 with: diff --git a/lua/lvim/core/info.lua b/lua/lvim/core/info.lua index 34a5a7dd..da295b95 100644 --- a/lua/lvim/core/info.lua +++ b/lua/lvim/core/info.lua @@ -161,24 +161,22 @@ function M.toggle_popup(ft) local content_provider = function(popup) local content = {} - for _, section in - ipairs { - M.banner, - { "" }, - { "" }, - header, - { "" }, - lsp_info, - { "" }, - override_info, - { "" }, - formatters_info, - { "" }, - linters_info, - { "" }, - code_actions_info, - } - do + for _, section in ipairs { + M.banner, + { "" }, + { "" }, + header, + { "" }, + lsp_info, + { "" }, + override_info, + { "" }, + formatters_info, + { "" }, + linters_info, + { "" }, + code_actions_info, + } do vim.list_extend(content, section) end |