auths objectreturn or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.async (event, steps, params) => {}this.owner = params.owner
this.repo = params.repoThe user / org who owns the repo
The name of your repository
async (params, auths) => {}const { owner, repo, ref } = params
const { Octokit } = require("@octokit/rest")
const octokit = new Octokit({
  auth: auths.github.oauth_access_token,
})
let payload = {
  owner,
  repo,
}
if (ref) {
  payload = {
    owner,
    repo,
    ref,
  }
}
return (await octokit.repos.getReadme(payload)).dataasync params => {}const buffer = Buffer.from(params.data, 'base64');
this.data = buffer.toString('utf8');auths objectreturn or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.async (event, steps, params) => {}const { link, readme, title } = params
if (!link || !readme || !title) {
  $end("No link, title, or README conent found. Please see the step exports above to troubleshoot their absence.")
}
// Match on the content within the DEV tags 
const re = /\<\!\-\-\s*dev\s*\-\-\>(?<link>.*)\<\!\-\-\s*devend\s*\-\-\>/is
const match = readme.match(re)
if (!match || !match.groups) {
  $end("<!-- dev --> comments not found. Exiting")
}
return readme.replace(/\<\!\-\-\s*dev\s*\-\-\>(?<content>.*)\<\!\-\-\s*devend\s*\-\-\>/is, `<!-- dev -->
[${title}](${link})
<!-- devend -->`)auths objectreturn or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.async (event, steps, params) => {}const buffer = Buffer.from(params.data);
this.data = buffer.toString('base64');auths objectThe new file content, Base64-encoded
The blob SHA of the file being replaced
The commit message
return or this.key = 'value', pass input data to your code viaparams, and maintain state across executions with$checkpoint.async (event, steps, params, auths) => {}const { owner, repo, path, content, message, sha } = params
const { Octokit } = require("@octokit/rest")
const octokit = new Octokit({
  auth: auths.github.oauth_access_token,
})
this.resp = await octokit.repos.createOrUpdateFileContents({
  owner,
  repo,
  path,
  message,
  content,
  sha
})