Skip to content

Commit 72e2662

Browse files
committed
feat!: release v2, it's finally here :)
* dev: (159 commits) cleanup: remove nvim-treesitter HTTP parser branch modifications code docs: update README.md chore: update queries chore: autoformat with stylua chore: regenerate documentation ref(parser)!: do not read environment files during the parsing process docs: update project features chore: regenerate documentation feat: re-implement pre and post request hooks, load env variables from environment file before running the requests feat(env_vars): add a `quiet` parameter to `read_file` to decide whether to fail silently if an environment file is not found, some cleanups feat(config): add `decode_url` configuration option to the `result.behavior` table chore: regenerate documentation feat(utils): expose a `escape` function to encode strings, meant to be used by extensions to encode URLs in case their clients does not provide an encode utility feat(curl): encode URL query parameters using cURL flags docs(README): add links for Matrix and Discord, small adjustments ref(winbar): use more common highlighting groups, fixes #290 docs: added doc for telescope ext (#296) fix: ignore error log and adding syntax highlights for result when can not get the res_type feat: add `build.lua` to be able to install `rest.nvim` by using lazy fix(doc): fix indentation in `:h rest-nvim` callbacks section ...
2 parents 1ce984c + f09e225 commit 72e2662

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+4985
-2443
lines changed

.github/workflows/docgen.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: format
2+
3+
on:
4+
push:
5+
branches: [main]
6+
paths-ignore:
7+
- ".github/**"
8+
- "**.md"
9+
10+
permissions:
11+
contents: write
12+
pull-requests: read
13+
14+
jobs:
15+
docgen:
16+
runs-on: ubuntu-latest
17+
name: Generate documentation
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
- name: Set up lemmy-help
22+
uses: supplypike/setup-bin@v3
23+
with:
24+
uri: "https://github.com/numToStr/lemmy-help/releases/download/v0.11.0/lemmy-help-x86_64-unknown-linux-gnu.tar.gz"
25+
name: lemmy-help
26+
version: "0.11.0"
27+
- name: Generate docs
28+
run: "make docgen"
29+
- name: Commit changes
30+
uses: stefanzweifel/git-auto-commit-action@v5
31+
with:
32+
commit_message: "chore: regenerate documentation"
33+
branch: ${{ github.ref }}
34+
- name: Push formatted files
35+
uses: ad-m/github-push-action@master
36+
with:
37+
github_token: ${{ secrets.GITHUB_TOKEN }}
38+
branch: ${{ github.ref }}

.github/workflows/format.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,23 @@ on:
77
- ".github/**"
88
- "**.md"
99

10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
1014
jobs:
1115
stylua:
1216
runs-on: ubuntu-latest
1317
steps:
14-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1519
- name: Setup and run stylua
16-
uses: JohnnyMorganz/stylua-action@v3
20+
uses: JohnnyMorganz/stylua-action@v4
1721
with:
1822
token: ${{ secrets.GITHUB_TOKEN }}
1923
version: v0.19.1
2024
args: --config-path=stylua.toml .
2125
- name: Commit changes
22-
uses: stefanzweifel/git-auto-commit-action@v4
26+
uses: stefanzweifel/git-auto-commit-action@v5
2327
with:
2428
commit_message: "chore: autoformat with stylua"
2529
branch: ${{ github.ref }}

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
luacheck:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- uses: nebularg/actions-luacheck@v1.1.0
13+
- uses: actions/checkout@v4
14+
- uses: nebularg/actions-luacheck@v1.1.2
1515
with:
1616
files: 'lua/'
1717
config: 'https://raw.githubusercontent.com/NTBBloodbath/rest.nvim/main/.luacheckrc'

.github/workflows/luarocks.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Luarocks release
22

33
on:
44
push:
5-
release:
5+
releases:
66
types:
77
- created
88
tags:
@@ -15,10 +15,20 @@ jobs:
1515
name: Luarocks upload
1616
steps:
1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
with:
2020
fetch-depth: 0 # Required to count the commits
21+
- name: Install build dependencies
22+
run: sudo apt-get install -y libcurl4-gnutls-dev
2123
- name: Luarocks Upload
2224
uses: mrcjkb/luarocks-tag-release@v5
25+
with:
26+
dependencies: |
27+
nvim-nio
28+
lua-curl
29+
mimetypes
30+
xml2lua
31+
extra_luarocks_args: |
32+
CURL_INCDIR=/usr/include/x86_64-linux-gnu
2333
env:
2434
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
workflow_dispatch:
78

89
permissions:
910
contents: write
@@ -16,5 +17,6 @@ jobs:
1617
steps:
1718
- uses: google-github-actions/release-please-action@v3
1819
with:
20+
token: ${{ secrets.CI_TOKEN }}
1921
release-type: simple
2022
package-name: rest.nvim

.github/workflows/test.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
# Changelog
22

3-
## [1.2.1](https://github.com/rest-nvim/rest.nvim/compare/v1.2.0...v1.2.1) (2024-03-15)
4-
5-
6-
### Bug Fixes
7-
8-
* get json content type for custom content types ([#297](https://github.com/rest-nvim/rest.nvim/issues/297)) ([91badd4](https://github.com/rest-nvim/rest.nvim/commit/91badd46c60df6bd9800c809056af2d80d33da4c))
9-
10-
## [1.2.0](https://github.com/rest-nvim/rest.nvim/compare/v1.1.0...v1.2.0) (2024-03-05)
11-
12-
13-
### Features
14-
15-
* add pre-script configuration ([#287](https://github.com/rest-nvim/rest.nvim/issues/287)) ([2bb9570](https://github.com/rest-nvim/rest.nvim/commit/2bb957091ff8ddf1945308fae2925ce76f93b9ed))
16-
173
## [1.1.0](https://github.com/rest-nvim/rest.nvim/compare/v1.0.1...v1.1.0) (2024-02-12)
184

195

0 commit comments

Comments
 (0)