diff options
| author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2021-11-11 10:03:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-11 01:03:49 -0800 |
| commit | edca6c107027111ed02abe17a231d1cf0d353adf (patch) | |
| tree | c7c175a75e05e1b732c5f9ae65d79a69f9a6feff /.github/workflows | |
| parent | ci: automatically close pull requests that modify server_configurations.md (#... (diff) | |
| download | nvim-lspconfig-edca6c107027111ed02abe17a231d1cf0d353adf.tar nvim-lspconfig-edca6c107027111ed02abe17a231d1cf0d353adf.tar.gz nvim-lspconfig-edca6c107027111ed02abe17a231d1cf0d353adf.tar.bz2 nvim-lspconfig-edca6c107027111ed02abe17a231d1cf0d353adf.tar.lz nvim-lspconfig-edca6c107027111ed02abe17a231d1cf0d353adf.tar.xz nvim-lspconfig-edca6c107027111ed02abe17a231d1cf0d353adf.tar.zst nvim-lspconfig-edca6c107027111ed02abe17a231d1cf0d353adf.zip | |
ci: add workflow that fails PRs with the word "dirname" in them (#1398)
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/check-for-dirname.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/check-for-dirname.yml b/.github/workflows/check-for-dirname.yml new file mode 100644 index 00000000..50b54cc0 --- /dev/null +++ b/.github/workflows/check-for-dirname.yml @@ -0,0 +1,18 @@ +name: "Dirname Checker" +on: [pull_request] +jobs: + dirname-check: + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v2.3.1 + with: + fetch-depth: 0 + ref: ${{ github.event.pull_request.head.sha }} + - run: | + if ! git log -G"dirname" --exit-code origin/$GITHUB_BASE_REF..$(git branch --show-current) -- . ':!lua/lspconfig/configs.lua'; then + echo + echo 'String "dirname" found. There is a high risk that this might contradict the directive "Do not add vim.fn.cwd or util.path.dirname in root_dir" specified in https://github.com/neovim/nvim-lspconfig/blob/master/CONTRIBUTING.md#adding-a-server-to-lspconfig.' + exit 1 + fi |
