Declaring the variables username, password earlier and change the message to pass the host for the missing credentials
Signed-off-by: cmoulliard <cmoulliard@redhat.com>
This commit is contained in:
@@ -304,9 +304,7 @@ export function createPublishGiteaAction(options: {
|
||||
const { username, password } = integrationConfig.config;
|
||||
|
||||
if (!username || !password) {
|
||||
throw new Error(
|
||||
'Credentials for Gitea integration required for this action.',
|
||||
);
|
||||
throw new Error('Credentials for the gitea ${host} required.');
|
||||
}
|
||||
|
||||
// check if the org exists within the gitea server
|
||||
|
||||
Reference in New Issue
Block a user