From f38c5b5bee649da7bdeb882f75b48cb397478937 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Nov 2025 20:30:20 +0000 Subject: [PATCH 1/2] Initial plan From 2784edb924a21fc362254b9a5f0590f93eb904b0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 4 Nov 2025 20:34:24 +0000 Subject: [PATCH 2/2] Fix: Remove emojis from GitHub status context fields Co-authored-by: amirbiron <215461772+amirbiron@users.noreply.github.com> --- .github/workflows/ci.yml | 166 ++------------------------------------- 1 file changed, 6 insertions(+), 160 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f089e3b1b..bb4ae1f6b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -76,7 +76,7 @@ jobs: - name: ๐Ÿถ Ruff (optional) run: ruff check . || true - - name: Report required status (legacy emoji pending) + - name: Report required status (pending) if: github.event_name == 'pull_request' uses: actions/github-script@v7 continue-on-error: true @@ -89,7 +89,7 @@ jobs: repo: context.repo.repo, sha, state: 'pending', - context: '๐Ÿ” Code Quality & Security', + context: 'Code Quality & Security', description: 'Job queued/running', target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` }); @@ -107,24 +107,7 @@ jobs: repo: context.repo.repo, sha, state: 'success', - context: '๐Ÿ” Code Quality & Security', - description: 'Checks passed', - target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` - }); - - name: Report required status (legacy emoji success) - if: ${{ success() }} - uses: actions/github-script@v7 - continue-on-error: true - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const sha = context.payload.pull_request ? context.payload.pull_request.head.sha : context.sha; - await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', { - owner: context.repo.owner, - repo: context.repo.repo, - sha, - state: 'success', - context: '๐Ÿ” Code Quality & Security', + context: 'Code Quality & Security', description: 'Checks passed', target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` }); @@ -142,12 +125,12 @@ jobs: repo: context.repo.repo, sha, state: 'failure', - context: 'Code Quality', + context: 'Code Quality & Security', description: 'Checks failed', target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` }); - - name: Report required status (legacy emoji cancelled) + - name: Report required status (cancelled) if: ${{ cancelled() }} uses: actions/github-script@v7 continue-on-error: true @@ -160,27 +143,10 @@ jobs: repo: context.repo.repo, sha, state: 'failure', - context: '๐Ÿ” Code Quality & Security', + context: 'Code Quality & Security', description: 'Job cancelled', target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` }); - - name: Report required status (legacy emoji failure) - if: ${{ failure() }} - uses: actions/github-script@v7 - continue-on-error: true - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const sha = context.payload.pull_request ? context.payload.pull_request.head.sha : context.sha; - await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', { - owner: context.repo.owner, - repo: context.repo.repo, - sha, - state: 'failure', - context: '๐Ÿ” Code Quality & Security', - description: 'Checks failed', - target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` - }); unit-tests: name: "๐Ÿงช Unit Tests (${{ matrix.python-version }})" @@ -232,26 +198,6 @@ jobs: run: pip check || true - name: Report required status (pending) - if: github.event_name == 'pull_request' - uses: actions/github-script@v7 - continue-on-error: true - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const sha = context.payload.pull_request ? context.payload.pull_request.head.sha : context.sha; - const ver = process.env.PYV || '${{ matrix.python-version }}'; - await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', { - owner: context.repo.owner, - repo: context.repo.repo, - sha, - state: 'pending', - context: `๐Ÿงช Unit Tests (${ver})`, - description: 'Job queued/running', - target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` - }); - env: - PYV: ${{ matrix.python-version }} - - name: Report required status (pending ASCII) if: github.event_name == 'pull_request' uses: actions/github-script@v7 continue-on-error: true @@ -306,26 +252,6 @@ jobs: if-no-files-found: ignore - name: Report required status (success) - if: ${{ success() }} - uses: actions/github-script@v7 - continue-on-error: true - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const sha = context.payload.pull_request ? context.payload.pull_request.head.sha : context.sha; - const ver = process.env.PYV || '${{ matrix.python-version }}'; - await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', { - owner: context.repo.owner, - repo: context.repo.repo, - sha, - state: 'success', - context: `๐Ÿงช Unit Tests (${ver})`, - description: 'Tests passed', - target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` - }); - env: - PYV: ${{ matrix.python-version }} - - name: Report required status (success ASCII) if: ${{ success() }} uses: actions/github-script@v7 continue-on-error: true @@ -345,48 +271,8 @@ jobs: }); env: PYV: ${{ matrix.python-version }} - - name: Report required status (legacy emoji success) - if: ${{ success() }} - uses: actions/github-script@v7 - continue-on-error: true - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const sha = context.payload.pull_request ? context.payload.pull_request.head.sha : context.sha; - const ver = process.env.PYV || '${{ matrix.python-version }}'; - await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', { - owner: context.repo.owner, - repo: context.repo.repo, - sha, - state: 'success', - context: `๐Ÿงช Unit Tests (${ver})`, - description: 'Tests passed', - target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` - }); - env: - PYV: ${{ matrix.python-version }} - name: Report required status (failure) - if: ${{ failure() }} - uses: actions/github-script@v7 - continue-on-error: true - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const sha = context.payload.pull_request ? context.payload.pull_request.head.sha : context.sha; - const ver = process.env.PYV || '${{ matrix.python-version }}'; - await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', { - owner: context.repo.owner, - repo: context.repo.repo, - sha, - state: 'failure', - context: `๐Ÿงช Unit Tests (${ver})`, - description: 'Tests failed', - target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` - }); - env: - PYV: ${{ matrix.python-version }} - - name: Report required status (failure ASCII) if: ${{ failure() }} uses: actions/github-script@v7 continue-on-error: true @@ -408,26 +294,6 @@ jobs: PYV: ${{ matrix.python-version }} - name: Report required status (cancelled) - if: ${{ cancelled() }} - uses: actions/github-script@v7 - continue-on-error: true - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const sha = context.payload.pull_request ? context.payload.pull_request.head.sha : context.sha; - const ver = process.env.PYV || '${{ matrix.python-version }}'; - await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', { - owner: context.repo.owner, - repo: context.repo.repo, - sha, - state: 'failure', - context: `๐Ÿงช Unit Tests (${ver})`, - description: 'Job cancelled', - target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` - }); - env: - PYV: ${{ matrix.python-version }} - - name: Report required status (cancelled ASCII) if: ${{ cancelled() }} uses: actions/github-script@v7 continue-on-error: true @@ -447,26 +313,6 @@ jobs: }); env: PYV: ${{ matrix.python-version }} - - name: Report required status (failure) - if: ${{ failure() }} - uses: actions/github-script@v7 - continue-on-error: true - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const sha = context.payload.pull_request ? context.payload.pull_request.head.sha : context.sha; - const ver = process.env.PYV || '${{ matrix.python-version }}'; - await github.request('POST /repos/{owner}/{repo}/statuses/{sha}', { - owner: context.repo.owner, - repo: context.repo.repo, - sha, - state: 'failure', - context: `๐Ÿงช Unit Tests (${ver})`, - description: 'Tests failed', - target_url: `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}` - }); - env: - PYV: ${{ matrix.python-version }} hadolint: name: "Dockerfile lint (hadolint)"