Commit Graph

2527 Commits (devcontainer-setup)

Author SHA1 Message Date
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
Tan Nhu b2bf061679 Replace all references of PR.id by PR.number (#190) 2023-01-12 02:18:16 -08:00
Tan Nhu eb8d125f8b Minor text change (#189) 2023-01-12 02:05:50 -08:00
Tan Nhu 86bf9cb0c4 Render PR activity system type (#188) 2023-01-12 01:46:29 -08:00
Tan Nhu 6719e11c09 Add styling for two PR states (#187)
* Refresh activities after merging

* Fix activities API call using wrong PR number

* Update logic to submit webhook secret

* Update webhook with new fields (display_name, desc)

* Add styling for two PR states
2023-01-12 01:14:26 -08:00
Johannes Batzill 155563615b [MISC] Minor Cleanup in `types` + `enum` Package (#186) 2023-01-11 23:16:07 -08:00
Johannes Batzill 5b55f48772 [Tags] Adding EVENT and WEBHOOK Support For Tags (#185)
Adding tagcreated, tagupdated, and tagdeleted events.
Adding tag_created, tag_updated, and tag_deleted webhooks
2023-01-11 20:56:00 -08:00
Johannes Batzill d4d74f0f44 [SWAGGER] update swagger with latest webhook changes and re-render web services (#184) 2023-01-11 17:41:01 -08:00
Johannes Batzill a74d779dc4 [Webhook] Add display_name/description/latest_execution_result to webhook (#180)
This PR adds the following fields to webhooks:
- 'DisplayName' - the display name of the webhook for easier recognition in UI (no uniqueness guarantees)
- 'Description' - an (optional) description of the webhook
 - 'LatestExecutionResult' - contains the result of the latest execution of the webhook
2023-01-11 17:11:10 -08:00
Johannes Batzill 5e3837b9cf [MISC] disable 'update' git hook (#181) 2023-01-11 17:09:46 -08:00
Tan Nhu 79318bd522 Fix activities API call using wrong PR number (#179)
* Refresh activities after merging

* Fix activities API call using wrong PR number
2023-01-11 12:02:22 -08:00
Marko Gaćeša 24e03c03e0 Added principal info cache (#173)
* added principal info cache

* updated code based on the PR comments

* updated implementation of deduplicate()

* minor changes

* [K, T] -> [K, V]
2023-01-11 20:32:37 +01:00
Johannes Batzill d1dd518b3f add commit details to webhook payload (#175) 2023-01-11 10:51:28 -08:00
Enver Bisevac 927e8a7e8c Merge branch 'main' of github.com:harness/gitness 2023-01-11 18:55:31 +01:00
Enver Bisevac 81196ce3e9 fix pr merge openapi path 2023-01-11 18:49:32 +01:00
Tan Nhu f7962785aa Add minor webhook edit flow improvements (#178) 2023-01-11 09:10:59 -08:00
Tan Nhu abd132fdf6 Implement Webhook CRUD (#177) 2023-01-11 08:44:50 -08:00
Enver Bisevac 2c62dda460 [maint] added ReadTree method to git adapter (#174)
* added ReadTree method in git adapter

* minor fix and rebase to main
2023-01-11 00:32:51 +01:00
Johannes Batzill a426cdd69b [GIT] Add Support for Other Git Clients (#171) 2023-01-10 14:35:09 -08:00
Marko Gaćeša afd86bacb0 Hide PR internal fields (#169) 2023-01-10 18:22:20 +01:00
Enver Bisevac 2f5339ece5 merge operation refactored (#172) 2023-01-10 13:54:08 +01:00
Enver Bisevac 63de576d08 [feat] initial work on merging PR (#170)
* initial work on merging PR

* code refactored based on requested changes

* requested changes
2023-01-10 02:09:43 +01:00
Johannes Batzill 1a84e19ce4 [MISC] Add internal API URL to `url.Provider` (#168) 2023-01-06 14:17:41 -08:00
Johannes Batzill 5cb824debd [feat]: Add Git Server Hook Support (#159)
This change is adding git server hook components:
- githook CLI implementation
- githook api handlers
- githook controler
2023-01-06 12:15:11 -08:00
Marko Gaćeša 65b49a933a pull request reviewers (#167) 2023-01-06 20:29:20 +01:00
Johannes Batzill 777eaadba7 regenerate web services to update to latest set of webhook triggers (#166) 2023-01-06 02:53:16 -08:00
Tan Nhu 1c769238f1 Small optimization when editing PR description (#165) 2023-01-06 02:12:01 -08:00
Johannes Batzill 2006f769c9 [Webhook] Add url.Provider, Add principal to branch webhooks (#163) 2023-01-06 01:57:26 -08:00
Tan Nhu 4938718aca Add Changes integration into PR Compare view (#164) 2023-01-06 01:56:37 -08:00
Tan Nhu 4c6c2b3b56 Fix service generation bug + fix reply to comment thread rendering (#162) 2023-01-05 23:08:39 -08:00
Tan Nhu b2c4de4751 Full API integration for PR Conversation tab (#161) 2023-01-05 21:26:50 -08:00
Johannes Batzill 06721dcf20 [Techdebt] merge user/service/serviceaccount stores into single principal store (#160)
This change merges the `UserStore`, `ServiceStore`, and `ServiceAccountStore` into a single `PrincipalStore`.
2023-01-05 15:58:18 -08:00
Johannes Batzill 6c567b38d0 [MISC] Move GitRPC to Read/WriteRequest, Update Create/Delete Branch to use Push, Setup githook Symlink, Accept Incoming X-Request-Id (#157) 2023-01-05 11:03:35 -08:00
Johannes Batzill d61e876de0 [FIX] Add repo_pullreq_seq to pullreq read APIs (#158) 2023-01-05 01:06:55 -08:00
Johannes Batzill 7ada1af3aa [API] Add `after` Support to Commit Listing (#155) 2023-01-04 16:59:43 -08:00
Johannes Batzill 1f1118f624 [Webhook] Add Event Processing and Retrigger (#148)
This change includes:
- webhook event processor (includes actual webhook execution)
- webhook retrigger API allowing to retrigger previous webhook executions
2023-01-04 14:43:36 -08:00
Johannes Batzill f5ef764318 [DB] fix index namings, improve composite index performance (#154)
This changes includes:
- change index naming to be consistent
- reorder columns in composite indices for paths/principals to improve performance
2023-01-04 12:47:41 -08:00
Marko Gaćeša ff934c840f Geting users by email, fix for Postgres (#150) 2023-01-04 19:16:09 +01:00
Marko Gaćeša 9f7d6cc857 Added payload to create/update PR comment API (#152) 2023-01-04 12:26:25 +01:00
Marko Gaćeša 98ac3d130d techdebt: [SCM-43]: Using opt lock to generate PR number (#151) 2023-01-04 12:24:17 +01:00
Tan Nhu 8ac12ee341 API integration for Conversation comments (#153) 2023-01-02 16:14:51 -08:00
Enver Bisevac 72485456ab swagger ref added for rawdiff 2023-01-02 10:56:32 +02:00
Tan Nhu 58a2d90973 Redirect to Compare when editing a file with new branch created (#149) 2022-12-29 22:41:43 -08:00
Johannes Batzill c30beb34ac [Harness] Add user self API (#147)
This change is adding the following:
- Global HarnessContext injection
- Block API KEY authentication for global context (They are tied to accounts)
- /user API endpoint for embedded mode
2022-12-29 16:01:14 -08:00
Marko Gaćeša a79e187a88 DB & API refactor: Use snake case (#144)
Update DB and API to follow Harness Standard
2022-12-29 13:53:08 -08:00
Marko Gaćeša ae6e864f57 Removed sync store for token/service/user/service-acc (#139) 2022-12-29 11:52:50 +01:00
Tan Nhu e4ae2b269b Implement components to support PR commenting (#146) 2022-12-28 15:58:02 -08:00
Johannes Batzill 1337f729e7 [Webhook] Add Swagger (#145)
This change adds webhook APIs to swagger and regenerates the web service clients based on the latest swagger.
2022-12-28 14:42:13 -08:00
Johannes Batzill 44ec7ceb07 [Webhook] Add API and DB Basics (#142)
This change introduces:
- webhook type / store / controller / handler
- webhookExecution type / store / controller / handler
- foreign key fix for sqlite3
2022-12-28 13:07:48 -08:00
Marko Gaćeša f14731455d Add parent_id column to the pullreq_activities DB table (#143) 2022-12-28 18:51:34 +01:00