mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-04-09 11:25:40 +00:00
Merge pull request #95 from nim65s/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
This commit is contained in:
@@ -3,8 +3,8 @@ repos:
|
|||||||
rev: 5.12.0
|
rev: 5.12.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.0.272
|
rev: v0.0.281
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args:
|
args:
|
||||||
@@ -38,6 +38,6 @@ repos:
|
|||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 23.3.0
|
rev: 23.7.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
|
|||||||
@@ -49,7 +49,12 @@ def github(data, headers):
|
|||||||
|
|
||||||
def gitlab_gchat(data, headers):
|
def gitlab_gchat(data, headers):
|
||||||
"""Pretty-print a gitlab notification preformatted for Google Chat."""
|
"""Pretty-print a gitlab notification preformatted for Google Chat."""
|
||||||
data["body"] = re.sub("<(.*?)\\|(.*?)>", "[\\2](\\1)", data["body"], re.MULTILINE)
|
data["body"] = re.sub(
|
||||||
|
"<(.*?)\\|(.*?)>",
|
||||||
|
"[\\2](\\1)",
|
||||||
|
data["body"],
|
||||||
|
flags=re.MULTILINE,
|
||||||
|
)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user