-
Notifications
You must be signed in to change notification settings - Fork 715
ci: fixed o2 strapi workflow notfication issue #8218
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Greptile Summary
This PR addresses a Strapi workflow notification issue by restructuring the release notification system. The changes involve removing the dedicated github-release-public.yml workflow and integrating its Strapi webhook functionality directly into the main release.yml workflow.
The removed workflow previously handled automatic notifications to a Strapi CMS when releases were published, including changelog cleaning and JSON payload formatting. This functionality has been relocated to the release workflow as a new step that executes after successful GitHub release creation.
Additionally, the PR changes the runner from GitHub's standard ubuntu-latest to a custom repo-openobserve-standard-4 runner, suggesting a move towards self-hosted infrastructure for more control over the build environment.
The integration consolidates release-related operations into a single workflow, reducing complexity and potential race conditions between separate workflows. The Strapi notification step includes proper error handling, changelog sanitization (removing user mentions and PR links), and uses environment variables for secure authentication.
Confidence score: 4/5
- This PR appears safe to merge with minimal risk as it consolidates existing functionality rather than introducing new complex logic
- Score reflects well-structured integration of existing webhook functionality with proper error handling and authentication
- Pay close attention to the runner change and ensure the custom runner environment is properly configured with required secrets
2 files reviewed, 1 comment
| if (line.toLowerCase().includes('full changelog')) return ''; | ||
| line = line.replace(/by\s+@[\w-]+.*$/i, ''); | ||
| line = line.replace(/@\w+/g, ''); | ||
| line = line.replace(/\bhttps?:\/\/\Spull\S/gi, ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logic: Regex pattern \Spull\S looks incorrect - should probably be \S*pull\S* to match URLs containing 'pull'
| line = line.replace(/\bhttps?:\/\/\Spull\S/gi, ''); | |
| line = line.replace(/\bhttps?:\/\/\S*pull\S*/gi, ''); |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
fixed o2 strapi workflow notfication issue
PR Type
Enhancement, Bug fix
Description
Inline Strapi release notification in main workflow
Remove redundant public release webhook workflow
Use self-hosted runner for release job
Fix Strapi endpoint path and query
Diagram Walkthrough
File Walkthrough
github-release-public.yml
Delete redundant public release webhook workflow.github/workflows/github-release-public.yml
release.yml
Add Strapi notification and update runner.github/workflows/release.yml