Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ops/devlane/dispatch/levers/apply-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ readonly LEVERS_DIR
readonly JOBS_ROOT_DEFAULT="$LEVERS_DIR/jobs"
readonly BRIDGE_NAME="Apply Push Bridge"
readonly BRIDGE_EMAIL="noreply@apply-push-bridge"
readonly AUTHOR_NAME="xormania"
readonly AUTHOR_EMAIL="127287135+xormania@users.noreply.github.com"
readonly SAFE_PATH="/usr/local/bin:/usr/bin:/bin"

refuse() {
Expand Down Expand Up @@ -342,7 +344,7 @@ fi

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