Merge pull request #5545 from tviaud/scaffolder_github_pr_fix

Plugin Scaffolder-Backend: GitHub Pull Request Action fix
This commit is contained in:
Fredrik Adelöw
2021-05-03 21:24:05 +02:00
committed by GitHub
3 changed files with 30 additions and 4 deletions
+21 -3
View File
@@ -1,7 +1,25 @@
# Title
# Scaffolder Backend
Welcome to the scaffolder plugin!
## Sub-section 1
## Jobs
## Sub-section 2
Documentation for `Jobs` here
## Stages
Documentation for `Stages` here
## Tasks
Documentation for `Tasks` here
## Actions
### Built-in:
- #### GitHub Pull Request
- Minimum permissions required for GitHub App for creating a Pull Request with the built-in action:
- Read and Write permissions for `Contents`.
- Read and write permissions for `Pull Requests` and `Issues`.
- Read permissions on `Metadata`.
@@ -87,7 +87,9 @@ export const defaultClientFactory = async ({
}
const { token } = await credentialsProvider.getCredentials({
url: `${host}/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}`,
url: `https://${host}/${encodeURIComponent(owner)}/${encodeURIComponent(
repo,
)}`,
});
if (!token) {