Skip to content

Conversation

@xsahil03x
Copy link
Member

@xsahil03x xsahil03x commented Apr 2, 2025

Resolves: FLU-92

Description of the pull request

This pull request introduces a new GitHub Actions workflow to check for modifications in database entity files within the stream_chat_persistence package. The workflow ensures that any changes to these files are detected and appropriately flagged in pull requests.

New GitHub Actions workflow:

  • .github/workflows/check_db_entities.yml: Added a workflow named "Check Database Entity Modifications" that triggers on pull requests. It checks for changes in .dart files within packages/stream_chat_persistence/lib/src/entity/** directory, and if changes are detected, it posts a comment on the pull request detailing the modified files and reminding developers to update the database version and entity schema tests if necessary.

@github-actions
Copy link

github-actions bot commented Apr 2, 2025

⚠️ Database Entity Files Modified

The following database entity files have been modified in this PR:

packages/stream_chat_persistence/lib/src/entity/polls.dart

📝 Remember to:

  1. Update database version in db/drift_chat_database.dart.
  2. Update entity schema tests if necessary.

Note: This comment is automatically generated by the CI workflow.

@xsahil03x xsahil03x changed the title feat(ci): add check_db_entities workflow feat(repo): add check_db_entities workflow Apr 2, 2025
@xsahil03x xsahil03x requested a review from Copilot April 3, 2025 10:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new GitHub Actions workflow to detect modifications in database entity files in the stream_chat_persistence package.

  • Adds a GitHub Actions workflow that checks for changes in .dart files within packages/stream_chat_persistence/lib/src/entity.
  • Posts an automated comment on the pull request when changes are detected, reminding developers to update the database version and entity schema tests.
Comments suppressed due to low confidence (1)

.github/workflows/check_db_entities.yml:6

  • Consider narrowing the paths filter to 'packages/stream_chat_persistence/lib/src/entity/**' for consistency with the files being checked and to avoid unnecessary workflow runs when changes occur outside the entity directory.
      - 'packages/stream_chat_persistence/**'

Copy link
Contributor

@Brazol Brazol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xsahil03x xsahil03x merged commit b939920 into master Apr 3, 2025
9 checks passed
@xsahil03x xsahil03x deleted the feat/check-db-entities-workflow branch April 3, 2025 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants