Add PR handling and commit data insertion