Skip to content

Commit a36464e

Browse files
updated README for github-pr plugin
1 parent d86a8e4 commit a36464e

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

stable/github-pr/README.MD

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,33 @@ Creates a new pull request in GitHub
1010
- `HEAD`: The name of the branch where your changes are implemented. For cross-repository pull requests in the same network, namespace head with a user like this: username:branch
1111
- `BASE`: The name of the branch you want the changes pulled into. This should be an existing branch on the current repository. You cannot submit a pull request to one repository that requests a merge to a base of another repository.
1212
- `TITLE`: The title of the pull request
13+
14+
## Deployment with Codefresh
15+
- Add encrypted environment variables for:
16+
* GITHUB_TOKEN
17+
18+
- Add "github-pr" step as descibed below
19+
20+
```yaml
21+
# codefresh.yml example with github pr step
22+
version: '1.0'
23+
24+
steps:
25+
build-step:
26+
type: build
27+
image-name: repo/image:tag
28+
29+
push to registry:
30+
type: push
31+
candidate: ${{build-step}}
32+
tag: ${{CF_BRANCH}}
33+
34+
github-pr:
35+
image: codefresh/github-pr-plugin
36+
environment:
37+
- GITHUB_REPO_OWNER=${{CF_REPO_OWNER}}
38+
- GITHUB_REPO_NAME=${{CF_REPO_NAME}}
39+
- BASE=master
40+
- HEAD=${{CF_BRANCH}}
41+
- TITLE=Codefresh PR for ${{CF_BRANCH}}
42+
```

0 commit comments

Comments
 (0)