Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
03c1a95cb7 | ||
![]() |
aaa48ff7df | ||
![]() |
685a01fe4f |
3 changed files with 11 additions and 9 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,6 +6,7 @@ config.yaml
|
||||||
|
|
||||||
# Environment
|
# Environment
|
||||||
.env
|
.env
|
||||||
|
.venv/
|
||||||
venv/
|
venv/
|
||||||
|
|
||||||
# Templates
|
# Templates
|
||||||
|
|
5
main.py
5
main.py
|
@ -82,13 +82,14 @@ def treat_issues():
|
||||||
.filter(project__name__in=action['projects'], status__name__in=action['status'], closed_on=None):
|
.filter(project__name__in=action['projects'], status__name__in=action['status'], closed_on=None):
|
||||||
|
|
||||||
# Skip issue if start date + time_range is not yet reached
|
# Skip issue if start date + time_range is not yet reached
|
||||||
if hasattr(issue, 'start_date') \
|
if hasattr(issue, 'start_date') and issue.start_date is not None \
|
||||||
and date.today() < (issue.start_date + timedelta(days=+int(action['time_range']))):
|
and date.today() < (issue.start_date + timedelta(days=+int(action['time_range']))):
|
||||||
logging.info(f'Ticket ID: {issue.id}, skipped because start date + time_range not yet reached')
|
logging.info(f'Ticket ID: {issue.id}, skipped because start date + time_range not yet reached')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Skip issue if due date has not yet passed
|
# Skip issue if due date has not yet passed
|
||||||
if hasattr(issue, 'due_date') and date.today() < (issue.due_date + timedelta(days=1)):
|
if (hasattr(issue, 'due_date') and issue.due_date is not None
|
||||||
|
and date.today() < (issue.due_date + timedelta(days=1))):
|
||||||
logging.info(f'Ticket ID: {issue.id}, skipped because due date has not yet passed')
|
logging.info(f'Ticket ID: {issue.id}, skipped because due date has not yet passed')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
certifi==2021.5.30
|
certifi==2023.7.22
|
||||||
chardet==4.0.0
|
chardet==4.0.0
|
||||||
envyaml==1.8.210417
|
envyaml==1.8.210417
|
||||||
idna==2.10
|
idna==3.7
|
||||||
Jinja2==3.0.1
|
Jinja2==3.1.3
|
||||||
MarkupSafe==2.0.1
|
MarkupSafe==2.0.1
|
||||||
python-redmine==2.3.0
|
python-redmine==2.5.0
|
||||||
PyYAML==5.4.1
|
PyYAML==6.0.1
|
||||||
requests==2.25.1
|
requests==2.31.0
|
||||||
urllib3==1.26.5
|
urllib3==2.0.7
|
||||||
pytz~=2021.3
|
pytz~=2021.3
|
Loading…
Add table
Add a link
Reference in a new issue