Create Pull Request
Use the Create Pull Request action to create a pull request.
Complete the following steps to use the Create Pull Request action in your workflow:
1. Drag the Create Pull Request action under Github to the canvas, place the pointer on the action, and then click or double-click the action. The Create Pull Request window opens.
2. Edit the Label, if needed. By default, the label name is the same as the action name.
3. To add a Github connector type, refer to Supported Github Connector Types.
If you previously added a connector type, select the appropriate Connector Type, and under Connector Name, select the connector.
4. Click TEST to validate the connector.
5. Click MAP CONNECTOR to execute the action using a connector that is different from the one that you are using to populate the input fields. In the Runtime Connector field, provide a valid Github connector name. For more information about MAP CONNECTOR, see Using Map Connector.
6. In the Owner field, provide the GitHub repository owner name. This could be a user or an organization.
7. In the Repository field, select or specify the repository name where you want to push the change status.
8. In the Input Type field, select one of the following options, and perform its respective task:
Input Type
Task
Create Pull Request
a. In the Title field, provide the title of the pull request.
b. In the Head field, provide the name of the branch where your changes are implemented. For cross-repository pull requests in the same network, provide the value of Head as username:branch.Name.
c. In the Base field, the name of the branch where you want your changes pulled into.
d. In the Body field, provide the contents of the pull request.
Create Pull Request through Issue Number
a. In the Issue field, provide the issue number in the mentioned repository to turn into a pull request.
b. In the Head field, provide the name of the branch where your changes are implemented.
c. In the Base field, the name of the branch where you want your changes pulled into.
9. Click Done.
Output schema
Was this helpful?