githubrepositorygithub-actionsgithub-codeowners

How to accept an invitation automatically to a GitHub repository?


Monthly I receive several invitations to be a collaborator of several Github repositories, unfortunately sometimes I miss the 7 days time to accept the invitations and as a consequence the invitations expire, making it impossible for me to access the repositories

I have tried to automate the invitations through GitHubActions but there is no such option.

Please, does anyone know how I can automate the acceptance of the invitations, so they will not expire after 7 days, which is the maximum time that Github grants before the invitations expire?


Solution

  • I have tried to automate the invitations through GitHubActions but there is no such option.

    You can test out the GitHub Action kbrashears5/github-action-auto-accept-collabs which should auto accept all collaboration invites.

    It does: