flowbber.plugins.sources.git
¶This source collects information from a (this) local git repository:
The directory
option can be used to specify a path to a local git
repository to get information from. In particular, if your CI system created
an out-of-repository build directory you can always get the context of the
repository the pipeline definition file is commited to using:
[[sources]]
type = "git"
id = "..."
[sources.config]
directory = "{git.root}"
{
"sources": [
{
"type": "git",
"id": "...",
"config": {
"directory": "{git.root}"
}
}
]
}
Data collected:
{
"root": "/home/kuralabs/flowbber",
"branch": "master",
"rev": "9742e30",
"tag": "2.0.0",
"name": "The Author",
"email": "author@domain.com",
"subject": "Added a new Git source.",
"body": "",
"date": "2017-09-13T01:27:55-06:00"
}
Dependencies:
pip3 install flowbber[git]
Usage:
[[sources]]
type = "git"
id = "..."
[sources.config]
directory = "."
{
"sources": [
{
"type": "git",
"id": "...",
"config": {
"directory": "."
}
}
]
}
Directory to run git from. This can be any subdirectory inside a git repository, not only the root.
Default: '.'
Optional: True
Schema:
{
'type': 'string',
'empty': False,
}
Secret: False