Skip to content

Commit

Permalink
feat!: release v2, it's finally here :)
Browse files Browse the repository at this point in the history
* 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
  ...
  • Loading branch information
NTBBloodbath committed Mar 18, 2024
2 parents 1ce984c + f09e225 commit 72e2662
Show file tree
Hide file tree
Showing 58 changed files with 4,985 additions and 2,443 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/docgen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: format

on:
push:
branches: [main]
paths-ignore:
- ".github/**"
- "**.md"

permissions:
contents: write
pull-requests: read

jobs:
docgen:
runs-on: ubuntu-latest
name: Generate documentation
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up lemmy-help
uses: supplypike/setup-bin@v3
with:
uri: "https://github.com/numToStr/lemmy-help/releases/download/v0.11.0/lemmy-help-x86_64-unknown-linux-gnu.tar.gz"
name: lemmy-help
version: "0.11.0"
- name: Generate docs
run: "make docgen"
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: regenerate documentation"
branch: ${{ github.ref }}
- name: Push formatted files
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}
10 changes: 7 additions & 3 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,23 @@ on:
- ".github/**"
- "**.md"

permissions:
contents: write
pull-requests: write

jobs:
stylua:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Setup and run stylua
uses: JohnnyMorganz/stylua-action@v3
uses: JohnnyMorganz/stylua-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: v0.19.1
args: --config-path=stylua.toml .
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: autoformat with stylua"
branch: ${{ github.ref }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
luacheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: nebularg/[email protected].0
- uses: actions/checkout@v4
- uses: nebularg/[email protected].2
with:
files: 'lua/'
config: 'https://raw.githubusercontent.com/NTBBloodbath/rest.nvim/main/.luacheckrc'
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/luarocks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Luarocks release

on:
push:
release:
releases:
types:
- created
tags:
Expand All @@ -15,10 +15,20 @@ jobs:
name: Luarocks upload
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # Required to count the commits
- name: Install build dependencies
run: sudo apt-get install -y libcurl4-gnutls-dev
- name: Luarocks Upload
uses: mrcjkb/luarocks-tag-release@v5
with:
dependencies: |
nvim-nio
lua-curl
mimetypes
xml2lua
extra_luarocks_args: |
CURL_INCDIR=/usr/include/x86_64-linux-gnu
env:
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: write
Expand All @@ -16,5 +17,6 @@ jobs:
steps:
- uses: google-github-actions/release-please-action@v3
with:
token: ${{ secrets.CI_TOKEN }}
release-type: simple
package-name: rest.nvim
14 changes: 0 additions & 14 deletions .github/workflows/test.yml

This file was deleted.

14 changes: 0 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
# Changelog

## [1.2.1](https://github.com/rest-nvim/rest.nvim/compare/v1.2.0...v1.2.1) (2024-03-15)


### Bug Fixes

* 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))

## [1.2.0](https://github.com/rest-nvim/rest.nvim/compare/v1.1.0...v1.2.0) (2024-03-05)


### Features

* add pre-script configuration ([#287](https://github.com/rest-nvim/rest.nvim/issues/287)) ([2bb9570](https://github.com/rest-nvim/rest.nvim/commit/2bb957091ff8ddf1945308fae2925ce76f93b9ed))

## [1.1.0](https://github.com/rest-nvim/rest.nvim/compare/v1.0.1...v1.1.0) (2024-02-12)


Expand Down
Loading

0 comments on commit 72e2662

Please sign in to comment.