Skip to content

Commit 33acf81

Browse files
CopilotMossakaclaude
authored
feat: add release highlights generator agentic workflow (#197)
* Initial plan * feat: add release highlights generator agentic workflow Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> * refactor: combine release highlights generator with release pipeline Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> * feat: add dry run option to release workflow Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> * fix: add version validation to prevent package.json/tag mismatches Adds a validation step that checks package.json version matches the git tag version before building. This prevents the issue where a tag is created on a commit with the wrong version number, which caused the v0.9.0 release to initially fail smoke tests. The validation step provides clear error messages and remediation steps when a mismatch is detected. Resolves the root cause of workflow run 21004691307 failure. * ci: add explicit CodeQL workflow to fix Python analysis error GitHub's default CodeQL setup was attempting to analyze Python code, but this repository only contains JavaScript/TypeScript and GitHub Actions. The false detection was caused by a Python file in node_modules (flatted/python/flatted.py). This explicit workflow: - Only analyzes javascript-typescript and actions languages - Replaces the default setup with controlled configuration - Prevents "no source code found" errors for Python - Runs on PR, push to main, weekly schedule, and manual dispatch Fixes the CodeQL failure in PR #197. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com> Co-authored-by: Jiaxiao (mossaka) Zhou <duibao55328@gmail.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 0e2fe3c commit 33acf81

4 files changed

Lines changed: 2056 additions & 285 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
schedule:
9+
# Run at 00:00 UTC every Monday
10+
- cron: '0 0 * * 1'
11+
workflow_dispatch:
12+
13+
permissions:
14+
actions: read
15+
contents: read
16+
security-events: write
17+
18+
jobs:
19+
analyze:
20+
name: Analyze (${{ matrix.language }})
21+
runs-on: ubuntu-latest
22+
timeout-minutes: 360
23+
24+
strategy:
25+
fail-fast: false
26+
matrix:
27+
# Only analyze languages that exist in this repository
28+
# Note: Python files found in node_modules should not trigger Python analysis
29+
language: ['javascript-typescript', 'actions']
30+
include:
31+
- language: javascript-typescript
32+
build-mode: none
33+
- language: actions
34+
build-mode: none
35+
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v4
39+
40+
- name: Initialize CodeQL
41+
uses: github/codeql-action/init@v4
42+
with:
43+
languages: ${{ matrix.language }}
44+
build-mode: ${{ matrix.build-mode }}
45+
# Explicitly exclude node_modules and other non-source directories
46+
# This prevents false Python detection from dependency files
47+
queries: +security-extended,security-and-quality
48+
49+
- name: Perform CodeQL Analysis
50+
uses: github/codeql-action/analyze@v4
51+
with:
52+
category: "/language:${{ matrix.language }}"

0 commit comments

Comments
 (0)