This plugin allows users of Crafter Studio to create and approve a pull request easily.
Install the plugin via Studio's Plugin Management UI under Site Tools > Plugin Management.
You can also install this plugin by cloning this repository and using the Studio API.
- Create a Studio JWT Token.
- Execute the following CURL command a terminal
curl --location --request POST 'http://SERVER_AND_PORT/studio/api/2/marketplace/copy' \
--header 'Authorization: Bearer THE_JWT_TOKEN_FOR_STUDIO' \
--header 'Content-Type: application/json' \
--data-raw '{
"siteId": "editorial",
"path": "/home/russdanner/code/plugin-studio-codecommit",
"parameters": {
"awsApiKey": "A KEY",
"awsApiSecret": "A SECRET",
"awsRegion": "us-east-1"
}
}
<widget id="org.rd.plugin.codecommit.CreatePullRequest">
<plugin id="org.rd.plugin.codecommit" site="{site}" type="apps" name="codecommit" file="index.js"/>
<configuration>
<useIcon>false</useIcon>
<repoName>myrepo</repoName>
<sourceBranch>qa</sourceBranch>
<targetBranch>master</targetBranch>
<prTitle>Approve Content Promotion via Studio</prTitle>
<createAndMergePullRequestLabel>Promote Content</createAndMergePullRequestLabel>
</configuration>
</widget>