Merge pull request #5545 from tviaud/scaffolder_github_pr_fix
Plugin Scaffolder-Backend: GitHub Pull Request Action fix
This commit is contained in:
@@ -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`.
|
||||
|
||||
+3
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user