Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for configuring Jira credentials #274

wants to merge 1 commit into from
Changes from all commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.


Just for now

@@ -112,7 +112,11 @@ private BotRunnerConfiguration(JSONObject config, Path cwd) throws Configuration
if (entry.value().contains("jira")) {
var jira = entry.value().get("jira");
var uri = URIBuilder.base(jira.get("url").asString()).build();
ret.put(, IssueTracker.from("jira", uri, null, jira.asObject()));
Credential credential = null;
if (jira.contains("username")) {
credential = new Credential(jira.get("username").asString(), jira.get("password").asString());
ret.put(, IssueTracker.from("jira", uri, credential, jira.asObject()));
} else {
throw new ConfigurationError("Host " +;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.