Skip to content

Commit 316fd2c

Browse files
authored
Merge pull request #17 from minspec/repo/author-owner
ops: the owner authors every landing commit
2 parents 314b5ac + e0889ac commit 316fd2c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

ops/devlane/dispatch/levers/apply-push.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ readonly LEVERS_DIR
2020
readonly JOBS_ROOT_DEFAULT="$LEVERS_DIR/jobs"
2121
readonly BRIDGE_NAME="Apply Push Bridge"
2222
readonly BRIDGE_EMAIL="noreply@apply-push-bridge"
23+
readonly AUTHOR_NAME="xormania"
24+
readonly AUTHOR_EMAIL="127287135+xormania@users.noreply.github.com"
2325
readonly SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
2426

2527
refuse() {
@@ -342,7 +344,7 @@ fi
342344

343345
if ! env -i HOME="$OPERATOR_HOME" PATH="$SAFE_PATH" LANG=C.UTF-8 LC_ALL=C.UTF-8 \
344346
git -C "$worktree" -c user.name="$BRIDGE_NAME" -c user.email="$BRIDGE_EMAIL" \
345-
commit --quiet --file "$record_dir/message.final" >"$record_dir/commit.log" 2>&1; then
347+
commit --quiet --author="$AUTHOR_NAME <$AUTHOR_EMAIL>" --file "$record_dir/message.final" >"$record_dir/commit.log" 2>&1; then
346348
refuse "bridge could not author landing commit"
347349
fi
348350
new_sha=$(git -C "$worktree" rev-parse HEAD)

0 commit comments

Comments
 (0)