Decorators
Decorators for the PR generator module.
logger
module-attribute
logger = getLogger(__name__)
F
module-attribute
F = TypeVar('F', bound=Callable[..., object])
git_operation
Decorator for git operations.
This decorator wraps functions that perform git operations, providing: - Logging of operation start/end - Standardized error handling - Automatic conversion of git-related exceptions to GitError
Parameters:
Name | Type | Description | Default |
---|---|---|---|
func
|
F
|
The function to decorate |
required |
Returns:
Type | Description |
---|---|
F
|
Decorated function |
Source code in src/codemap/git/pr_generator/decorators.py
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
|