git_store

Values

pub fn create_file(
  config: github_config.GitHubConfig,
  filename: String,
  content: String,
) -> Result(types.GitHubResponse, errors.GitStoreError)

Create a file from a file object on a GitHub repository at the given path https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#create-or-update-file-contents

pub fn delete_file(
  config: github_config.GitHubConfig,
  filename: String,
) -> Result(types.GitHubResponse, errors.GitStoreError)

Get a file object from a GitHub repositiory and, if it exists, delete it https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#delete-a-file

pub fn get_file(
  config: github_config.GitHubConfig,
  path: String,
) -> Result(types.GitHubResponse, errors.GitStoreError)

Get a file object from a GitHub repository at the given path Path should be a ‘/’ separated String, e.g: ‘foo/bar/baz’ https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#get-repository-content

pub fn main() -> Nil
pub fn update_file(
  config: github_config.GitHubConfig,
  filename: String,
  content: String,
) -> Result(types.GitHubResponse, errors.GitStoreError)

Get a file object from a GitHub repositiory and, if it exists, replace the content with the given content https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#create-or-update-file-contents

Search Document