Skip to content

[#287] 🐛 - Release Deploy Issues#288

Merged
efraespada merged 48 commits intodevelopfrom
bugfix/287-release-deploy-issues
Feb 11, 2026
Merged

[#287] 🐛 - Release Deploy Issues#288
efraespada merged 48 commits intodevelopfrom
bugfix/287-release-deploy-issues

Conversation

@efraespada
Copy link
Member

@efraespada efraespada commented Feb 9, 2026

📌 Summary

This PR fixes issues in the deployment system where:

  1. The changelog content was not being correctly parsed from issue bodies when creating releases
  2. Issues were not being automatically closed when the deployed label was applied after successful deployment

The changelog extraction now properly captures content from the "Changelog" (or "Hotfix Solution") section up to the "Additional Context" section. Additionally, when the deployed label is applied after a successful deployment, the issue is now properly closed after merging to the default and development branches.


🎯 Related Issues / Tickets


🧩 Scope of Changes

  • Added:

    • extractChangelogUpToAdditionalContext utility function for parsing changelog content from issue bodies
    • Issue closure logic in DeployedActionUseCase after successful merges
  • Updated:

    • DeployedActionUseCase to close issues when deployed label is applied and all merges succeed
    • DeployAddedUseCase to move issues to "In Progress" when deploy label is added
    • Changelog extraction logic in release/hotfix workflow triggers
  • Refactored:

    • Improved error handling and feedback for merge operations during deployment

🛠️ Technical Details

The changelog extraction uses a regex pattern that handles both ## and ### heading styles, capturing all content from the specified section (Changelog/Hotfix Solution) up to the "Additional Context" section. This ensures the release body contains only the relevant changelog content without the additional context section.

For issue closure, the DeployedActionUseCase now performs the following sequence:

  1. Validates that the deploy label exists and deployed label is not already set
  2. Updates labels to replace deploy with deployed
  3. Merges release/hotfix branch to default branch (main)
  4. Merges release branch to development branch (or default to develop for hotfixes)
  5. Only closes the issue if ALL merges succeed, providing detailed feedback if any merge fails

This ensures issues are only closed when the deployment is fully complete and code has been properly merged to both branches.


🔍 How to Test

  1. Create a release or hotfix issue with a changelog section in the body
  2. Add the deploy label to trigger deployment
  3. Verify the issue moves to "In Progress" column
  4. Verify the deployment workflow receives the correct changelog content (without the Additional Context section)
  5. After successful deployment, verify the deployed label is applied
  6. Verify the issue is automatically closed after successful merges to both default and development branches

🧪 Test Coverage

  • Unit tests
  • Integration tests
  • End-to-end (E2E) tests
  • Manual testing only (explain why)

⚠️ Breaking Changes

  • None

🚀 Deployment Notes

  • Requires database migration
  • Requires environment variable changes
  • Requires feature flag toggle
  • No special deployment steps

🔒 Security Considerations

  • No security impact
  • Input validation changes
  • Authentication / authorization changes
  • Sensitive data handling changes

📈 Performance Impact

  • No performance impact
  • Improves performance
  • Potential performance regression (explain)

📝 Notes for Reviewers

Pay special attention to the merge sequence logic in DeployedActionUseCase - the issue should only be closed when both merges succeed. For hotfixes, the merge strategy merges the hotfix to default first, then merges default to develop (to ensure develop gets the hotfix changes).


✅ Checklist

  • I have self-reviewed my code
  • Code follows project standards and conventions
  • Tests have been added or updated
  • Documentation has been updated (if applicable)
  • No new warnings or lint errors
  • Changes are backward compatible or breaking changes are documented

📚 Additional Context

The issue closure logic only triggers when there is an active release or hotfix branch configured. If no branch is configured, the labels are still updated but the issue remains open since no merge operations are performed.

…and extract changelog content up to "Additional Context". Update `DeployedActionUseCase` to close issues and log the action. Modify `DeployAddedUseCase` to utilize new changelog extraction utility. Add tests for changelog extraction functionality.
…deployment and improve changelog extraction utility. Update `DeployedActionUseCase` to close issues and log actions, while modifying `DeployAddedUseCase` to utilize the new changelog extraction method. Update type definitions accordingly.
…sure to after merges to default and development branches, enhancing logging and result reporting. Update steps to reflect new closure timing and improve clarity in deployment outcomes.
@docs-page
Copy link

docs-page bot commented Feb 9, 2026

To view this pull requests documentation preview, visit the following URL:

docs.page/landamessenger/git-board-flow~288

Documentation is deployed and generated using docs.page.

@elisalopez elisalopez added the 100% Progress: 100% label Feb 9, 2026
@elisalopez elisalopez changed the title Bugfix/287 release deploy issues [#287] 🐛 - Release Deploy Issues Feb 9, 2026
@elisalopez elisalopez self-requested a review February 9, 2026 04:51
@elisalopez elisalopez added this to vypdev Feb 9, 2026
@elisalopez elisalopez moved this to In Progress in vypdev Feb 9, 2026
@elisalopez elisalopez changed the base branch from develop to master February 9, 2026 04:52
@efraespada efraespada linked an issue Feb 9, 2026 that may be closed by this pull request
1 task
@elisalopez elisalopez changed the base branch from master to develop February 9, 2026 04:52
@elisalopez
Copy link
Contributor

🐛 Bugfix Actions

  1. The pull request's title was updated from Bugfix/287 release deploy issues to [#287] 🐛 - Release Deploy Issues.
  2. The pull request was assigned to @efraespada (creator).
  3. @elisalopez was requested to review the pull request.
  4. The pull request was linked to Landa Messenger Development and moved to the column In Progress.
  5. The base branch was temporarily updated to master.
  6. The description was temporarily modified to include a reference to issue 🐛🧑‍💻 - Release Deploy Issues #287.
  7. The base branch was reverted to its original value: develop.
  8. The temporary issue reference 🐛🧑‍💻 - Release Deploy Issues #287 was removed from the description.
  9. Size and progress labels copied from issue 🐛🧑‍💻 - Release Deploy Issues #287 to this PR.
  10. Priority set to P0 in Landa Messenger Development.
  11. The description has been updated with AI-generated content (OpenCode Plan agent).

image

🚀 Happy coding!

…tBranch to be set when currentConfiguration is undefined, improving branch management during renaming operations.
…o README and features documentation, enhance issue and pull request templates, and clarify AI model configurations. Adjust concurrency settings in various workflows to support sequential execution, improving overall workflow management.
…requirements and environment variable handling. Enhance documentation on provider credentials and usage in GitHub Actions workflows.
…ronment variables for provider credentials in GitHub Actions, detail alternatives for using `/connect` in CI, and provide examples for local provider configurations. Improve overall guidance for setting up OpenCode with various providers.
…ners to use `ubuntu-latest`, add new input parameters for priority labels and AI reasoning, and improve comment handling in the ThinkUseCase to allow responses without user mention for help or question issues. Update documentation to reflect these changes.
… `branches-ignore`, enhance permissions for file updates, and streamline build and test steps. Remove obsolete validation workflow for agent processes.
…lows to streamline configuration in `gbf_issue_comment.yml` and `gbf_issue.yml`. Also, remove `opencode-start-server` parameter from `release_workflow.yml` for improved clarity.
…escriptions and hotfix changelogs, clarify steps for issue and PR management, and enhance troubleshooting guidance for action skips. Adjust workflow execution parameters for hotfixes in GitHub Actions.
@elisalopez
Copy link
Contributor

🐛 Bugfix Actions

  1. Size and progress labels copied from issue 🐛🧑‍💻 - Release Deploy Issues #287 to this PR.
  2. The description has been updated with AI-generated content (OpenCode Plan agent).

image

🚀 Happy coding!

…lify component usage for a consistent UI. Revise configuration documentation to improve clarity on OpenCode integration and troubleshooting steps. Add new content sections in features and index pages for better navigation and user guidance.
@elisalopez
Copy link
Contributor

🐛 Bugfix Actions

  1. Size and progress labels copied from issue 🐛🧑‍💻 - Release Deploy Issues #287 to this PR.
  2. The description has been updated with AI-generated content (OpenCode Plan agent).

image

🚀 Happy coding!

…tion configurations, including AI-generated PR descriptions. Remove outdated pull request and single actions documentation to streamline content and improve navigation.
…ent `listIssueComments`, `listPullRequestReviewComments`, `createReviewWithComments`, and `updatePullRequestReviewComment` in their respective repositories. Introduce `getPullRequestHeadSha` method for retrieving the head commit SHA of a pull request. Update constants to include a hidden HTML comment prefix for bugbot findings.
@elisalopez
Copy link
Contributor

🐛 Bugfix Actions

  1. Size and progress labels copied from issue 🐛🧑‍💻 - Release Deploy Issues #287 to this PR.
  2. The description has been updated with AI-generated content (OpenCode Plan agent).

image

🚀 Happy coding!

…` with `detect-potential-problems` in CLI and documentation. Update related constants and remove obsolete `detect-errors` use case. Enhance README and documentation to reflect changes in command functionality and usage.
…penCodeRetry` function for handling retries on OpenCode HTTP requests. Update `opencodePrompt` and `opencodeMessageWithAgent` functions to utilize this retry mechanism. Remove obsolete `detect-errors` command and related references in the CLI and documentation. Enhance tests to cover retry behavior and update constants for retry configurations.
…tialProblemsUseCase` to prevent creating PR review comments when no valid file/line is found, ensuring only issue comments are added. Modify `resolveFindingPathForPr` to return undefined for invalid paths, enhancing path validation. Update tests to reflect these changes and improve clarity in comment creation behavior.
… Implement logic to preserve key configuration values from previous states when current values are undefined. Update the `update` method in ConfigurationHandler to ensure proper merging of configurations. Modify path resolution logic in CheckChangesIssueSizeUseCase to utilize development branches when parentBranch is not defined, improving robustness in branch handling. Update tests to reflect these changes and ensure expected behavior.
@elisalopez elisalopez added the size: XXL Indicates an extremely large task or issue that requires significant time and effort to complete. label Feb 10, 2026
@vypdev vypdev deleted a comment from elisalopez Feb 10, 2026
@vypdev vypdev deleted a comment from elisalopez Feb 10, 2026
@vypdev vypdev deleted a comment from elisalopez Feb 10, 2026
@vypdev vypdev deleted a comment from elisalopez Feb 10, 2026
@vypdev vypdev deleted a comment from elisalopez Feb 10, 2026
@vypdev vypdev deleted a comment from elisalopez Feb 10, 2026
@vypdev vypdev deleted a comment from elisalopez Feb 10, 2026
@vypdev vypdev deleted a comment from elisalopez Feb 10, 2026
@elisalopez
Copy link
Contributor

🐛 Bugfix Actions

  1. Size and progress labels copied from issue 🐛🧑‍💻 - Release Deploy Issues #287 to this PR.
  2. The description has been updated with AI-generated content (OpenCode Plan agent).

image

🚀 Happy coding!

@elisalopez elisalopez added 65% Progress: 65% and removed 100% Progress: 100% labels Feb 10, 2026
…: Simplify step messages by removing size and progress details, ensuring clarity in the output of label synchronization tests.
@elisalopez
Copy link
Contributor

🐛 Bugfix Actions

  1. Size and progress labels copied from issue 🐛🧑‍💻 - Release Deploy Issues #287 to this PR.
  2. The description has been updated with AI-generated content (OpenCode Plan agent).

image

🚀 Happy coding!

…eclaration of the payload variable in the update method from let to const for improved clarity and to enforce immutability, ensuring that the payload remains unchanged throughout its scope.
@elisalopez elisalopez added 100% Progress: 100% and removed 65% Progress: 65% labels Feb 10, 2026
@elisalopez
Copy link
Contributor

🐛 Bugfix Actions

  1. Size and progress labels copied from issue 🐛🧑‍💻 - Release Deploy Issues #287 to this PR.
  2. The description has been updated with AI-generated content (OpenCode Plan agent).

image

🚀 Happy coding!

…IssueToPrUseCase: Remove detailed step messages related to size and progress labels, simplifying the output and ensuring consistency in the results. Update tests to reflect these changes and verify that steps are now empty.
@efraespada efraespada force-pushed the bugfix/287-release-deploy-issues branch from c9f48e0 to 78774b5 Compare February 10, 2026 23:41
…e number, title length, and changelog size in both hotfix and release workflows to ensure proper input formats and constraints before proceeding with updates.
…lues in the files object to maintain consistency and improve clarity in type definitions.
@efraespada efraespada force-pushed the bugfix/287-release-deploy-issues branch from 94f219a to daa64c1 Compare February 11, 2026 00:05
@efraespada efraespada merged commit c9389ff into develop Feb 11, 2026
7 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in vypdev Feb 11, 2026
@elisalopez
Copy link
Contributor

🐛 Bugfix Actions

  1. 🐛🧑‍💻 - Release Deploy Issues #287 was automatically closed after merging this pull request.

image

🚀 Happy coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

100% Progress: 100% size: XXL Indicates an extremely large task or issue that requires significant time and effort to complete.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

🐛🧑‍💻 - Release Deploy Issues

2 participants