Here’s a sample workflow to automate requests to Organizations and Repositories
Service Request
Workflow Setup
Create the Event when a Service request is raised.
Followed by the condition to ensure the request was made for GitHub.
You can then pull in the App Node which will have the following configurations:
App Name: GitHub - Orch
App Action: Get user by email
To validate the action executed successfully, the condition node is added to check if the status code is 200.
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
You can add a condition node to verify whether a user invited to the organization by means of status code equals to 200.
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.
Validate Add a repository collaborator action by adding Condition node with status code checks.
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.