Skip to content

Commit 9fcde38

Browse files
authored
docs: add another way to validate pull.yml
As introduced in wei#234
1 parent 6c29e11 commit 9fcde38

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

‎README.md‎

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -88,36 +88,36 @@ Pull app will automatically watch and pull in upstream's default (master) branch
8888
2. Setup the new branch as default branch under repository Settings > Branches.
8989
3. Add `.github/pull.yml` to your default branch.
9090

91-
#### Most Common
92-
(behaves the same as Basic Setup)
93-
```yaml
94-
version: "1"
95-
rules:
96-
- base: master
97-
upstream: wei:master # change `wei` to the owner of upstream repo
98-
mergeMethod: hardreset
99-
```
100-
101-
#### Advanced usage
102-
```yaml
103-
version: "1"
104-
rules: # Array of rules
105-
- base: master # Required. Target branch
106-
upstream: wei:master # Required. Must be in the same fork network.
107-
mergeMethod: hardreset # Optional, one of [none, merge, squash, rebase, hardreset], Default: none.
108-
mergeUnstable: false # Optional, merge pull request even when the mergeable_state is not clean. Default: false
109-
- base: dev
110-
upstream: master # Required. Can be a branch in the same forked repo.
111-
assignees: # Optional
112-
- wei
113-
reviewers: # Optional
114-
- wei
115-
conflictReviewers: # Optional, on merge conflict assign a reviewer
116-
- wei
117-
label: ":arrow_heading_down: pull" # Optional
118-
```
119-
120-
4. Go to `https://pull.git.ci/check/${owner}/${repo}` to validate your `.github/pull.yml` (Public repos only).
91+
#### Most Common
92+
(behaves the same as Basic Setup)
93+
```yaml
94+
version: "1"
95+
rules:
96+
- base: master
97+
upstream: wei:master # change `wei` to the owner of upstream repo
98+
mergeMethod: hardreset
99+
```
100+
101+
#### Advanced usage
102+
```yaml
103+
version: "1"
104+
rules: # Array of rules
105+
- base: master # Required. Target branch
106+
upstream: wei:master # Required. Must be in the same fork network.
107+
mergeMethod: hardreset # Optional, one of [none, merge, squash, rebase, hardreset], Default: none.
108+
mergeUnstable: false # Optional, merge pull request even when the mergeable_state is not clean. Default: false
109+
- base: dev
110+
upstream: master # Required. Can be a branch in the same forked repo.
111+
assignees: # Optional
112+
- wei
113+
reviewers: # Optional
114+
- wei
115+
conflictReviewers: # Optional, on merge conflict assign a reviewer
116+
- wei
117+
label: ":arrow_heading_down: pull" # Optional
118+
```
119+
120+
4. Go to `https://pull.git.ci/check/${owner}/${repo}` to validate your `.github/pull.yml` (Public repos only). See [#234](https://github.com/wei/pull/issues/234) for another way to validate it.
121121
5. Install **[![<img src="https://prod.download/pull-18h-svg" valign="bottom"/> Pull](https://prod.download/pull-18h-svg) Pull app](https://github.com/apps/pull)**.
122122

123123
### Trigger manually

0 commit comments

Comments
 (0)