I want my team to do refactoring as often as it is possible, and follow some guides from Martin Fowler book. Although I'm confused about something:
If we use scrum or kanban and decide to work on one task only, then in the commit message (git) mention to the task, when do we work on refactoring? how we name our commits?
edit:
as my question may be unclear (I'm sorry I'm not english native). We have tasks in team, and we are commiting to git with a task number. The first thing is: when to do refactoring? after sprint ends or in the middle? the second: how to name commits as we have convention to add task number in comment.