Here’s a sample workflow to automate requests to Organizations and Repositories

Service Request



Workflow Setup




  1. Create the Event when a Service request is raised.

  2. Followed by the condition to ensure the request was made for GitHub.

  3. You can then pull in the App Node which will have the following configurations:
        App Name: GitHub - Orch

               App Action: Get user by email

    

  1. To validate the action executed successfully, the condition node is added to check if the status code is 200. 


  1. On successful validation, pull in the App Node which will have the following configurations:
        App Name: GitHub - Orch

                App Action: Create an organization invitation by Email



  1. You can add a condition node to verify whether a user invited to the organization by means of status code equals to 200.


  1. Final App node to be pulled in for giving repository access to the user who will have the following configurations:
                App Name: GitHub - Orch

App Action: Add a Repository Collaborator


Notes when Configuring Inputs: 

  • Owner: Select the appropriate placeholder to append to the content and they will get converted into the appropriate data.


  1. Validate Add a repository collaborator action by adding Condition node with status code checks. 

 

  1. Once the workflow is executed successfully, the requester will receive an email notification that they have been invited to the organization and repository, which they must accept or decline.