API Reference

PkgFactory.commit_file_on_githubMethod
commit_file_on_github(
    access_token::String,
    owner_name::String,
    repo_name::String,
    branch_name::String,
    commit_message::String,
    path::String,
    content::String
)
source
PkgFactory.commit_files_on_githubMethod
Warning

This function does not work for initial commit.

Signature:

commit_files_on_github(
    access_token::String,
    owner_name::String,
    repo_name::String,
    branch_name::String,
    commit_message::String,
    paths_and_contents::Dict{String, String}
) -> GitHub.Reference

Example:

access_token = "YOUR_ACCESS_TOKEN"
owner_name = "user"
repo_name = "my-github-repo"
branch_name = "main"
commit_message = "Update hello1.md and hello2.md"
paths_and_contents = Dict(
    "hello1.md" => "Hello, 1",
    "hello2.md" => "Hello, 2",
)

PkgFactory.commit_files_on_github(
    access_token,
    owner_name,
    repo_name,
    branch_name,
    commit_message,
    paths_and_contents,
)
source
PkgFactory.create_package_with_jllMethod
create_package_with_jll(
    access_token::String,
    owner_name::String,
    repo_name::String,
    author_names::Vector{String},
    package_description::String;
    commit_message
) -> Bool
source
PkgFactory.create_repoMethod
create_repo(
    access_token::String,
    owner_name::String,
    repo_name::String,
    package_description::String
) -> Union{Nothing, Bool, Float64, Int64, String, JSON3.Array, JSON3.Object}
source
PkgFactory.device_flow_endMethod
device_flow_end(
    client_id::String,
    device_code::String
) -> Union{Nothing, Bool, Float64, Int64, String, JSON3.Array, JSON3.Object}
source
PkgFactory.generate_template_dictMethod
generate_template_dict(
    owner_name::String,
    repo_name::String,
    author_names::Vector{String},
    package_description::String
) -> Dict{String, String}
source
PkgFactory.set_codecovMethod
set_codecov(
    access_token::String,
    owner_name::String,
    repo_name::String,
    codecov_token::String
) -> Bool
source
PkgFactory.update_templateMethod
Warning

This function is only for developers. This function updates the template files in the PkgFactory.jl/template directory.

Signature:

update_template(
    owner_name::String,
    repo_name::String,
    author_names::Vector{String}
)

Example:

PkgFactory.update_template("OWNER_NAME", "template", ["AUTHOR1", "AUTHOR2"])
source