-
Notifications
You must be signed in to change notification settings - Fork 129
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
git helpers #741
git helpers #741
Changes from 6 commits
574fb12
3b19e95
adcdd8c
81f2cb5
682c2d3
6897762
c074fad
7b9a8e2
521cfed
0f8b13d
822c9e8
8b2d555
d58d623
754cca9
71b3aaa
c2d5d07
145921b
37aa561
e1aa1d6
9a3211d
775a5fb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
title: Git | ||
description: git helpers | ||
sidebar: | ||
order: 51 | ||
--- | ||
|
||
The `git` helper provides a thin wrapper around invoking the [git](https://git-scm.com/) executable. | ||
|
||
## defaultBranch | ||
|
||
Resolve the default branch, typically `main` or `master` in the repository. | ||
|
||
```js | ||
const df = await git.defaultBranch() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code snippet is missing the function call to execute the
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The variable
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing 'await' keyword before 'git.defaultBranch()' function call.
|
||
``` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code snippet is missing the declaration for the 'git' variable. It should show how to import or require the 'git' helper module.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code snippet is missing the function declaration for
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code example for 'git.defaultBranch' is incomplete. It should include the import statement and possibly more context for clarity.
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider providing an example of how to invoke the
git
helper for clarity.