Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Commit 8aa0568

Browse files
committed
Configure multiple target for GitHub Pull Requests. Fixes #136
1 parent fff1ffa commit 8aa0568

File tree

7 files changed

+532
-315
lines changed

7 files changed

+532
-315
lines changed

containers/base/javascript/generated_modules/protocolbuffers/messages_pb.js

+56-29
Original file line numberDiff line numberDiff line change
@@ -6308,10 +6308,11 @@ proto.fontbakery.dashboard.PullRequest.toObject = function(includeInstance, msg)
63086308
var f, obj = {
63096309
sessionId: jspb.Message.getFieldWithDefault(msg, 1, ""),
63106310
storageKey: jspb.Message.getFieldWithDefault(msg, 2, ""),
6311-
targetDirectory: jspb.Message.getFieldWithDefault(msg, 3, ""),
6312-
pRMessageTitle: jspb.Message.getFieldWithDefault(msg, 4, ""),
6313-
pRMessageBody: jspb.Message.getFieldWithDefault(msg, 5, ""),
6314-
commitMessage: jspb.Message.getFieldWithDefault(msg, 6, ""),
6311+
pRTarget: jspb.Message.getFieldWithDefault(msg, 3, ""),
6312+
targetDirectory: jspb.Message.getFieldWithDefault(msg, 4, ""),
6313+
pRMessageTitle: jspb.Message.getFieldWithDefault(msg, 5, ""),
6314+
pRMessageBody: jspb.Message.getFieldWithDefault(msg, 6, ""),
6315+
commitMessage: jspb.Message.getFieldWithDefault(msg, 7, ""),
63156316
processCommand: (f = msg.getProcessCommand()) && proto.fontbakery.dashboard.ProcessCommand.toObject(includeInstance, f)
63166317
};
63176318

