Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref/ci #195

Merged
merged 3 commits into from
Mar 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions content/docs/ref/ci.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Command Reference: `ci`

```bash
cml ci [options]
```

Prepares Git repository for CML operations (setting Git `user.name` &
`user.email`, unshallow clone and undo CI oddities such as origin URL formatting
and HTTP remote proxies).

## Options

Any [generic option](/doc/ref).

## Examples

Instead of wrangling with
[unshallowing clones](https://stackoverflow.com/q/6802145) and
`git config user.email` before being able to `git commit` or use
[`cml pr`](/doc/ref/pr), simply run:
0x2b3bfa0 marked this conversation as resolved.
Show resolved Hide resolved

```bash
cml ci
```
4 changes: 3 additions & 1 deletion content/docs/ref/pr.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:
- name: Generate data
run: echo "Hello World" > output.txt
- name: Create and merge PR
run: gh pr merge --rebase $(cml pr "output.txt")
run: |
cml ci
gh pr merge --rebase $(cml pr "output.txt")
casperdcl marked this conversation as resolved.
Show resolved Hide resolved
env:
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
Expand Down