Skip to content

Commit

Permalink
feat: add schedule functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
oxwazz committed Jan 8, 2025
0 parents commit 8044511
Show file tree
Hide file tree
Showing 11 changed files with 698 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/git_toolbox_blame.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/git_toolbox_prj.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/schedule_pre_commit_hooks.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
- id: schedule
name: schedule commit
description: 'schedule your commit based on allowed dates.'
entry: schedule
language: rust
stages:
- post-commit
always_run: true
args:
- --timezone=+0700
# - --schedule=monday|15:00-16:00
# - --schedule=wednesday|15:00-16:00
- --schedule=wednesday|08:00-16:00
- --schedule=monday|11:00-09:00,12:00-18:00
# - --schedule=tuesday|13:00-18:00,07:00-08:00,17:00-18:00
# - --schedule=tuesday|14:00-18:00,06:00-08:00,15:00-23:00
Loading

0 comments on commit 8044511

Please sign in to comment.