0f41cab
refactor: rename pkgs (#408)
Ayman Bagabas created
0f41cab
refactor: rename pkgs (#408)
Ayman Bagabas created
a735362
feat(deps): bump github.com/charmbracelet/wish from 1.1.1 to 1.2.0 (#407)
dependabot[bot] created
7ec3a38
feat(deps): bump github.com/google/uuid from 1.3.1 to 1.4.0 (#406)
dependabot[bot] created
e319131
feat(deps): bump github.com/go-git/go-git/v5 from 5.9.0 to 5.10.0 (#404)
dependabot[bot] created
5852219
feat(deps): bump github.com/google/uuid from 1.3.0 to 1.3.1 (#405)
dependabot[bot] created
e2e79fe
feat: job config (#402)
* feat: job config Signed-off-by: jolheiser <john.olheiser@gmail.com> * docs: add new config to readme Signed-off-by: jolheiser <john.olheiser@gmail.com> * style: appease linter Signed-off-by: jolheiser <john.olheiser@gmail.com> * review(aymanbagabas): add jobs to default config file template Signed-off-by: jolheiser <john.olheiser@gmail.com> --------- Signed-off-by: jolheiser <john.olheiser@gmail.com>
John Olheiser created
0846323
Repository webhooks (#375)
* feat: export server version * fix: move db driver imports to db package * feat: implement server webhooks - branch/tag events - collaborators events - push events - repository events - [x] Implement database logic - [x] Add database migrations - [x] Implement webhooks logic - [x] Integrate webhooks with backend - [x] Implement repository webhooks SSH command interface - [x] Implement webhook deliveries listing Fixes: https://github.com/charmbracelet/soft-serve/issues/148 Fixes: https://github.com/charmbracelet/soft-serve/pull/56 Fixes: https://github.com/charmbracelet/soft-serve/issues/49 * wip * fix: remove unnecessary webhook events * fix(db): postgres migration script * fix(db): use returning instead of LastInsertId * fix(webhook): limit the number of push commits to 20 * fix(webhook): rename html_url to http_url * fix(http): return 404 when repository on go-get not found
Ayman Bagabas created
02e1617
feat: browse local repositories (#369)
* feat: browse local repositories * refactor(ui): resolve race conditions and clean up code * feat(ui): update readme based on selected reference * feat(ui): add branch/tag commit date and hash Fixes: https://github.com/charmbracelet/soft-serve/issues/382 * fix(ui): clean up statusbar logic * fix(ui): cleanup statusbar and misc msgs * fix(ui): preserve header line when no description is available * fix(ui): match readme and list missing items styles * fix(ui): header height calculation Fixes: 43b4331f88ff (fix(ui): preserve header line when no description is available) * fix(ui): truncate refitem msg Fixes: fd0240995004 (feat(ui): add branch/tag commit date and hash) * fix(ui): dry code line number and highlight formatting * feat(ui): add blame file view Fixes: https://github.com/charmbracelet/soft-serve/issues/149 * fix: lint errors * fix(ui): NaN floats, analyse file content, and start spinner * feat(ui): use right mouse click to go back in the files tab * fix(ui): display "1" when there's only one page to display * feat(ui): add stash view Display repository stashed items * feat: run browse on "soft"
Ayman Bagabas created
5df79ee
feat(deps): bump golang.org/x/sync from 0.3.0 to 0.4.0 (#395)
dependabot[bot] created
6662e1a
feat(deps): bump golang.org/x/net from 0.15.0 to 0.17.0 (#400)
dependabot[bot] created
da50842
feat(deps): bump github.com/charmbracelet/keygen from 0.4.3 to 0.5.0 (#398)
Bumps [github.com/charmbracelet/keygen](https://github.com/charmbracelet/keygen) from 0.4.3 to 0.5.0. - [Release notes](https://github.com/charmbracelet/keygen/releases) - [Commits](https://github.com/charmbracelet/keygen/compare/v0.4.3...v0.5.0) --- updated-dependencies: - dependency-name: github.com/charmbracelet/keygen dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] and dependabot[bot] created
9503c88
feat(deps): bump github.com/charmbracelet/lipgloss from 0.8.0 to 0.9.1 (#401)
Bumps [github.com/charmbracelet/lipgloss](https://github.com/charmbracelet/lipgloss) from 0.8.0 to 0.9.1. - [Release notes](https://github.com/charmbracelet/lipgloss/releases) - [Commits](https://github.com/charmbracelet/lipgloss/compare/v0.8.0...v0.9.1) --- updated-dependencies: - dependency-name: github.com/charmbracelet/lipgloss dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] and dependabot[bot] created
8f182ec
feat(ci): add codecov config
Ayman Bagabas created
d1ab2b5
feat(deps): bump github.com/charmbracelet/log from 0.2.4 to 0.2.5 (#394)
dependabot[bot] created
35582d2
fix: remove unwanted gitattributes
`*-text` tells git to treat all files as non-text files
Ayman Bagabas created
6f0a418
feat(deps): bump modernc.org/sqlite from 1.25.0 to 1.26.0 (#391)
Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite) from 1.25.0 to 1.26.0. - [Commits](https://gitlab.com/cznic/sqlite/compare/v1.25.0...v1.26.0) --- updated-dependencies: - dependency-name: modernc.org/sqlite dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] and dependabot[bot] created
d6b6f7c
feat(deps): bump github.com/hashicorp/golang-lru/v2 from 2.0.6 to 2.0.7 (#392)
Bumps [github.com/hashicorp/golang-lru/v2](https://github.com/hashicorp/golang-lru) from 2.0.6 to 2.0.7. - [Release notes](https://github.com/hashicorp/golang-lru/releases) - [Commits](https://github.com/hashicorp/golang-lru/compare/v2.0.6...v2.0.7) --- updated-dependencies: - dependency-name: github.com/hashicorp/golang-lru/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] and dependabot[bot] created
53832a9
feat(deps): bump github.com/prometheus/client_golang
Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.16.0 to 1.17.0. - [Release notes](https://github.com/prometheus/client_golang/releases) - [Changelog](https://github.com/prometheus/client_golang/blob/v1.17.0/CHANGELOG.md) - [Commits](https://github.com/prometheus/client_golang/compare/v1.16.0...v1.17.0) --- updated-dependencies: - dependency-name: github.com/prometheus/client_golang dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] created
407c4ec
fix(ssh): add authentication middleware
We need to verify that the key used to establish the connection is the same key used for authentication, otherwise, refuse connection.
Ayman Bagabas created
9021825
feat(ci): run tests against both sqlite and postgres
Ayman Bagabas created
b8ba37b
test: use postgres in testscript
Ayman Bagabas created
fa09286
fix: postgres driver issues
Related: https://github.com/charmbracelet/soft-serve/issues/380
Ayman Bagabas created
6a42d89
fix(db): quote postgres keywords (#383)
The keyword "key" is a reserved word in Postgres and must be quoted if used as a column name. Fixes: https://github.com/charmbracelet/soft-serve/issues/380
Ayman Bagabas created
5464150
feat(deps): bump github.com/go-git/go-git/v5 from 5.8.1 to 5.9.0 (#381)
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.8.1 to 5.9.0. - [Release notes](https://github.com/go-git/go-git/releases) - [Commits](https://github.com/go-git/go-git/compare/v5.8.1...v5.9.0) --- updated-dependencies: - dependency-name: github.com/go-git/go-git/v5 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] and dependabot[bot] created
e47ac30
chore(deps): bump actions/checkout from 3 to 4 (#378)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] and dependabot[bot] created
3c747e4
feat(deps): bump golang.org/x/crypto from 0.12.0 to 0.13.0 (#379)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.12.0 to 0.13.0. - [Commits](https://github.com/golang/crypto/compare/v0.12.0...v0.13.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] and dependabot[bot] created
fd167be
fix: backend update hook arguments
Ayman Bagabas created
d1593cc
feat(deps): bump github.com/hashicorp/golang-lru/v2 from 2.0.5 to 2.0.6 (#374)
dependabot[bot] created
e35538c
chore(demo): add VHS demo.tape
Maas Lalani created
8594ecf
fix: demo gif (#373)
Maas Lalani created
abcb242
Revert "docs: update soft-serve demo GIF / screencast"
This reverts commit 0509a50c988737f23919d145c171e0bec0d853f7.
Maas Lalani created
0509a50
docs: update soft-serve demo GIF / screencast
Maas Lalani created
0353cf2
docs: add sqlite foreign key note
Ayman Bagabas created
a12b45b
feat(deps): bump github.com/gogs/git-module from 1.8.2 to 1.8.3 (#365)
Bumps [github.com/gogs/git-module](https://github.com/gogs/git-module) from 1.8.2 to 1.8.3. - [Release notes](https://github.com/gogs/git-module/releases) - [Commits](https://github.com/gogs/git-module/compare/v1.8.2...v1.8.3) --- updated-dependencies: - dependency-name: github.com/gogs/git-module dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] and dependabot[bot] created
104aa73
feat(deps): bump github.com/charmbracelet/log from 0.2.3 to 0.2.4 (#371)
dependabot[bot] created
62b9fda
feat(deps): bump github.com/charmbracelet/lipgloss from 0.7.1 to 0.8.0 (#372)
dependabot[bot] created
942d494
fix: add ssh commands back (#370)
* fix: add ssh commands back Unauthorized users would get an error message when using commands that need authorization * feat: bump charmbracelet/ssh to fix race issue
Ayman Bagabas created
09dedc4
fix: remove extra metrics label
Fixes: b0eebaa36b8a ("fix: panic on ssh lfs transfer")
Ayman Bagabas created
49ec3aa
docs: update readme (#360)
* docs: update readme in preparation of v0.6 * docs: add database section Fixes: https://github.com/charmbracelet/soft-serve/issues/363 * docs: http auth * fix: typos
Ayman Bagabas created
b0eebaa
fix: panic on ssh lfs transfer
Ayman Bagabas created
e10942e
fix: config paths on windows
Convert slashes on windows Fixes: https://github.com/charmbracelet/soft-serve/issues/367
Ayman Bagabas created
bb94850
feat(deps): bump github.com/hashicorp/golang-lru/v2 from 2.0.4 to 2.0.5
Bumps [github.com/hashicorp/golang-lru/v2](https://github.com/hashicorp/golang-lru) from 2.0.4 to 2.0.5. - [Release notes](https://github.com/hashicorp/golang-lru/releases) - [Commits](https://github.com/hashicorp/golang-lru/compare/v2.0.4...v2.0.5) --- updated-dependencies: - dependency-name: github.com/hashicorp/golang-lru/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] created
05ecf8d
feat(deps): bump golang.org/x/crypto from 0.11.0 to 0.12.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.11.0 to 0.12.0. - [Commits](https://github.com/golang/crypto/compare/v0.11.0...v0.12.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] created
e610867
feat(deps): bump github.com/go-git/go-git/v5 from 5.7.0 to 5.8.1
Bumps [github.com/go-git/go-git/v5](https://github.com/go-git/go-git) from 5.7.0 to 5.8.1. - [Release notes](https://github.com/go-git/go-git/releases) - [Commits](https://github.com/go-git/go-git/compare/v5.7.0...v5.8.1) --- updated-dependencies: - dependency-name: github.com/go-git/go-git/v5 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] created
75cf8a5
feat(deps): bump github.com/charmbracelet/log
Bumps [github.com/charmbracelet/log](https://github.com/charmbracelet/log) from 0.2.3-0.20230713155356-557335e40e35 to 0.2.3. - [Release notes](https://github.com/charmbracelet/log/releases) - [Commits](https://github.com/charmbracelet/log/commits/v0.2.3) --- updated-dependencies: - dependency-name: github.com/charmbracelet/log dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] created
f52dcd2
feat(deps): bump modernc.org/sqlite from 1.24.0 to 1.25.0
Bumps [modernc.org/sqlite](https://gitlab.com/cznic/sqlite) from 1.24.0 to 1.25.0. - [Commits](https://gitlab.com/cznic/sqlite/compare/v1.24.0...v1.25.0) --- updated-dependencies: - dependency-name: modernc.org/sqlite dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot[bot] created
882e701
feat: add collaborators with access level
Now you can add a collaborator with a specific access level Fixes: https://github.com/charmbracelet/soft-serve/issues/281
Ayman Bagabas created
c4dde1c
feat,fix: add task manager
Implement a task manager that can run different tasks given a unique ID. This is needed to accommodate expensive tasks like importing a large repository. The current behavior uses the connection's context (the SSH connection) to import the repository. However, if the server has defined an SSH `idle_timeout`, `max_timeout`, and/or the connection drops, Soft Serve cancels the git clone process and aborts importing the repository. Instead, we add the import task to the "task manager" and wait on the connection context. If a task already exists for the same repository, return `Error: import already in progress`. Fixes: https://github.com/charmbracelet/soft-serve/issues/348
Ayman Bagabas created
c7829a3
feat: print clone url on repo create
Prints the repo ssh clone url on create Fixes: https://github.com/charmbracelet/soft-serve/issues/297
Ayman Bagabas created
eaf3619
chore: update golang.org/x/net
Ayman Bagabas created