Commit File On New Branch And Open Pull Request
A 3-step recipe with Gitea. We can help you get access.
Recipe · 3 steps
Commit File On New Branch And Open Pull Request
with Gitea · Software Construction Management
Create a branch, commit a file, and open a pull request.
- Create a feature branch from the base branch.
- Commit a new base64-encoded file onto the feature branch.
- Open a pull request from the feature branch into the base branch.
What you'll need to have ready
- authToken: Authorization header value, e.g. "token <personal-access-token>".
- owner: Owner of the repository.
- repo: Name of the repository.
- newBranch: Feature branch to create and commit onto.
- baseBranch: Existing branch the feature branch is created from and merged into.
- filepath: Path of the file to create in the repository.
- contentBase64: Base64-encoded file content.
- commitMessage: Commit message for the new file.
- prTitle: Title of the pull request.
- prBody: Description body for the pull request.
For your developer
Arazzo workflow gitea:commit-file-and-open-pr, 3 operations: repoCreateBranch → repoCreateFile → repoCreatePullRequest. Specs on APIs.io.