Commit Graph

2826 Commits

Author SHA1 Message Date
Marko Gaćeša
09902b02a3 Extended create PR API with IsDraft field (#242) 2023-01-23 19:49:01 +01:00
Tan Nhu
16487667aa Render PR diff snapshot in the first thread comment (#239)
Co-authored-by: Tan Nhu <tnhu@users.noreply.github.com>
2023-01-22 12:32:31 -08:00
Johannes Batzill
e2d10d06cf [MISC] Move to alpine/git:2.36.3 (#238) 2023-01-21 16:23:04 -08:00
Tan Nhu
48c6802a9f Finalize PR Code Comment integration (#237) 2023-01-20 15:29:11 -08:00
Johannes Batzill
085e63422b [MISC] Explicitly type PullReqActivity.Payload (#233) 2023-01-20 12:29:13 -08:00
Marko Gaćeša
d6ce1bc762 Added gitrpc.UpdateRef (#236) 2023-01-20 17:06:35 +01:00
Enver Bisevac
6a7cc4e518 [scm-63] fix for empty commits and diff in PR (#228) 2023-01-20 02:27:51 +01:00
Tan Nhu
56a6dba484 Implement PR code commenting using payload field (#235) 2023-01-19 16:29:38 -08:00
Marko Gaćeša
5524dfa9ba Renamed branchmonitor to service/pullreq (#234) 2023-01-19 17:53:37 +01:00
Johannes Batzill
43c497f59c [MISC] Move webhooks to 'services' package (#232) 2023-01-18 19:08:03 -08:00
Johannes Batzill
95a77e072e [MISC] Fix badrequest error in merge API (#231) 2023-01-18 18:17:18 -08:00
Johannes Batzill
ee0aae4e75 [GIT] Return 404 for listcommit in case ref isn't found (#230) 2023-01-18 17:42:18 -08:00
Tan Nhu
230fed6a52 Consolidate page spinner across UI codebase (#229) 2023-01-18 16:31:06 -08:00
Johannes Batzill
335998505e [MISC] Introduce PathStore and Move PathLogic to Controller Layer (#226)
This change is a follow up on the effort to remove transactions and sync stores from the database layer, and move them in the application layer. It is addressing the repo + space store.
The following changes are included:
- Introduce PathStore storing resource paths (repo + space)
- Add foreign key from path.repo_id/space_id to repo.id/space.id
- Add foreign key from repo/space.parent_id to space.id
- Remove repo_sync and space_sync
- Move path creation logic to repo/space controller (for both creating primary paths for new repos/spaces, as well as creating alias spaces)
- Reimplement repo/space moving on controller layer
2023-01-18 11:34:12 -08:00
Tan Nhu
e4b529d32d Consolidate NoResultCard + styling for tabs (#227) 2023-01-18 05:45:06 -08:00
Marko Gaćeša
ec4003e331 Handling branch events for PRs (#221) 2023-01-18 13:26:20 +01:00
Tan Nhu
09e3c89657 Add empty state for Compare and PR views (#225) 2023-01-17 17:12:53 -08:00
Tan Nhu
eed7b2c29b Consolidate logic to show No Result (#223)
* Add no result search view into repo listing view

* Consolidate logic to show No Result
2023-01-17 16:11:39 -08:00
Tan Nhu
1aa1123bd2 Consolidate pagination for the whole codebase + Use SearchInputWithSpinner component (#222)
* Remove center layout for empty repo info - hard to read

* Consolidate pagination for the whole codebase

* Use SearchInputWithSpinner component

* Use SearchInputWithSpinner component
2023-01-17 14:59:56 -08:00
Hitesh Aringa
66cc979334 [SCM-61]: sort in webhook list api (#199)
* [SCM-61]: order by in webhook api

* [SCM-61]: comment change

* [SCM-61]: added query filter on display name
2023-01-17 09:59:27 -08:00
Marko Gaćeša
8151b4591e PR change state API; Removed rejected state (#220) 2023-01-17 16:04:30 +01:00
Enver Bisevac
aafec0a9dc fix merge-base in diff (#206) 2023-01-17 12:36:57 +01:00
Marko Gaćeša
6705c7234d feat: [SCM-60]: return number of duplicate PR, unique partial index for PR branch uniqueness (#214) 2023-01-17 11:42:33 +01:00
Marko Gaćeša
3e92132d83 execute the list PRs API in a readonly tx (#215) 2023-01-17 11:42:08 +01:00
Tan Nhu
a611a2c038 Remove center layout for empty repo info - hard to read (#219) 2023-01-16 12:34:59 -08:00
Tan Nhu
fd5bbc6904 Fix small git url typo (#218) 2023-01-16 12:26:41 -08:00
Tan Nhu
92c82f5c44 Disable branch creation when committing first new file into an empty repo (#217) 2023-01-16 12:20:09 -08:00
Tan Nhu
797e339e02 Implement flow to create a new file when repo is empty (#216)
* Implement flow to create a new file when repo is empty

* Implement flow to create a new file when repo is empty

* Fix edit file does not show content
2023-01-16 11:51:00 -08:00
Johannes Batzill
e448c6f763 [GIT] Fix commit API for empty repo, remove unused functions 2023-01-16 10:22:49 -08:00
Marko Gaćeša
81dd8a5908 Remove GitHub CodeQL (#207) 2023-01-16 13:28:31 +01:00
Marko Gaćeša
e5dc9754cd default list of PR states should be empty (#210) 2023-01-13 18:47:42 -08:00
Tan Nhu
bbae67299c Finish API integration for PR review box (#212) 2023-01-13 13:41:07 -08:00
Tan Nhu
c31c315459 Add ability to edit PR title (#211) 2023-01-13 12:17:24 -08:00
Marko Gaćeša
4881eb3863 allow empty value in enum sanitize if default is defined (#209) 2023-01-13 19:03:25 +01:00
Tan Nhu
3b5542a61d Add Pagination for Diff view (#208) 2023-01-13 09:23:10 -08:00
Marko Gaćeša
ce55d3349c added merge commit sha fields to PR (#205) 2023-01-13 14:49:24 +01:00
Marko Gaćeša
bacda596fa Added Correct method for enum types (#194) 2023-01-13 13:59:53 +01:00
Marko Gaćeša
091ff2d618 Removed joins from the PR-related list quieries (#204) 2023-01-13 13:58:49 +01:00
Johannes Batzill
c827fa5e66 [MISC] Webhook Creation Default To Secure, Fix PR/Compare Commit Listing, Fix Merge Commit Message (#203)
This change is fixing a few things on both UI and backend side:
- update webhook creation screen to default to enable ssl verification (secure by default should always be the move)
- fix pr/compare commit listing to show correct diffs the head branch is ahead of the base branch (NOTE: THIS ONLY SHOWS THE LATEST 20 COMMITS - NO PAGINATION ADDED)
- fix merge commit message to contain the correct head branch, source repo path and pr numbers (similar'ish to github)
2023-01-13 02:49:39 -08:00
Johannes Batzill
d9a01ef9a3 [MISC] Update UI webhook creation to enable secure by default (#202) 2023-01-13 01:40:15 -08:00
Johannes Batzill
eabdf2ab86 [MISC] Show merged after PR got merged (#201) 2023-01-13 00:35:41 -08:00
Johannes Batzill
3ee51e29a4 [MISC] move custom filter/sort parsing methods to their respective files 2023-01-12 23:08:45 -08:00
Johannes Batzill
65c59d0b5b [MISC] Fix review bugs, regenerate swagger from latest service, fix webhook.has_secret in swagger (#198)
This change contains the following changes:
- allow submitting reviews without comment for approve
- fix openapi for /reviews api and fix UI calls for submitting reviews
- fix recently broken openapi for webhook (it removed has_secret field as part of openapi refactor)
- fix fatal submit review bug (we passed repo.UID not repo.GitUID to gitrpc - not sure how that ever worked?)
- add missing merge pr activity to list of all pr activity enum values
- return all PR states by default
- show Open PRs by default (instead of all) and fix state filtering query
- regenerate code services based on latest swagger
- fix UI code to work with regenerated code service
2023-01-12 22:39:38 -08:00
Tan Nhu
b7e0f6cce5 Minor change to disable Review changes button (#197)
* Minor change to disable Review changes button

* Update PR listing icons
2023-01-12 21:04:08 -08:00
Johannes Batzill
517166965b [UI] Add Tag Events, Enable All Events, Fix Empty Secret (#196)
* webhook edit from only show SECRET_MASK if webhook has a secret

* Add tag events, support 'all events', hide 'push events'
2023-01-12 18:24:37 -08:00
Tan Nhu
73bc9a55f7 Implement PR review changes flow (#195) 2023-01-12 12:45:31 -08:00
Hitesh Aringa
fe00db23f9 [SCM-35]: default branch delete protection (#183)
* [SCM-35]: default branch delete protection
2023-01-12 09:59:09 -08:00
Tan Nhu
38fb97b8e2 Add placeholder for Review changes (#193) 2023-01-12 09:56:01 -08:00
Marko Gaćeša
8909037ec7 enum types should have Enum() method (#192) 2023-01-12 17:13:03 +01:00
Tan Nhu
1c5a588a83 Hide Review button when PR is merged + Fix PR.id issue (#191)
* Replace all references of PR.id by PR.number

* Hide Review button when PR is merged
2023-01-12 04:20:27 -08:00