Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
cf72996
feat(mvp): mvp
linrongbin16 Jan 6, 2024
3dbac19
Update giturlparser-scm-1.rockspec
linrongbin16 Jan 6, 2024
4327e31
Create ci.yml
linrongbin16 Jan 6, 2024
0c9a346
Update ci.yml
linrongbin16 Jan 6, 2024
f9496e9
Create .luacheckrc
linrongbin16 Jan 6, 2024
11476f5
Create .editorconfig
linrongbin16 Jan 6, 2024
54e8fd5
Create .luacov
linrongbin16 Jan 6, 2024
6717c69
Update .luacov
linrongbin16 Jan 6, 2024
3f874b1
Create .luarc.json
linrongbin16 Jan 6, 2024
a24cec9
Create .stylua.toml
linrongbin16 Jan 6, 2024
c6af454
Create codecov.yml
linrongbin16 Jan 6, 2024
f468e02
Create version.txt
linrongbin16 Jan 6, 2024
63558f0
Create giturlparser.lua
linrongbin16 Jan 6, 2024
a7ab26d
Create giturlparser_spec.lua
linrongbin16 Jan 6, 2024
7319ef7
chore(pr): auto-commit
linrongbin16 Jan 6, 2024
f0de310
Update ci.yml
linrongbin16 Jan 6, 2024
f99f013
Update giturlparser-scm-1.rockspec
linrongbin16 Jan 6, 2024
511bc24
Update ci.yml
linrongbin16 Jan 6, 2024
bfaeee4
Update ci.yml
linrongbin16 Jan 6, 2024
55c18a5
Update giturlparser_spec.lua
linrongbin16 Jan 6, 2024
a36a022
chore(pr): auto-commit
linrongbin16 Jan 6, 2024
6bb40e4
Update giturlparser-scm-1.rockspec
linrongbin16 Jan 6, 2024
bbef46e
Update giturlparser-scm-1.rockspec
linrongbin16 Jan 6, 2024
5db4c13
Update giturlparser-scm-1.rockspec
linrongbin16 Jan 6, 2024
ecb4415
Update giturlparser-scm-1.rockspec
linrongbin16 Jan 6, 2024
2ab13e5
Update giturlparser-scm-1.rockspec
linrongbin16 Jan 6, 2024
037259f
Update giturlparser-scm-1.rockspec
linrongbin16 Jan 6, 2024
612dc5e
Update ci.yml
linrongbin16 Jan 6, 2024
7da75e4
Update ci.yml
linrongbin16 Jan 6, 2024
5e09302
Update README.md
linrongbin16 Jan 6, 2024
e9841fe
Update README.md
linrongbin16 Jan 6, 2024
af38f74
Update README.md
linrongbin16 Jan 6, 2024
9713208
Update README.md
linrongbin16 Jan 6, 2024
240c9c6
Update README.md
linrongbin16 Jan 6, 2024
f41b8dc
Update README.md
linrongbin16 Jan 6, 2024
2d63f24
Update ci.yml
linrongbin16 Jan 6, 2024
9840e39
Update ci.yml
linrongbin16 Jan 6, 2024
f2385aa
Update ci.yml
linrongbin16 Jan 6, 2024
fd4fa82
Update ci.ymlp
linrongbin16 Jan 6, 2024
4cbfe98
Update ci.yml
linrongbin16 Jan 6, 2024
02631a5
Update giturlparser-scm-1.rockspec
linrongbin16 Jan 6, 2024
4fb224d
Update ci.yml
linrongbin16 Jan 6, 2024
70eb78c
Update ci.yml
linrongbin16 Jan 6, 2024
fb80b4b
Update giturlparser-scm-1.rockspec
linrongbin16 Jan 6, 2024
094edb0
Update giturlparser-scm-1.rockspec
linrongbin16 Jan 6, 2024
46ed837
chore
linrongbin16 Jan 6, 2024
440a510
chore
linrongbin16 Jan 6, 2024
1ecadeb
chore
linrongbin16 Jan 6, 2024
3b04371
chore
linrongbin16 Jan 6, 2024
bbd1560
chore
linrongbin16 Jan 6, 2024
26b0848
chore
linrongbin16 Jan 6, 2024
a50a0a9
chore
linrongbin16 Jan 6, 2024
0033b5e
chore
linrongbin16 Jan 6, 2024
419d63a
chore
linrongbin16 Jan 6, 2024
3d840bd
chore
linrongbin16 Jan 6, 2024
68e7452
chore
linrongbin16 Jan 6, 2024
474c5fd
chore
linrongbin16 Jan 6, 2024
aef5e92
chore
linrongbin16 Jan 6, 2024
e149408
chore
linrongbin16 Jan 6, 2024
e067e5c
chore
linrongbin16 Jan 6, 2024
5e446c3
chore
linrongbin16 Jan 6, 2024
839d36b
chore
linrongbin16 Jan 6, 2024
e49a2c7
chore
linrongbin16 Jan 6, 2024
69a01dd
chore
linrongbin16 Jan 6, 2024
72ac718
chore
linrongbin16 Jan 6, 2024
9799057
chore
linrongbin16 Jan 6, 2024
72ad794
chore
linrongbin16 Jan 6, 2024
e699b1c
Update giturlparser-dev-1.rockspec
linrongbin16 Jan 6, 2024
435073d
Update ci.yml
linrongbin16 Jan 6, 2024
be2b667
Update ci.yml
linrongbin16 Jan 6, 2024
67193e9
Update giturlparser-dev-1.rockspec
linrongbin16 Jan 6, 2024
4ed7b40
Update giturlparser-dev-1.rockspec
linrongbin16 Jan 6, 2024
f396c7c
Update ci.yml
linrongbin16 Jan 6, 2024
b0a3916
Update ci.yml
linrongbin16 Jan 6, 2024
fd51994
Update ci.yml
linrongbin16 Jan 6, 2024
940727e
Update ci.yml
linrongbin16 Jan 6, 2024
411ca29
Update ci.yml
linrongbin16 Jan 6, 2024
d9b27b8
Update ci.yml
linrongbin16 Jan 6, 2024
1b6c130
Update ci.yml
linrongbin16 Jan 6, 2024
2f3eec7
Update giturlparser-dev-1.rockspec
linrongbin16 Jan 6, 2024
f4326dc
Update giturlparser-dev-1.rockspec
linrongbin16 Jan 6, 2024
eba8685
Update giturlparser-dev-1.rockspec
linrongbin16 Jan 6, 2024
f93e60f
Rename src/giturlparser.lua to giturlparser.lua
linrongbin16 Jan 6, 2024
4f977d7
Update ci.yml
linrongbin16 Jan 6, 2024
1a89838
Update .luacov
linrongbin16 Jan 6, 2024
d80b601
Update ci.yml
linrongbin16 Jan 6, 2024
f1dc272
Update ci.yml
linrongbin16 Jan 6, 2024
876ff38
Update ci.yml
linrongbin16 Jan 6, 2024
78149c3
Update ci.yml
linrongbin16 Jan 6, 2024
968480f
Update ci.yml
linrongbin16 Jan 6, 2024
5d98051
Update ci.yml
linrongbin16 Jan 6, 2024
89d71ca
Update ci.yml
linrongbin16 Jan 6, 2024
192ab84
Update ci.yml
linrongbin16 Jan 6, 2024
0dd75a7
Update ci.yml
linrongbin16 Jan 6, 2024
2d78f62
Update ci.yml
linrongbin16 Jan 6, 2024
81860fd
Update ci.yml
linrongbin16 Jan 6, 2024
6be5e7e
Update ci.yml
linrongbin16 Jan 6, 2024
3c223ab
Update ci.yml
linrongbin16 Jan 6, 2024
de43707
Update ci.yml
linrongbin16 Jan 6, 2024
579c2b8
Update ci.yml
linrongbin16 Jan 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true
end_of_line = lf
insert_final_newline = false
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
indent_size = 4

