Skip to content

Comments

Feature: Add pre-push check to stop pushing outside time limits#45

Open
fapdash wants to merge 6 commits intoEMPRI-DEVOPS:masterfrom
fapdash:add-limit-push-check
Open

Feature: Add pre-push check to stop pushing outside time limits#45
fapdash wants to merge 6 commits intoEMPRI-DEVOPS:masterfrom
fapdash:add-limit-push-check

Conversation

@fapdash
Copy link
Contributor

@fapdash fapdash commented Feb 20, 2026

  • as pushing will most likely create timestamps outside of the time
    limits on the git forge we want to limit pushing as well
  • allow disabling of the pre-push checks individually via environment
    variables GITPRIVACY_DISABLE_PREPUSH_UNREDACTED and
    GITPRIVACY_DISABLE_PREPUSH_LIMITS

based on #43

TODOs

  • Add test for new prepush limit check

Moved code to use importlib.resources, which is available in Python
>=3.9

Fixes EMPRI-DEVOPS#41
@fapdash fapdash force-pushed the add-limit-push-check branch 2 times, most recently from 19f4b9a to 20fe762 Compare February 23, 2026 15:53
- as pushing will most likely create timestamps outside of the time
  limits on the git forge we want to limit pushing as well
- allow disabling of the pre-push checks individually via environment
  variables GITPRIVACY_DISABLE_PREPUSH_UNREDACTED and
  GITPRIVACY_DISABLE_PREPUSH_LIMITS

Fix type hint
@fapdash fapdash force-pushed the add-limit-push-check branch from 20fe762 to bf610f2 Compare February 23, 2026 16:28
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.

1 participant