Documentation
Preparing search index...
@quatrain/git
GitForgeAdapterInterface
Interface GitForgeAdapterInterface
interface
GitForgeAdapterInterface
{
context
:
ForgeContext
;
forgeType
:
ForgeType
;
authStatus
()
:
Promise
<
AuthStatus
>
;
createBranch
(
branchName
:
string
,
fromBranch
?:
string
)
:
Promise
<
void
>
;
downloadBlob
(
sha
:
string
)
:
Promise
<
string
>
;
fetchFileTree
(
branch
?:
string
)
:
Promise
<
FileTreeNode
[]
>
;
getCliInstallHint
()
:
string
;
getExecutionMode
()
:
Promise
<
"cli"
|
"http"
>
;
isCliAvailable
()
:
Promise
<
boolean
>
;
passthrough
(
args
:
string
[]
)
:
Promise
<
number
>
;
prCheckout
(
prNumber
:
number
)
:
Promise
<
void
>
;
prCreate
(
options
:
PrCreateOptions
)
:
Promise
<
PullRequest
>
;
prList
(
options
?:
PrListOptions
)
:
Promise
<
PullRequest
[]
>
;
prMerge
(
prNumber
:
number
,
options
?:
PrMergeOptions
)
:
Promise
<
void
>
;
prView
(
prNumber
:
number
)
:
Promise
<
PullRequest
>
;
pull
(
branch
?:
string
)
:
Promise
<
void
>
;
push
(
files
:
CommitFile
[]
,
message
:
string
,
branch
?:
string
)
:
Promise
<
void
>
;
releaseCreate
(
options
:
ReleaseCreateOptions
)
:
Promise
<
void
>
;
repoClone
(
target
:
string
,
destination
?:
string
)
:
Promise
<
void
>
;
repoCreate
(
options
:
RepoCreateOptions
)
:
Promise
<
RepoDetails
>
;
repoView
()
:
Promise
<
RepoDetails
>
;
whoami
()
:
Promise
<
string
>
;
}
Implemented by
AbstractGitForgeAdapter
Index
Properties
context
forge
Type
Methods
auth
Status
create
Branch
download
Blob
fetch
File
Tree
get
Cli
Install
Hint
get
Execution
Mode
is
Cli
Available
passthrough
pr
Checkout
pr
Create
pr
List
pr
Merge
pr
View
pull
push
release
Create
repo
Clone
repo
Create
repo
View
whoami
Properties
Readonly
context
context
:
ForgeContext
Readonly
forge
Type
forgeType
:
ForgeType
Methods
auth
Status
authStatus
()
:
Promise
<
AuthStatus
>
Returns
Promise
<
AuthStatus
>
create
Branch
createBranch
(
branchName
:
string
,
fromBranch
?:
string
)
:
Promise
<
void
>
Parameters
branchName
:
string
Optional
fromBranch
:
string
Returns
Promise
<
void
>
download
Blob
downloadBlob
(
sha
:
string
)
:
Promise
<
string
>
Parameters
sha
:
string
Returns
Promise
<
string
>
fetch
File
Tree
fetchFileTree
(
branch
?:
string
)
:
Promise
<
FileTreeNode
[]
>
Parameters
Optional
branch
:
string
Returns
Promise
<
FileTreeNode
[]
>
get
Cli
Install
Hint
getCliInstallHint
()
:
string
Returns
string
get
Execution
Mode
getExecutionMode
()
:
Promise
<
"cli"
|
"http"
>
Returns
Promise
<
"cli"
|
"http"
>
is
Cli
Available
isCliAvailable
()
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
passthrough
passthrough
(
args
:
string
[]
)
:
Promise
<
number
>
Parameters
args
:
string
[]
Returns
Promise
<
number
>
pr
Checkout
prCheckout
(
prNumber
:
number
)
:
Promise
<
void
>
Parameters
prNumber
:
number
Returns
Promise
<
void
>
pr
Create
prCreate
(
options
:
PrCreateOptions
)
:
Promise
<
PullRequest
>
Parameters
options
:
PrCreateOptions
Returns
Promise
<
PullRequest
>
pr
List
prList
(
options
?:
PrListOptions
)
:
Promise
<
PullRequest
[]
>
Parameters
Optional
options
:
PrListOptions
Returns
Promise
<
PullRequest
[]
>
pr
Merge
prMerge
(
prNumber
:
number
,
options
?:
PrMergeOptions
)
:
Promise
<
void
>
Parameters
prNumber
:
number
Optional
options
:
PrMergeOptions
Returns
Promise
<
void
>
pr
View
prView
(
prNumber
:
number
)
:
Promise
<
PullRequest
>
Parameters
prNumber
:
number
Returns
Promise
<
PullRequest
>
pull
pull
(
branch
?:
string
)
:
Promise
<
void
>
Parameters
Optional
branch
:
string
Returns
Promise
<
void
>
push
push
(
files
:
CommitFile
[]
,
message
:
string
,
branch
?:
string
)
:
Promise
<
void
>
Parameters
files
:
CommitFile
[]
message
:
string
Optional
branch
:
string
Returns
Promise
<
void
>
release
Create
releaseCreate
(
options
:
ReleaseCreateOptions
)
:
Promise
<
void
>
Parameters
options
:
ReleaseCreateOptions
Returns
Promise
<
void
>
repo
Clone
repoClone
(
target
:
string
,
destination
?:
string
)
:
Promise
<
void
>
Parameters
target
:
string
Optional
destination
:
string
Returns
Promise
<
void
>
repo
Create
repoCreate
(
options
:
RepoCreateOptions
)
:
Promise
<
RepoDetails
>
Parameters
options
:
RepoCreateOptions
Returns
Promise
<
RepoDetails
>
repo
View
repoView
()
:
Promise
<
RepoDetails
>
Returns
Promise
<
RepoDetails
>
whoami
whoami
()
:
Promise
<
string
>
Returns
Promise
<
string
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
context
forge
Type
Methods
auth
Status
create
Branch
download
Blob
fetch
File
Tree
get
Cli
Install
Hint
get
Execution
Mode
is
Cli
Available
passthrough
pr
Checkout
pr
Create
pr
List
pr
Merge
pr
View
pull
push
release
Create
repo
Clone
repo
Create
repo
View
whoami
Documentation
Loading...