feat: tickets backlog + TPV toggle sidebar
This commit is contained in:
@@ -97,10 +97,11 @@ def main():
|
||||
p.add_argument('--description', default='Need change')
|
||||
p.add_argument('--priority', choices=LEVEL_CHOICES, default='med')
|
||||
p.add_argument('--risk', choices=LEVEL_CHOICES, default='low')
|
||||
p.add_argument('--phase', default=None)
|
||||
ns, _ = p.parse_known_args(cli_args)
|
||||
fid = ns.id or next_id(features)
|
||||
features = data['features']
|
||||
features.append({
|
||||
fid = ns.id or next_id(features)
|
||||
new_feature = {
|
||||
'id': fid,
|
||||
'type': ns.type,
|
||||
'title': ns.title,
|
||||
@@ -110,7 +111,10 @@ def main():
|
||||
'status': 'pending',
|
||||
'created_at': str(date.today()),
|
||||
'gates': {'reviewer': False, 'security': False, 'qa': False},
|
||||
})
|
||||
}
|
||||
if ns.phase:
|
||||
new_feature['phase'] = ns.phase
|
||||
features.append(new_feature)
|
||||
data['features'] = features
|
||||
BACKLOG.write_text(json.dumps(data, indent=2, ensure_ascii=False) + '\n', encoding='utf-8')
|
||||
print(f'Created {fid}: {ns.title}')
|
||||
|
||||
Reference in New Issue
Block a user