Github
Notification for receiving new emails.
import * as ds from "@devicescript/core"
const github = new ds.GithubClient()
Registers
requestStatus(body: string)
Requesting to check the commit status of the GitHub repository.
import * as ds from "@devicescript/core"
const github = new ds.GithubClient()
const body = JSON.stringify({
owner: "", // Repository owner
repo: "", // Repository name
commitId: "", // commit hash
token: "" // github token
})
await github.requestStatus(body)
Events
listenStatus
Listen for the commit status returned by GitHub.
github.listenStatus.subscribe((status) => {
if(status === 'success') {
...
}else if(status === 'failure') {
...
}else if(status === 'pending'){
...
}
})