Compare commits

...

3 Commits

Author SHA1 Message Date
github-actions[bot]
5b7017d67b chore(release): Update version to v1.4.324 2025-11-14 07:49:26 +00:00
Kayvan Sylvan
6f5b89a0df Merge pull request #1827 from ksylvan/kayvan/fix-youtube-key-not-optional
Make YouTube API key optional in setup
2025-11-13 23:46:45 -08:00
Kayvan Sylvan
d02a55ee01 feat: make YouTube API key optional in setup
- Change API key setup question to optional
- Add test for optional API key behavior
- Ensure plugin configuration without API key
- chore: incoming 1827 changelog entry
2025-11-13 23:44:41 -08:00
6 changed files with 31 additions and 3 deletions

View File

@@ -1,5 +1,14 @@
# Changelog
## v1.4.324 (2025-11-14)
### PR [#1827](https://github.com/danielmiessler/Fabric/pull/1827) by [ksylvan](https://github.com/ksylvan): Make YouTube API key optional in setup
- Make YouTube API key optional in setup process
- Change API key setup question to optional configuration
- Add test for optional API key behavior
- Ensure plugin configuration works without API key
## v1.4.323 (2025-11-12)
### PR [#1802](https://github.com/danielmiessler/Fabric/pull/1802) by [nickarino](https://github.com/nickarino): fix: improve template extension handling for {{input}} and add examples

View File

@@ -1,3 +1,3 @@
package main
var version = "v1.4.323"
var version = "v1.4.324"

Binary file not shown.

View File

@@ -69,7 +69,7 @@ func NewYouTube() (ret *YouTube) {
EnvNamePrefix: plugins.BuildEnvVariablePrefix(label),
}
ret.ApiKey = ret.AddSetupQuestion("API key", true)
ret.ApiKey = ret.AddSetupQuestion("API key", false)
return
}

View File

@@ -0,0 +1,19 @@
package youtube
import "testing"
func TestNewYouTubeApiKeyOptional(t *testing.T) {
yt := NewYouTube()
if yt.ApiKey == nil {
t.Fatal("expected API key setup question to be initialized")
}
if yt.ApiKey.Required {
t.Fatalf("expected YouTube API key to be optional, but it is marked as required")
}
if !yt.IsConfigured() {
t.Fatalf("expected YouTube plugin to be considered configured without an API key")
}
}

View File

@@ -1 +1 @@
"1.4.323"
"1.4.324"