init
create_changelog()
¶
Create the changelog file.
Returns:
Type | Description |
---|---|
Res[str | None]
|
A |
Source code in m/ci/init.py
create_m_config()
¶
Create the m configuration file.
Returns:
Type | Description |
---|---|
Res[str | None]
|
The name of the m file or none if successful. Otherwise an |
Source code in m/ci/init.py
get_repo_info()
¶
init_repo()
¶
Initialize a repository with the basic project configurations.
Returns:
Type | Description |
---|---|
Res[None]
|
A |
Source code in m/ci/init.py
m_config_body(owner, repo)
¶
Create the basic contents of a m configuration file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
owner |
str
|
The repo owner. |
required |
repo |
str
|
The repo name. |
required |
Returns:
Type | Description |
---|---|
str
|
A yaml string to be the content of the |
Source code in m/ci/init.py
parse_ssh_url(ssh_url)
¶
Find the owner and repo from an ssh url.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ssh_url |
str
|
The url of the repo |
required |
Returns:
Type | Description |
---|---|
Res[Tuple[str, str]]
|
A tuple with the owner and repo (or an Issue). |
Source code in m/ci/init.py
update_gitignore()
¶
Update the gitignore file.
Adds the m/.m directory to the list.
Returns:
Type | Description |
---|---|
Res[str | None]
|
A |
Res[str | None]
|
the file. |