Commit Graph

300 Commits

Author SHA1 Message Date
Sahithi Kolichala
7c4fe6292f feat: [SCM-42]: added tabs to settings page (#108)
* feat: [SCM-42]: added setting tabs

* feat: [SCM-42]: added settingtabs

* feat: [SCM-42]: added tabs to the settings page

* feat: [SCM-42]: fixed review comments
2022-12-02 21:08:03 -08:00
Shubham Banthia
c6e178c71c adding server hook implementation for post and pre receive (#109)
* adding server hook implementation for post and pre receive

* addressing comments

* update logging

* updating import order

* adding file header for license
2022-12-02 13:25:53 -08:00
Marko Gaćeša
a50e9a9951 fix list pullreq API openapi spec (#110) 2022-12-02 14:29:10 +01:00
Sahithi Kolichala
4c8323584b feat: [SCM-42]: fixed the reposetings content (#107) 2022-12-01 13:59:04 -08:00
Sahithi Kolichala
caea272046 feat: [SCM-42]: added listing page (#106) 2022-12-01 13:55:04 -08:00
Tan Nhu
edb6baabc6 Refactor to use shorter names + initial code for PR (#104) 2022-12-01 11:21:25 -08:00
Enver Bisevac
c64874143d allow line endings from input 2022-11-30 23:30:41 +01:00
Enver Bisevac
7a54ef9d65 fix with file content on commit, fix linter, removed unused provider 2022-11-30 22:36:01 +01:00
Sahithi Kolichala
08f8c14055 feat: [SCM-42]: added createwebhook form (#103)
* feat: [SCM-42]: added createwebhook form

* fix: [SCM-42]: mdified the string

* fix: [SCM-42]: use strings for strings
2022-11-30 11:02:42 -08:00
Marko Gaćeša
1f4ac7e4b4 pullreq: list API (#99) 2022-11-30 13:56:29 +01:00
Tan Nhu
6e5147578b Minor padding improvements (#102) 2022-11-29 20:01:13 -08:00
Shubham Banthia
c7df722c8a adding server side hook for update (#94)
* adding server side hook for update

* addressing comments

* update comments for command
2022-11-29 19:51:08 -08:00
Sahithi Kolichala
e410681739 fix: [SCM-42]: fixed the webhook page header (#101) 2022-11-29 14:09:50 -08:00
Marko Gaćeša
49cd521593 comment fix (#98) 2022-11-29 17:00:28 +01:00
Marko Gaćeša
1eba93695b feat: pull requests (#89)
* feat: pull requests, data layer

* pull requests: api layer

* add pull request number

* added auth check
2022-11-29 13:51:59 +01:00
Tan Nhu
a567a6ce76 Fix highlighting not enable at root level (#97) 2022-11-29 03:11:27 -08:00
Tan Nhu
a90fc1c59e Fix 500 exception when editing a file (#96) 2022-11-29 02:48:37 -08:00
Tan Nhu
505d72049b Finalize API integration for commits (#95) 2022-11-29 02:21:23 -08:00
Enver Bisevac
2b1bf42e3d merged changes 2022-11-29 11:09:06 +01:00
Enver Bisevac
9257abcd91 Merge branch 'main' of github.com:harness/gitness 2022-11-29 11:07:25 +01:00
Enver Bisevac
ee40f2af7a title + description in commit files 2022-11-29 11:05:35 +01:00
Sahithi Kolichala
b8cc24c491 feat: [SCM-42]: added route for createwebhook (#93)
* feat: added route for createwebhook

* feat: added createwebhook route
2022-11-28 14:48:30 -08:00
Enver Bisevac
732e1914ae minor refactoring and optimization 2022-11-25 18:58:20 +01:00
Tan Nhu
17c93350ae feat: [SCM-36]: Refactor SCM to CODE (#92) 2022-11-23 16:39:41 -08:00
Sahithi Kolichala
bb6850f13f added settings empty flow (#90) 2022-11-23 13:38:03 -08:00
Tan Nhu
68de8e236b Fix branches pagination (#88) 2022-11-23 02:53:51 -08:00
Enver Bisevac
630c9b553f ordering imports linter and writer (#85) 2022-11-22 23:42:39 +01:00
Tan Nhu
cc6fbbf58d Resolve cicular dependency (#87) 2022-11-22 14:12:16 -08:00
Enver Bisevac
ad619c7e3c [feat]ability to commit files using REST api (#82)
* initial work on commit files

* minor improvements, grpc server interceptors and more

* compare file old sha and current sha

* added some validation steps

* config immutable, introduce temp repos dir

* handler added to standalone

* fix CI linter, fix minor bug on update

* wire generator files
2022-11-22 19:24:40 +01:00
Tan Nhu
362137440f Use new BranchTagSelect in creating a new branch modal (#84)
* Use new BranchTagSelect in creating a new branch modal

* Use new BranchTagSelect in creating a new branch modal
2022-11-22 03:16:24 -08:00
Tan Nhu
49736b308c Add BranchTagSelect component (#83)
* Fix message encoding

* Add prototype for BranchTagSelect component

* Finish BranchAndTag component
2022-11-22 02:35:18 -08:00
Tan Nhu
e5fe4b67fe Fix message encoding (#81) 2022-11-17 03:03:50 -08:00
Tan Nhu
21eb0f61b6 Fix branch sorting (#80)
* Implement Branch item actions

* Implement Branch item actions

* Fix sorting
2022-11-17 02:02:26 -08:00
Tan Nhu
6d8c979e7c Implement Branch item actions (#79)
* Implement Branch item actions

* Implement Branch item actions
2022-11-17 01:48:48 -08:00
Marko Gaćeša
f1644f8e98 fixed headers write when handling openapi.yaml (#76) 2022-11-17 10:31:29 +01:00
Tan Nhu
7116c2fbe4 Implement Create Branch (#78)
* Update new icons

* Implement Create Branch
2022-11-17 00:16:57 -08:00
Johannes Batzill
60f0ea969d [API] Add API For Commit Divergence Calulation (#77)
This commit contains the following changes:
- Add `commits/calculate_divergence` API to calculate commit divergence of reference pairs
- Rename `serviceAccounts` to `service_accounts` to follow REST best practices
2022-11-16 16:53:31 -08:00
Tan Nhu
f204a5a2f8 Fix double ? in API URL (#75) 2022-11-15 13:21:31 -08:00
Enver Bisevac
86716b4a0c [bug] authentication on push to public repo (#74)
* authentication on push to public repo

* receivepack or uploadpack this should also be enum.PermissionRepoEdit or enum.PermissionRepoView

* accountID used for realm
2022-11-15 21:59:58 +01:00
Tan Nhu
782c6f2bd7 Refactor type system + add flow to copy/edit/delete a file (#73)
* Fix double query

* Add file toolbar buttons + wire up copy, delete, etc...

* Refactor type system
2022-11-15 02:42:59 -08:00
Enver Bisevac
07a630c40b repoStore findref fixed 2022-11-14 13:08:28 +01:00
Tan Nhu
5ab69952e2 Disable caching and sniffing via HTTP headers for UI main entry resources (#72) 2022-11-13 20:18:07 -08:00
Enver Bisevac
93fc430776 [bug] git clone/pull/push auth using Basic Authorization fixed (#66)
* git clone/pull/push auth using Basic Authorization fixed

* use api key as git login

* middleware renamed to RequiredInGitPath

* remove requiredingitpath middleware

* requested changes

* requested changes

* minor code cleanup
2022-11-11 07:59:32 +01:00
Johannes Batzill
681e1f1c14 [SWAGGER] Add create/delete branch swagger, fix existing swagger (#71)
This change includes the following:
- add swagger for create / delete branch api
- remove `json` tag from fields of swagger objects that only occur in the path
2022-11-10 21:21:38 -08:00
Johannes Batzill
c55c53deab [API] Add Create + Delete Branch API (+ Basic GIT Error Propagation) (#70)
This change adds the following:
- create / delete branch
- basic error propagation from git to user (notfound, conflict, invalidinput)
- create repo root folder in server instead of service constructor
2022-11-10 20:57:31 -08:00
Tan Nhu
81040d0453 Fix double query (#69) 2022-11-10 17:46:07 -08:00
Tan Nhu
31a58e3172 Add routingId to support Harness gateway + Prototype for Commit modal (#68)
* Implement file path edit input

* Implement file path edit input - cont

* Prototype for Commit modal

* Add routingId to support Harness gateway
2022-11-10 15:17:55 -08:00
Johannes Batzill
c8cee4d250 [Misc] Preparation for Container Deployment (#67)
This change is fixing our docker file which is used to build our harness code image used for PR deployments.
Furthermore, the change contains some logging improvements that were added along the way of setting up the PR environment.
2022-11-09 23:03:40 -08:00
Tan Nhu
b93c0ce103 Update git clone URL (#65) 2022-11-08 19:45:38 -08:00
Johannes Batzill
ff2f949e78 add GITURL to repo apis list and create (#64)
- rename repo.url to repo.GitURL to avoid ambiguity
- add support to create / list api
- add default value (http://localhost:3000)
- remove handler backfilling host / port to simplify flow (can be added if needed)
2022-11-08 19:35:49 -08:00