From cdb6f04cdafc2c9951f40820148f3d8446f58d50 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 19 Aug 2025 21:47:35 +0000 Subject: [PATCH 1/2] Initial plan From 34aac583d19dc5b42f43d323b030fda679fa3fd1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 19 Aug 2025 21:52:06 +0000 Subject: [PATCH 2/2] chore(ci): add one-time workflow to rewrite commit message 408e6b4 on main Co-authored-by: Artisa111 <196091457+Artisa111@users.noreply.github.com> --- .github/workflows/reword-commit-408e6b4.yml | 51 +++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/reword-commit-408e6b4.yml diff --git a/.github/workflows/reword-commit-408e6b4.yml b/.github/workflows/reword-commit-408e6b4.yml new file mode 100644 index 0000000..0a4e188 --- /dev/null +++ b/.github/workflows/reword-commit-408e6b4.yml @@ -0,0 +1,51 @@ +name: Rewrite commit message 408e6b4 + +on: + workflow_dispatch: + +permissions: + contents: write + +jobs: + rewrite: + runs-on: ubuntu-latest + steps: + - name: Checkout main with full history + uses: actions/checkout@v4 + with: + ref: main + fetch-depth: 0 + + - name: Configure Git + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + + - name: Create backup branch + run: | + set -e + git branch backup/pre-reword-${{ github.run_id }} HEAD + git push origin backup/pre-reword-${{ github.run_id }} + + - name: Rewrite commit message via filter-branch + run: | + set -e + # Rewrite only the target commit message on main + git checkout main + export TARGET_SHA="408e6b451e6f61d1786b9e83c970a906858e9050" + export NEW_MSG="Replace comments and print messages in main.py with English" + git filter-branch -f --msg-filter ' + if [ "$GIT_COMMIT" = "'$TARGET_SHA'" ]; then + echo "$NEW_MSG" + else + cat + fi + ' main + + - name: Force-push rewritten history to main (with lease) + run: | + set -e + git push --force-with-lease origin main:main + + - name: Show last commits + run: git log --oneline -n 20 \ No newline at end of file