Fixed bug disabling server startup

For further information please take a look at the first Javadoc comment
in envoy.data.Config
This commit is contained in:
delvh 2020-08-24 23:20:11 +02:00
parent a6e5b3d77d
commit 572541e381
2 changed files with 3 additions and 2 deletions

View File

@ -40,7 +40,7 @@ public final class IssueProposalProcessor implements ObjectProcessor<IssuePropos
// Two types of authorization are currently supported: access token as // Two types of authorization are currently supported: access token as
// query param or access token as authorization header // query param or access token as authorization header
final var authenticationToken = config.getIssueAuthToken(); final var authenticationToken = config.getIssueAuthToken();
if (authenticationToken != null) { if (!authenticationToken.equals("")) {
final String auth = "token " + authenticationToken; final String auth = "token " + authenticationToken;
connection.setRequestProperty("Authorization", auth); connection.setRequestProperty("Authorization", auth);
} }

View File

@ -7,10 +7,11 @@ issueCreationURL=https://git.kske.dev/api/v1/repos/zdm/envoy/issues?access_token
userMadeLabel=240 userMadeLabel=240
bugLabel=117 bugLabel=117
featureLabel=119 featureLabel=119
# api.github.com config - supply an additional auth token # api.github.com config
#issueCreationURL=https://api.github.com/repos/informatik-ag-ngl/envoy/issues #issueCreationURL=https://api.github.com/repos/informatik-ag-ngl/envoy/issues
#userMadeLabel="user made" #userMadeLabel="user made"
#bugLabel="bug" #bugLabel="bug"
#featureLabel="feature" #featureLabel="feature"
issueAuthToken=
consoleLevelBarrier=FINEST consoleLevelBarrier=FINEST
fileLevelBarrier=WARNING fileLevelBarrier=WARNING