querysub 0.271.0 → 0.273.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -22,13 +22,15 @@ export class RenderGitRefInfo extends qreact.Component<{
|
|
|
22
22
|
}> {
|
|
23
23
|
render() {
|
|
24
24
|
let controller = MachineServiceController(SocketFunction.browserNodeId());
|
|
25
|
+
let gitRef = this.props.gitRef;
|
|
25
26
|
let gitRefInfo = controller.getGitRefInfo({
|
|
26
|
-
ref:
|
|
27
|
+
ref: gitRef,
|
|
27
28
|
useQuerysub: this.props.isQuerysub,
|
|
28
29
|
});
|
|
29
30
|
if (!gitRefInfo) return undefined;
|
|
31
|
+
let { description, time } = gitRefInfo;
|
|
30
32
|
return <div className={css.fontWeight("normal")}>
|
|
31
|
-
{formatDateJSX(
|
|
33
|
+
{formatDateJSX(time)} AGO <span className={css.hsl(0, 0, 80).pad2(5, 2).italic}>{description}</span> ({gitRef.slice(0, 6)})
|
|
32
34
|
</div>;
|
|
33
35
|
}
|
|
34
36
|
}
|
|
@@ -259,6 +259,20 @@ export class MachineServiceControllerBase {
|
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
public async commitPushService(commitMessage: string) {
|
|
262
|
+
require("debugbreak")(2);
|
|
263
|
+
debugger;
|
|
264
|
+
if (commitMessage.toLowerCase().includes("querysub")) {
|
|
265
|
+
let querysubFolder = path.resolve("../querysub");
|
|
266
|
+
if (fs.existsSync(querysubFolder)) {
|
|
267
|
+
let querysubLastCommit = await getGitRefInfo({
|
|
268
|
+
gitDir: querysubFolder,
|
|
269
|
+
ref: "origin/main",
|
|
270
|
+
});
|
|
271
|
+
if (querysubLastCommit) {
|
|
272
|
+
commitMessage += `\n\n(querysub commit): ${querysubLastCommit.description}`;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
262
276
|
await commitAndPush({
|
|
263
277
|
gitDir: ".",
|
|
264
278
|
message: commitMessage,
|