@@ -6359,21 +6360,25 @@ proto.fontbakery.dashboard.PullRequest.deserializeBinaryFromReader = function(ms
63596360
break;
63606361
case 3:
63616362
var value = /** @type {string} */ (reader.readString());
6362-
msg.setTargetDirectory(value);
6363+
msg.setPRTarget(value);
63636364
break;
63646365
case 4:
63656366
var value = /** @type {string} */ (reader.readString());
6366-
msg.setPRMessageTitle(value);
6367+
msg.setTargetDirectory(value);
63676368
break;
63686369
case 5:
63696370
var value = /** @type {string} */ (reader.readString());
6370-
msg.setPRMessageBody(value);
6371+
msg.setPRMessageTitle(value);
63716372
break;
63726373
case 6:
63736374
var value = /** @type {string} */ (reader.readString());
6374-
msg.setCommitMessage(value);
6375+
msg.setPRMessageBody(value);
63756376
break;
63766377
case 7:
6378+
var value = /** @type {string} */ (reader.readString());
6379+
msg.setCommitMessage(value);
6380+
break;
6381+
case 8:
63776382
var value = new proto.fontbakery.dashboard.ProcessCommand;
63786383
reader.readMessage(value,proto.fontbakery.dashboard.ProcessCommand.deserializeBinaryFromReader);
63796384
msg.setProcessCommand(value);
@@ -6421,38 +6426,45 @@ proto.fontbakery.dashboard.PullRequest.serializeBinaryToWriter = function(messag
64216426
f
64226427
);
64236428
}
6424-
f = message.getTargetDirectory();
6429+
f = message.getPRTarget();
64256430
if (f.length > 0) {
64266431
writer.writeString(
64276432
3,
64286433
f
64296434
);
64306435
}
6431-
f = message.getPRMessageTitle();
6436+
f = message.getTargetDirectory();
64326437
if (f.length > 0) {
64336438
writer.writeString(
64346439
4,
64356440
f
64366441
);
64376442
}
6438-
f = message.getPRMessageBody();
6443+
f = message.getPRMessageTitle();
64396444
if (f.length > 0) {
64406445
writer.writeString(
64416446
5,
64426447
f
64436448
);
64446449
}
6445-
f = message.getCommitMessage();
6450+
f = message.getPRMessageBody();
64466451
if (f.length > 0) {
64476452
writer.writeString(
64486453
6,
64496454
f
64506455
);
64516456
}
6457+
f = message.getCommitMessage();
6458+
if (f.length > 0) {
6459+
writer.writeString(
6460+
7,
6461+
f
6462+
);
6463+
}
64526464
f = message.getProcessCommand();
64536465
if (f != null) {
64546466
writer.writeMessage(
6455-
7,
6467+
8,
64566468
f,
64576469
proto.fontbakery.dashboard.ProcessCommand.serializeBinaryToWriter
64586470
);
@@ -6491,78 +6503,93 @@ proto.fontbakery.dashboard.PullRequest.prototype.setStorageKey = function(value)
64916503

64926504

64936505
/**
6494-
* optional string target_directory = 3;
6506+
* optional string p_r_target = 3;
64956507
* @return {string}
64966508
*/
6497-
proto.fontbakery.dashboard.PullRequest.prototype.getTargetDirectory = function() {
6509+
proto.fontbakery.dashboard.PullRequest.prototype.getPRTarget = function() {
64986510
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
64996511
};
65006512

65016513

65026514
/** @param {string} value */
6503-
proto.fontbakery.dashboard.PullRequest.prototype.setTargetDirectory = function(value) {
6515+
proto.fontbakery.dashboard.PullRequest.prototype.setPRTarget = function(value) {
65046516
jspb.Message.setProto3StringField(this, 3, value);
65056517
};
65066518

65076519

65086520
/**
6509-
* optional string p_r_message_title = 4;
6521+
* optional string target_directory = 4;
65106522
* @return {string}
65116523
*/
6512-
proto.fontbakery.dashboard.PullRequest.prototype.getPRMessageTitle = function() {
6524+
proto.fontbakery.dashboard.PullRequest.prototype.getTargetDirectory = function() {
65136525
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
65146526
};
65156527

65166528

65176529
/** @param {string} value */
6518-
proto.fontbakery.dashboard.PullRequest.prototype.setPRMessageTitle = function(value) {
6530+
proto.fontbakery.dashboard.PullRequest.prototype.setTargetDirectory = function(value) {
65196531
jspb.Message.setProto3StringField(this, 4, value);
65206532
};
65216533

65226534

65236535
/**
6524-
* optional string p_r_message_body = 5;
6536+
* optional string p_r_message_title = 5;
65256537
* @return {string}
65266538
*/
6527-
proto.fontbakery.dashboard.PullRequest.prototype.getPRMessageBody = function() {
6539+
proto.fontbakery.dashboard.PullRequest.prototype.getPRMessageTitle = function() {
65286540
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
65296541
};
65306542

65316543

65326544
/** @param {string} value */
6533-
proto.fontbakery.dashboard.PullRequest.prototype.setPRMessageBody = function(value) {
6545+
proto.fontbakery.dashboard.PullRequest.prototype.setPRMessageTitle = function(value) {
65346546
jspb.Message.setProto3StringField(this, 5, value);
65356547
};
65366548

65376549

65386550
/**
6539-
* optional string commit_message = 6;
6551+
* optional string p_r_message_body = 6;
65406552
* @return {string}
65416553
*/
6542-
proto.fontbakery.dashboard.PullRequest.prototype.getCommitMessage = function() {
6554+
proto.fontbakery.dashboard.PullRequest.prototype.getPRMessageBody = function() {
65436555
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
65446556
};
65456557

65466558

65476559
/** @param {string} value */
6548-
proto.fontbakery.dashboard.PullRequest.prototype.setCommitMessage = function(value) {
6560+
proto.fontbakery.dashboard.PullRequest.prototype.setPRMessageBody = function(value) {
65496561
jspb.Message.setProto3StringField(this, 6, value);
65506562
};
65516563

65526564

65536565
/**
6554-
* optional ProcessCommand process_command = 7;
6566+
* optional string commit_message = 7;
6567+
* @return {string}
6568+
*/
6569+
proto.fontbakery.dashboard.PullRequest.prototype.getCommitMessage = function() {
6570+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
6571+
};
6572+
6573+
6574+
/** @param {string} value */
6575+
proto.fontbakery.dashboard.PullRequest.prototype.setCommitMessage = function(value) {
6576+
jspb.Message.setProto3StringField(this, 7, value);
6577+
};
6578+
6579+
6580+
/**
6581+
* optional ProcessCommand process_command = 8;
65556582
* @return {?proto.fontbakery.dashboard.ProcessCommand}
65566583
*/
65576584
proto.fontbakery.dashboard.PullRequest.prototype.getProcessCommand = function() {
65586585
return /** @type{?proto.fontbakery.dashboard.ProcessCommand} */ (
6559-
jspb.Message.getWrapperField(this, proto.fontbakery.dashboard.ProcessCommand, 7));
6586+
jspb.Message.getWrapperField(this, proto.fontbakery.dashboard.ProcessCommand, 8));
65606587
};
65616588

65626589

65636590
/** @param {?proto.fontbakery.dashboard.ProcessCommand|undefined} value */
65646591
proto.fontbakery.dashboard.PullRequest.prototype.setProcessCommand = function(value) {
6565-
jspb.Message.setWrapperField(this, 7, value);
6592+
jspb.Message.setWrapperField(this, 8, value);
65666593
};
65676594

65686595

@@ -6576,7 +6603,7 @@ proto.fontbakery.dashboard.PullRequest.prototype.clearProcessCommand = function(
65766603
* @return {boolean}
65776604
*/
65786605
proto.fontbakery.dashboard.PullRequest.prototype.hasProcessCommand = function() {
6579-
return jspb.Message.getField(this, 7) != null;
6606+
return jspb.Message.getField(this, 8) != null;
65806607
};
65816608

65826609

0 commit comments

Comments
 (0)