Skip to content

Commit

Permalink
fix: 修改 remove 插件的提交信息前缀 (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
BigOrangeQWQ authored Jan 21, 2025
1 parent 4a66251 commit 76e570a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/plugins/github/plugins/remove/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@

BRANCH_NAME_PREFIX = "remove/issue"

COMMIT_MESSAGE_PREFIX = ":hammer: remove"
COMMIT_MESSAGE_PREFIX = ":pencil2: remove"
4 changes: 2 additions & 2 deletions tests/plugins/github/remove/process/test_remove_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ async def test_process_remove_bot_check(
),
mocker.call(["git", "add", "-A"], check=True, capture_output=True),
mocker.call(
["git", "commit", "-m", snapshot(":hammer: remove TESTBOT (#80)")],
["git", "commit", "-m", snapshot(":pencil2: remove TESTBOT (#80)")],
check=True,
capture_output=True,
),
Expand Down Expand Up @@ -395,7 +395,7 @@ async def test_process_remove_plugin_check(
),
mocker.call(["git", "add", "-A"], check=True, capture_output=True),
mocker.call(
["git", "commit", "-m", snapshot(":hammer: remove test (#80)")],
["git", "commit", "-m", snapshot(":pencil2: remove test (#80)")],
check=True,
capture_output=True,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def test_resolve_conflict_pull_requests_bot(
),
mocker.call(["git", "add", "-A"], check=True, capture_output=True),
mocker.call(
["git", "commit", "-m", ":hammer: remove CoolQBot (#1)"],
["git", "commit", "-m", ":pencil2: remove CoolQBot (#1)"],
check=True,
capture_output=True,
),
Expand Down Expand Up @@ -221,7 +221,12 @@ async def test_resolve_conflict_pull_requests_plugin(
),
mocker.call(["git", "add", "-A"], check=True, capture_output=True),
mocker.call(
["git", "commit", "-m", ":hammer: remove nonebot_plugin_treehelp (#1)"],
[
"git",
"commit",
"-m",
":pencil2: remove nonebot_plugin_treehelp (#1)",
],
check=True,
capture_output=True,
),
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/github/resolve/test_resolve_pull_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ async def test_resolve_pull_request(
"[email protected]",
],
["git", "add", "-A"],
["git", "commit", "-m", ":hammer: remove CoolQBot (#101)"],
["git", "commit", "-m", ":pencil2: remove CoolQBot (#101)"],
["git", "fetch", "origin"],
["git", "diff", "origin/remove/issue101", "remove/issue101"],
["git", "push", "origin", "remove/issue101", "-f"],
Expand Down

0 comments on commit 76e570a

Please sign in to comment.