8 Commits

Author SHA1 Message Date
ea64578fd9 PushEvent - Updated the validateRequest() method
+ Added ability to skip secret key validation, which is useful for newer version of gitea (as its depreciated now)
2021-11-04 20:52:06 -06:00
e127129d3a Ammendment - Fixed an error in the last commit 2020-03-01 17:08:37 -07:00
ba39e61094 PushEvents - Fixed two errors
+ Fixed "array_map() expects parameter 1 to be a valid callback" error
+ Fixed "Argument 1 passed to Gitea\PushEvent::setCommits() must be of the type array, null given"
2020-03-01 17:06:32 -07:00
75d80d8b6e PushEvent - Fixed a "Too few arguments" error
+ Fixed a "Too few arguments" error that was produced by code in the `fromJson()` method
2020-03-01 16:39:22 -07:00
a4402e78a6 PushEvent - Updated the model + Added extra method
+ Updated the model to make it align with the ApiModel Interface
+ Added a `validateRequest()` method for validating push event requests
2020-02-28 18:58:17 -07:00
dcd2d8bdf3 Corrected namespaces + Chnaged tab size to 4
+ Went through all the Model classes and updated their namespaces to match their parent folder name
+ Changed tab sizes to 4 spaces instead of 2 (in all php files)
2020-02-20 13:21:18 -07:00
76e8cfa0a4 Code formatting 2019-04-15 19:22:15 +02:00
3a33d37d48 Renamed the 'lib' folder to 'src' 2019-04-02 11:23:19 +02:00