Merge pull request #342 from gabriel-samfira/relax-validation

Relax description validation
This commit is contained in:
Gabriel 2025-02-05 22:23:27 +02:00 committed by GitHub
commit ea4f605bf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 12 deletions

View file

@ -358,9 +358,6 @@ func (g *Github) Validate() error {
if g.Name == "" {
return fmt.Errorf("missing credentials name")
}
if g.Description == "" {
return fmt.Errorf("missing credentials description")
}
if g.APIBaseURL != "" {
if _, err := url.ParseRequestURI(g.APIBaseURL); err != nil {

View file

@ -667,15 +667,6 @@ func TestGithubConfig(t *testing.T) {
},
errString: "missing credentials name",
},
{
name: "Description is empty",
cfg: Github{
Name: "dummy_creds",
Description: "",
OAuth2Token: "bogus",
},
errString: "missing credentials description",
},
{
name: "OAuth token is set in the PAT section",
cfg: Github{