Skip to content

feat: warn before push when commits contain TODO/FIXME#2935

Open
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:feat/push-todo-warning-2816
Open

feat: warn before push when commits contain TODO/FIXME#2935
leno23 wants to merge 1 commit into
gitui-org:masterfrom
leno23:feat/push-todo-warning-2816

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

Before pushing, scan commits ahead of the branch upstream for TODO / FIXME markers in added diff lines. If any are found, show a confirmation dialog listing commit, file, and line before proceeding.

  • Regular push: confirm → push
  • Force push: confirm todos → existing force-push confirm → push

Fixes #2816

Test plan

  • Create a commit that adds a line with // TODO: ... on a branch ahead of upstream
  • Press push — confirmation dialog lists the marker
  • Confirm — push proceeds
  • Cancel (Esc) — push aborted
  • Branch without TODO markers pushes without extra dialog (except force-push confirm when applicable)

Made with Cursor

Scan commits ahead of upstream for TODO/FIXME in added diff lines and
show a confirmation dialog listing locations before pushing.

Fixes gitui-org#2816

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warning before pushing a commit with TODO

1 participant