Skip to content

Commit 79fff7f

Browse files
authored
fix: force no color when using github markdown console (#1551)
1 parent b234778 commit 79fff7f

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

docs/integrations/github.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Setup Python
4646
uses: actions/setup-python@v4
4747
- name: Checkout PR branch
48-
uses: actions/checkout@v3
48+
uses: actions/checkout@v4
4949
with:
5050
ref: refs/pull/${{ github.event.issue.pull_request && github.event.issue.number || github.event.pull_request.number }}/merge
5151
- name: Install SQLMesh + Dependencies
@@ -230,7 +230,7 @@ jobs:
230230
sqlmesh:
231231
steps:
232232
- name: Checkout PR branch
233-
uses: actions/checkout@v3
233+
uses: actions/checkout@v4
234234
# Add if statement so we don't checkout merged PR but instead main branch
235235
if: github.event.pull_request.merged == false
236236
with:
@@ -404,7 +404,7 @@ jobs:
404404
with:
405405
python-version: '3.9'
406406
- name: Checkout PR branch
407-
uses: actions/checkout@v3
407+
uses: actions/checkout@v4
408408
with:
409409
ref: refs/pull/${{ github.event.issue.pull_request && github.event.issue.number || github.event.pull_request.number }}/merge
410410
- name: Install Dependencies

sqlmesh/integrations/github/cicd/controller.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
import requests
1515
from hyperscript import Element, h
16+
from rich.console import Console
1617
from sqlglot.helper import seq_get
1718

1819
from sqlmesh.core import constants as c
@@ -288,7 +289,7 @@ def __init__(
288289
self._prod_plan: t.Optional[Plan] = None
289290
self._prod_plan_with_gaps: t.Optional[Plan] = None
290291
self._check_run_mapping: t.Dict[str, CheckRun] = {}
291-
self._console = MarkdownConsole()
292+
self._console = MarkdownConsole(console=Console(no_color=True))
292293
self._client: Github = client or Github(
293294
base_url=os.environ["GITHUB_API_URL"],
294295
login_or_token=self._token,

0 commit comments

Comments
 (0)