@ghl-ai/aw 0.1.37-beta.21 → 0.1.37-beta.23
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/constants.mjs +1 -1
- package/ecc.mjs +1 -1
- package/hooks.mjs +10 -13
- package/package.json +1 -1
package/constants.mjs
CHANGED
|
@@ -32,5 +32,5 @@ export const TELEMETRY_URL = process.env.AW_TELEMETRY_URL || 'https://services.l
|
|
|
32
32
|
|
|
33
33
|
/** AW bot identity for Co-Authored-By trailers */
|
|
34
34
|
export const AW_BOT_NAME = 'AW';
|
|
35
|
-
export const AW_BOT_EMAIL = process.env.AW_BOT_EMAIL || '273421570+ghl-
|
|
35
|
+
export const AW_BOT_EMAIL = process.env.AW_BOT_EMAIL || '273421570+ghl-aw@users.noreply.github.com';
|
|
36
36
|
export const AW_CO_AUTHOR = `Co-Authored-By: ${AW_BOT_NAME} <${AW_BOT_EMAIL}>`;
|
package/ecc.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import * as fmt from "./fmt.mjs";
|
|
|
9
9
|
|
|
10
10
|
const AW_ECC_REPO_SSH = "git@github.com:shreyansh-ghl/aw-ecc.git";
|
|
11
11
|
const AW_ECC_REPO_HTTPS = "https://github.com/shreyansh-ghl/aw-ecc.git";
|
|
12
|
-
const AW_ECC_TAG = "v1.2.
|
|
12
|
+
const AW_ECC_TAG = "v1.2.5";
|
|
13
13
|
|
|
14
14
|
const MARKETPLACE_NAME = "aw-marketplace";
|
|
15
15
|
const PLUGIN_KEY = `aw@${MARKETPLACE_NAME}`;
|
package/hooks.mjs
CHANGED
|
@@ -117,19 +117,16 @@ exit 0
|
|
|
117
117
|
// prepare-commit-msg: synchronous hook — appends Co-Authored-By trailer to commits
|
|
118
118
|
// in AW-linked repos. Skips merge commits and respects AW_NO_COAUTHOR=1 opt-out.
|
|
119
119
|
const PREPARE_COMMIT_MSG = makeDispatcher('prepare-commit-msg', `\
|
|
120
|
-
#
|
|
121
|
-
[ "$2"
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
if ! grep -qF "$TRAILER" "$1"; then
|
|
131
|
-
echo "" >> "$1"
|
|
132
|
-
echo "$TRAILER" >> "$1"
|
|
120
|
+
# Inject co-author trailer unless it's a merge commit or opt-out is set
|
|
121
|
+
if [ "$2" != "merge" ] && [ "$AW_NO_COAUTHOR" != "1" ]; then
|
|
122
|
+
# Only brand AW-linked repos (check for .aw/ symlink or worktree)
|
|
123
|
+
if [ -L ".aw" ] || [ -f ".aw/.git" ]; then
|
|
124
|
+
TRAILER="${AW_CO_AUTHOR}"
|
|
125
|
+
# Only append if not already present (idempotent)
|
|
126
|
+
if ! grep -qF "$TRAILER" "$1"; then
|
|
127
|
+
echo "" >> "$1"
|
|
128
|
+
echo "$TRAILER" >> "$1"
|
|
129
|
+
fi
|
|
133
130
|
fi
|
|
134
131
|
fi`);
|
|
135
132
|
|