1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-08-26 18:20:59 +00:00

feat: rename notifications control to enable-email-notifications (#152)

Reviewed-on: https://code.forgejo.org/forgejo/act/pulls/152
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
Earl Warren 2025-06-17 08:55:44 +00:00 committed by earl-warren
parent 01032808ea
commit fe19a1d47b
2 changed files with 7 additions and 7 deletions

View file

@ -123,20 +123,20 @@ func TestReadWorkflow_Notifications(t *testing.T) {
{
expected: true,
hasErr: false,
snippet: "notifications: true",
snippet: "enable-email-notifications: true",
},
{
expected: false,
hasErr: false,
snippet: "notifications: false",
snippet: "enable-email-notifications: false",
},
{
hasErr: true,
snippet: "notifications: invalid",
snippet: "enable-email-notifications: invalid",
},
{
hasErr: true,
snippet: "notifications: [1,2]",
snippet: "enable-email-notifications: [1,2]",
},
} {
t.Run(testCase.snippet, func(t *testing.T) {