In the rapidly changing software development field, the pull-based model, supported by tools like GitHub, plays a pivotal role in collaborations. Understanding factors influencing this model is crucial for process enhancement. This thesis employs two Reinforcement Learning (RL) formalizations to predict Pull Request (PR) outcomes. The first utilizes 72 PR characteristics (e.g., PR Size, Test Inclusion, Developers' PR Experience, Programming Language), achieving a G-mean of 0.83. The second focuses solely on PR discussions, attaining a higher G-mean of 0.88. Both RL models outperform established techniques like Random Forest, XGBoost, and Naive Bayes. Additionally, the study explores PR factors and merge time through a survey of 22 developers, identifying key influencers such as PR Size and Reviewer Experience, while also revealing common PR review approaches. Concluding, the study outlines achievements, future directions, and establishes an RL-based PR outcome prediction framework, along with publishing specific datasets. II ACKNOWLEDGEMENTS I would like to begin by expressing my deepest gratitude to my supervisor, Dr. Nafiseh Kahani. Her unwavering support, patience, and guidance from the very start to the end of this study have been invaluable. Her willingness to provide insights, share her wisdom, and invest her time has greatly shaped this research, and I am eternally thankful for her contributions.To my family, who made this journey possible, my sincerest thanks. Being an international student, the opportunity presented by Carleton University has been a truly transformative experience. My father, Baldevbhai, my mother, Jayshriben, and my brother, Jay, have provided constant encouragement and love. Your faith in me has been a driving force behind every success, and I am grateful beyond words. I wish to pay a small tribute to my late grandmothers, Jamnaben and Gangaben. Your memories and teachings continue to guide me, and this work is a testament to the values you instilled in me. To the extended Joshi family, thank you for your unending support and belief in my abilities.Special thanks go to Carleton University's Research Ethics Boards, whose assistance in conducting the online survey and approving the ethics application was instrumental to this research. I am humbled by the contributions of each individual and institution mentioned here, and many others who have influenced this research. This thesis stands as a testament to the collective effort, support, and inspiration that have been generously provided to me. Thank you.
III