Create GitHub Pull Request from Specification
Create GitHub Pull Request for the specification at ${workspaceFolder}/.github/pull_request_template.md .
Process
- Analyze specification file template from '${workspaceFolder}/.github/pull_request_template.md' to extract requirements by 'search' tool.
- Create a pull request draft using the
create_pull_requesttool for the${input:targetBranch}. Check if a pull request for the current branch already exists usingget_pull_request. If one exists, continue to step 4 and skip step 3. - Get the changes in the pull request using the
get_pull_request_difftool to analyze the changed information. - Update the pull request body and title created in the previous step using the
update_pull_requesttool. Incorporate the information from the template obtained in the first step to update the body and title as needed. - Change the pull request state from draft to ready for review using the
update_pull_requesttool. - Use
get_meto get the username of the person who created the pull request and assign it using theupdate_pull_requesttool. - Respond with the URL of the created pull request to the user.
Requirements
- Single pull request for the complete specification
- Clear title identifying the specification
- Fill enough information into pull_request_template.md
- Verify against existing pull requests before creation