-
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit eb64e8e
Showing
62 changed files
with
13,336 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
charset = utf-8 | ||
|
||
[*.lua] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[Makefile] | ||
indent_style = tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
doc/* linguist-documentation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: [lewis6991] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: Bug report | ||
description: Report a problem with Gitsigns | ||
labels: [bug] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: > | ||
Before reporting make sure that Gitsigns is updated to the latest version. | ||
- type: textarea | ||
attributes: | ||
label: "Description" | ||
description: "A comprehensive description of the problem you are reporting." | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: "Neovim version" | ||
description: | | ||
Output of `nvim --version` | ||
validations: | ||
required: true | ||
- type: input | ||
attributes: | ||
label: "Operating system and version" | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: "Expected behavior" | ||
description: "A description of the behavior you expected:" | ||
- type: textarea | ||
attributes: | ||
label: "Actual behavior" | ||
description: "Observed behavior (may optionally include logs, images, or videos)." | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: "Minimal config" | ||
description: > | ||
Minimal(!) configuration necessary to reproduce the issue. Save this as | ||
`minimal.lua`. If necessary, add plugins and config options from your | ||
`init.lua` at the indicated lines. | ||
render: Lua | ||
value: | | ||
for name, url in pairs{ | ||
gitsigns = 'https://github.com/lewis6991/gitsigns.nvim', | ||
-- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE | ||
} do | ||
local install_path = vim.fn.fnamemodify('gitsigns_issue/'..name, ':p') | ||
if vim.fn.isdirectory(install_path) == 0 then | ||
vim.fn.system { 'git', 'clone', '--depth=1', url, install_path } | ||
end | ||
vim.opt.runtimepath:append(install_path) | ||
end | ||
require('gitsigns').setup{ | ||
debug_mode = true, -- You must add this to enable debug messages | ||
-- ADD GITSIGNS CONFIG THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE | ||
} | ||
-- ADD INIT.LUA SETTINGS THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: "Steps to reproduce" | ||
description: > | ||
Steps to reproduce using the minimal config provided. | ||
If this is not provided, the issue may be closed without notice. | ||
value: | | ||
1. `nvim --clean -u minimal.lua` | ||
2. ... | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: "Gitsigns debug messages" | ||
description: > | ||
Please include the output of `:Gitsigns debug_messages`. If you think it's | ||
relevant maybe also provide the output of `:Gitsigns dump_cache`. | ||
Note: You must have `debug_mode = true` in `setup()`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Question | ||
url: https://gitter.im/gitsigns-nvim/community | ||
about: Usage questions and support requests are answered in the Gitsigns Gitter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
commit_lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Check commit messages | ||
- uses: webiny/action-conventional-commits@v1.3.0 | ||
|
||
test: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
|
||
strategy: | ||
matrix: | ||
neovim_branch: | ||
- 'v0.8.3' | ||
- 'v0.9.5' | ||
- 'nightly' | ||
|
||
env: | ||
NVIM_TEST_VERSION: ${{ matrix.neovim_branch }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: leafo/gh-actions-lua@v9 | ||
with: | ||
luaVersion: "5.1.5" | ||
|
||
- uses: leafo/gh-actions-luarocks@v4 | ||
|
||
- name: Download nvim-test | ||
run: make nvim-test | ||
|
||
- name: Run Test | ||
run: make test | ||
|
||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Download stylua | ||
run: make stylua | ||
|
||
- name: Lint | ||
run: make stylua-check | ||
|
||
doc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: leafo/gh-actions-lua@v9 | ||
with: | ||
luaVersion: "5.1.5" | ||
|
||
- uses: leafo/gh-actions-luarocks@v4 | ||
|
||
- name: Download nvim-test | ||
run: make nvim-test | ||
|
||
- name: Doc Check | ||
run: make doc-check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
name: Push to Luarocks | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
release: | ||
types: | ||
- created | ||
tags: | ||
- '*' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
luarocks-upload: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 # Required to count the commits | ||
- name: Get Version | ||
run: echo "LUAROCKS_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV | ||
- name: LuaRocks Upload | ||
uses: nvim-neorocks/luarocks-tag-release@v5 | ||
env: | ||
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }} | ||
with: | ||
version: ${{ env.LUAROCKS_VERSION }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
on: | ||
push: | ||
branches: | ||
- test-rp | ||
|
||
name: release-please | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
release_created: ${{ steps.release.outputs.release_created }} | ||
steps: | ||
- uses: google-github-actions/release-please-action@v4 | ||
id: release | ||
with: | ||
target-branch: test-rp | ||
|
||
update-doc: | ||
needs: release-please | ||
if: ${{ ! needs.release-please.outputs.release_created }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: release-please--branches--test-rp | ||
|
||
- uses: leafo/gh-actions-lua@v9 | ||
with: | ||
luaVersion: "5.1.5" | ||
|
||
- uses: leafo/gh-actions-luarocks@v4 | ||
|
||
- name: Update doc | ||
run: make gen_help | ||
|
||
- name: Update PR | ||
run: | | ||
git config user.name github-actions[bot] | ||
git config user.email github-actions[bot]@users.noreply.github.com | ||
git remote add gh-token "https://${{ secrets.GITHUB_TOKEN }}@github.com/google-github-actions/release-please-action.git" | ||
git diff | ||
git add doc | ||
git commit --amend --no-edit | ||
git push --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: stale | ||
on: | ||
schedule: | ||
- cron: '30 1 * * *' # Run every day at 01:30 | ||
issue_comment: | ||
|
||
jobs: | ||
stale: | ||
if: github.event_name == 'schedule' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/stale@v8 | ||
with: | ||
stale-issue-message: | ||
This has been labeled stale since a request for information has | ||
not been answered for 30 days. | ||
close-issue-message: | ||
This has been closed since it has been marked stale for 30 days. | ||
It can be reopened when the requested information is provided. | ||
days-before-stale: 30 | ||
days-before-close: 30 | ||
any-of-labels: needs response | ||
labels-to-remove-when-stale: needs response | ||
|
||
remove_label: | ||
if: github.event_name == 'issue_comment' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions-ecosystem/action-remove-labels@v1 | ||
with: | ||
labels: needs response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
doc/tags | ||
|
||
scratch/dummy_ignored.txt | ||
|
||
luals | ||
|
||
nvim-test | ||
|
||
stylua |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/LuaLS/vscode-lua/master/setting/schema.json", | ||
"runtime": { | ||
"version": "LuaJIT" | ||
}, | ||
"workspace": { | ||
"library": [ | ||
"lua", | ||
"$VIMRUNTIME", | ||
"nvim-test", | ||
"${3rd}/busted/library", | ||
"${3rd}/luassert/library", | ||
"${3rd}/luv/library" | ||
], | ||
"checkThirdParty": false | ||
}, | ||
"diagnostics": { | ||
"libraryFiles": "Disable", | ||
"groupFileStatus": { | ||
"strict": "Opened", | ||
"strong": "Opened", | ||
"ambiguity" : "Opened", | ||
"duplicate" : "Opened", | ||
"global" : "Opened", | ||
"luadoc" : "Opened", | ||
"redefined" : "Opened", | ||
"type-check" : "Opened", | ||
"unbalanced" : "Opened", | ||
"unused" : "Opened" | ||
}, | ||
"groupSeverity": { | ||
"strong": "Warning", | ||
"strict": "Warning" | ||
}, | ||
"unusedLocalExclude": [ "_*" ] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
".": "0.8.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
column_width = 100 | ||
line_endings = "Unix" | ||
indent_type = "Spaces" | ||
indent_width = 2 | ||
quote_style = "AutoPreferSingle" | ||
call_parentheses = "Always" |
Oops, something went wrong.