Commit Graph

8 Commits (a7f7d1399f2f0c4ee9d13d595607c4fe2fd437e8)

Author SHA1 Message Date
6543 3d63caa542
[API] Get a single commit via Ref ()
* GET /repos/:owner/:repo/commits/:ref

* add Validation Checks

* Fix & Extend TEST

* add two new tast cases
WGH 6ddd3b0b47 Implement webhook branch filter ()
* Fix validate() function to handle errors in embedded anon structs

* Implement webhook branch filter

See , .
Tamal Saha 171b359877 Use gitea forked macaron ()
Signed-off-by: Tamal Saha <tamal@appscode.com>
mrsdizzie d056bf300f Clean up ref name rules ()
* Clean up ref name rules

Clean up checks on reference names to better conform to the guideline
here: https://git-scm.com/docs/git-check-ref-format

This fixes half of 

* Update branch create integration test

According to: https://git-scm.com/docs/git-check-ref-format

And: git check-ref-format "master/feature=test1"

This is a valid branch name and we should not be testing for it to fail.
Lauris BH 92466129ec
Improve URL validation for external wiki and external issues ()
* Improve URL validation for external wiki  and external issues

* Do not allow also localhost address for external URLs
Bwko 1f877f8c87 Add tag check to release draft creation ()
Lauris BH f3833b7ce4 Create new branch from branch selection dropdown ()
* Create new branch from branch selection dropdown and rewrite it to VueJS

* Make updateLocalCopyToCommit as not exported

* Move branch name validation to model

* Fix possible race condition
Lauris BH f42ec6120e Better URL validation ()
* Add correct git branch name validation

* Change git refname validation error constant name

* Implement URL validation based on GoLang url.Parse method

* Backward compatibility with older Go compiler

* Add git reference name validation unit tests

* Remove unused variable in unit test

* Implement URL validation based on GoLang url.Parse method

* Backward compatibility with older Go compiler

* Add url validation unit tests