1
0
mirror of https://github.com/harness/drone.git synced 2025-05-10 17:40:56 +00:00

13 Commits

Author SHA1 Message Date
Enver Bisevac
1f86b3c73d [fix] merge commit is blocked with dbtx mutex lock () 2023-01-26 13:41:45 +01:00
Marko Gaćeša
825336d0e4 Added missing context in some of the log calls () 2023-01-25 14:06:48 +01:00
Marko Gaćeša
7a92d8e110 PR events and PR head ref () 2023-01-25 11:19:58 +01:00
Johannes Batzill
085e63422b [MISC] Explicitly type PullReqActivity.Payload () 2023-01-20 12:29:13 -08:00
Enver Bisevac
6a7cc4e518 [scm-63] fix for empty commits and diff in PR () 2023-01-20 02:27:51 +01:00
Johannes Batzill
95a77e072e [MISC] Fix badrequest error in merge API () 2023-01-18 18:17:18 -08:00
Johannes Batzill
335998505e [MISC] Introduce PathStore and Move PathLogic to Controller Layer ()
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
Marko Gaćeša
8151b4591e PR change state API; Removed rejected state () 2023-01-17 16:04:30 +01:00
Marko Gaćeša
e5dc9754cd default list of PR states should be empty () 2023-01-13 18:47:42 -08:00
Marko Gaćeša
bacda596fa Added Correct method for enum types () 2023-01-13 13:59:53 +01:00
Johannes Batzill
c827fa5e66 [MISC] Webhook Creation Default To Secure, Fix PR/Compare Commit Listing, Fix Merge Commit Message ()
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
Marko Gaćeša
8909037ec7 enum types should have Enum() method () 2023-01-12 17:13:03 +01:00
Enver Bisevac
63de576d08 [feat] initial work on merging PR ()
* initial work on merging PR

* code refactored based on requested changes

* requested changes
2023-01-10 02:09:43 +01:00