Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to retrieve number of commits between dates? (slack command)

Deleted user April 19, 2020

Hi,

I wish to be able to retrieve from slack the "number of commits performed in specific Sprint". For that I need to be able to retrieve number of commits between dates (start, end).
Is there any way / command for it?

Thanks,

Jacob.

1 answer

1 vote
Ronald C_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 20, 2020

Hi @[deleted]

I don't think there's a feature on slack can help achieve it, but you can try using `git log` command with the following options which list all the commits within the period:

--after="2020-04-18" 
--until="2020-04-21"

https://git-scm.com/docs/git-log#Documentation/git-log.txt---afterltdategt 

Then add `wc -l` command which will get the number of commits made during the period. For example:

git log --all --after="2020-04-18" --until="2020-04-21" | wc -l

Another thing that you can try is by using 3rd party add-on - Awesome Graphs for Bitbucket Cloud.

Cheers,
Ronald

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events