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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,552,261
Community Members
 
Community Events
184
Community Groups

Can you help me in getting a SQL Query to get the all the commit with time by user?

I look for the table, where i could find all the commits in pull request with the authot of commits and date. 

1 answer

0 votes
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 18, 2023

Hello!

Commits are not stored in the database.

Git is a file based system. When you have a repository on your local PC all information about branches and commits are stored in the .git directory.
The same goes for Bitbucket. Bitbucket stores all you repositories in the server storage.

Luckily Bitbucket has a REST API that can be used for getting PR information. Take a look at this one, it might be what you need. Get pull request commits. It returns a list of commits with the authors.

IF I understood you correctly, then it is impossible to get data about the commit and its author using sql query?

Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Apr 18, 2023

Indeed. Because commits are not in the SQL database.

Hmm, commits are on the database. Using PR_ID i could find all the commits in the pull request in the table BB_PR_COMMIT...and the challenge of author the commits, in the case the author of pull request and commits differ..:(

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events