git-timecost/TODO.md

75 lines
1.6 KiB
Markdown
Raw Normal View History

2023-07-11 16:52:48 +00:00
# TODO : Fixes and ideas for the future
2014-09-25 07:19:36 +00:00
2023-07-11 16:52:48 +00:00
## Add developper profile in a global config file
2014-09-25 07:19:36 +00:00
2023-07-11 16:52:48 +00:00
In `~/.config/git-timecost` :
2015-03-13 09:01:39 +00:00
2023-07-11 16:52:48 +00:00
```
---
profiles:
- name: Glenn Y. Rolland
emails:
- glenux@glenux.net
- glenux@gmail.com
times:
tz: Europe/Paris
- weekday: monday
begin: 09
end: 18
costs:
base: 70
overtime: 140
- name: Prabin Karki
emails:
- pkarki@gmail.com
hours:
tz: Asia/Kathmandu
begin: 9
end: 18
costs:
base: 20
overtime: 30
```
Then display:
- total normal hours
- total overtime hours
- total cost :
$$ total\_cost = \sum_{person \in Profiles} \Big( \sum_{hour\_type \in \{normal, extra\}} \Big( spent\_time(hour\_type, person) * cost(hour\_type, person) \Big) \Big) $$
Then, depending on the person, chare
2015-03-13 09:01:39 +00:00
## Merge users
Set-up a config file, either global or per repository
With id => names associations, so we can merge
users who commit with various names/emails/etc
- name: "John Smith <john.smith@company.com>",
match:
- "John S. <john@example.com>",
- "John Smith <john.s@example.com>",
- "J. Smith <smith@example.com>"
- name: "Foo Bar <foobar@company.com>",
match:
- "Foo B. <foobar@example.com>"
- "Foo Bar <foobar@company.com>"
2014-09-25 07:19:36 +00:00
## Per user scotch
Different users have a different commit style & frequency.
We should be able to define a per-user scotch.
2015-03-13 09:01:39 +00:00
## Automatic scotch : Use median delay between consecutive commits, per user
2014-09-25 07:19:36 +00:00
2015-03-13 09:01:39 +00:00
def median(array)
sorted = array.sort
len = sorted.length
return (sorted[(len - 1) / 2] + sorted[len / 2]) / 2.0
end
2014-09-25 07:19:36 +00:00