-
-
Notifications
You must be signed in to change notification settings - Fork 6
Add weekly workflow to monitor web-features npm package for major and minor version updates #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…ersions Co-authored-by: NiklasMerz <3585860+NiklasMerz@users.noreply.github.com>
Co-authored-by: NiklasMerz <3585860+NiklasMerz@users.noreply.github.com>
|
@copilot create issues for major and minor versions |
Co-authored-by: NiklasMerz <3585860+NiklasMerz@users.noreply.github.com>
Updated in commit f89d770. The workflow now creates issues for both major and minor version updates. Changes:
With the current package.json at |
|
@copilot Use the jayqi/failed-build-issue-action@v1 actiom just like the other workflow |
Co-authored-by: NiklasMerz <3585860+NiklasMerz@users.noreply.github.com>
|
@copilot you can remove the github script action then |
I want to make sure I understand correctly. The Should I:
Could you clarify what you'd like me to change? |
|
@copilot make the workflow fail if the version was updated and then the issue is created. Sounds good right? |
Co-authored-by: NiklasMerz <3585860+NiklasMerz@users.noreply.github.com>
Done in commit b7dc6af. The workflow is now much simpler:
This approach reuses the existing failure notification mechanism and significantly simplifies the workflow. |
|
@copilot can you refactor the new python script and update_bcd_version to reuse the exisiting code? Reduce duplications. |
Co-authored-by: NiklasMerz <3585860+NiklasMerz@users.noreply.github.com>
Done in commit 237a0fa. Created a shared Improvements:
|
Creating a GitHub Action to monitor web-features npm package for new versions
Summary
Successfully created a GitHub Action workflow that monitors the
web-featuresnpm package for new major and minor version releases and automatically creates GitHub issues when detected.Completed Tasks
Files Created/Modified
.github/workflows/check_web_features_version.yml(51 lines)jayqi/failed-build-issue-actionto create issuestools/check_web_features_version.py(64 lines - reduced from 103!)version_utilsmoduletools/update_bcd_version.py(34 lines - reduced from 41!)version_utilsmoduletools/version_utils.py(NEW - 98 lines)parse_version,is_major_version_change,is_minor_or_major_version_change,is_same_major_version.gitignore__pycache__to exclude Python cache filesFeatures
✅ Detects new major versions (2.0.0 → 3.0.0)
✅ Detects new minor versions (2.0.0 → 2.1.0)
✅ Ignores patch version changes (2.0.0 → 2.0.1)
✅ Handles pre-release versions correctly
✅ Creates labeled issues automatically
✅ Provides clear update instructions
✅ Simplified workflow using unified issue creation mechanism
✅ Reduced code duplication with shared utilities
Code Quality Improvements
version_utils.pyto eliminate duplicate version parsing logiccheck_web_features_version.pyfrom 103 to 64 lines (38% reduction)update_bcd_version.pyfrom 41 to 34 lines (17% reduction)Testing & Security
✅ All tests passing (version parsing + comparison logic)
✅ Code review: All feedback addressed
✅ CodeQL security scan: 0 vulnerabilities
✅ YAML and Python syntax validated
Current Behavior
With package.json at
^2.0.0and npm at3.6.0, the workflow will create an issue because this is a major version change that should be reviewed.Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.