I want to make sure that repos have a branch policy with certain options turned on, I want to automate this and have been looking into creating a GitHub probot to help with this but I just can’t figure out how I will be able to review a repo’s branch policy or if that is even possible. Another thought I had was to create a GitHub action and run that just in case a bot may not have those permissions.
Could anyone point me in the right direction, I’m just starting out in my programming journey, I have a good understanding it’s just this is new territory for me.