integrations: Improve GitHub force push notifications.

Previously, we didn't explicitly display something special for force-pushes.

Fixes #21969.
This commit is contained in:
sbansal1999
2023-05-04 20:42:59 +05:30
committed by Tim Abbott
parent dba6f84b97
commit 2a3d4041e0
3 changed files with 12 additions and 6 deletions

View File

@@ -283,6 +283,7 @@ def get_push_commits_body(helper: Helper) -> str:
get_branch_name_from_ref(payload["ref"].tame(check_string)),
commits_data,
deleted=payload["deleted"].tame(check_bool),
force_push=payload["forced"].tame(check_bool),
)