[*.lua]
indent_size = 2
105 changes: 105 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: CI
on:
pull_request:
branches:
- main
push:
branches:
- main
concurrency:
group: ${{ github.ref }}-ci
cancel-in-progress: true
jobs:
pr_conventional_commit:
name: Conventional Commit
if: ${{ github.ref != 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ytanikin/PRConventionalCommits@1.1.0
with:
task_types: '["feat","fix","docs","test","ci","refactor","perf","chore","revert","break"]'
luacheck:
name: Lua Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: JohnnyMorganz/stylua-action@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
version: latest
args: --config-path .stylua.toml ./ ./spec
- uses: lunarmodules/luacheck@v1
with:
args: giturlparser.lua --config .luacheckrc
- uses: stevearc/nvim-typecheck-action@v1
with:
path: giturlparser.lua
level: Information
configpath: ".luarc.json"
- uses: stefanzweifel/git-auto-commit-action@v4
if: ${{ github.ref != 'refs/heads/main' }}
with:
commit_message: "chore(pr): auto-commit"
push_options: "--force"
unit_test:
name: Unit Test
strategy:
matrix:
lua_version: ["5.1.5","5.2.4","5.3.5","luajit-2.1.0-beta3"]
needs:
- luacheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: leafo/gh-actions-lua@v10
with:
luaVersion: ${{ matrix.lua_version }}
- uses: leafo/gh-actions-luarocks@v4
- name: Install Luacov
run: |
echo 'pwd'
echo $PWD
echo 'ls-1'
ls -lha
luarocks install luacov
luarocks install cluacov
- uses: lunarmodules/busted@v2
with:
args: .
#- name: Generate Coverage Reports
# shell: bash
# run: |
# echo "ls ."
# ls -l .
# echo "run luacov"
# luacov
# echo "ls ."
# ls -l .
# echo "cat ./luacov.report.out"
# cat ./luacov.report.out
#- uses: codecov/codecov-action@v3
# with:
# files: luacov.report.out
# env:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
release:
name: Release
if: ${{ github.ref == 'refs/heads/main' }}
needs:
- unit_test
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: simple
package-name: giturlparser.lua
- uses: actions/checkout@v4
- uses: rickstaa/action-create-tag@v1
if: ${{ steps.release.outputs.release_created }}
with:
tag: stable
message: "Current stable release: ${{ steps.release.outputs.tag_name }}"
tag_exists_error: false
force_push_tag: true
5 changes: 5 additions & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
globals = { "describe", "before_each", "it", "assert" }
max_line_length = 500
unused = false
unused_args = false
exclude_files = {}
4 changes: 4 additions & 0 deletions .luacov
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
modules = {
["giturlparser"] = "giturlparser.lua",
}
exclude = {}
4 changes: 4 additions & 0 deletions .luarc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"diagnostics.globals": ["describe", "before_each", "it", "jit"],
"workspace.checkThirdParty": "Disable"
}
4 changes: 4 additions & 0 deletions .stylua.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
column_width = 80
line_endings = "Unix"
indent_type = "Spaces"
indent_width = 2
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@ Pure Lua implemented git URL parsing library, e.g. the output of `git remote get

## Features

* [ ] Single lua file & zero dependencies.
* [ ] Single file & zero dependency.
* [ ] Compatible with lua-5.1/luajit-2.
* [ ] Compatible with RFC 3689.

## Install

## API References
## API

## References

1. [What are the supported git url formats?](https://stackoverflow.com/questions/31801271/what-are-the-supported-git-url-formats)
2. [4.1 Git on the Server - The Protocols](https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols)

## Development

Expand Down
8 changes: 8 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
coverage:
status:
project:
default:
threshold: 90%
patch:
default:
threshold: 90%
19 changes: 19 additions & 0 deletions giturlparser-dev-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package = "giturlparser"
version = "dev-1"
source = {
url = "git+https://github.com/linrongbin16/giturlparser.lua.git",
}
description = {
summary = "Pure Lua implemented git URL parsing library.",
detailed = "Pure Lua implemented git URL parsing library.",
homepage = "https://github.com/linrongbin16/giturlparser.lua",
license = "MIT",
}
dependencies = {
}
build = {
type = "builtin",
modules = {
giturlparser = "giturlparser.lua",
},
}
17 changes: 0 additions & 17 deletions giturlparser-scm-1.rockspec

This file was deleted.

Loading