Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Fixes # (issue)

Please delete options that are not relevant.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] Bug fix (non-breaking CHANGE which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] Refactor (does not change functionality, e.g. code style improvements, linting)
Expand Down
37 changes: 0 additions & 37 deletions .github/WORK_FLOW/greet_contributors.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/greet_contributors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Greet Contributors

on:
issues:
types: [opened]
pull_request:
types: [opened]

permissions:
issues: write
pull-requests: write
contents: read

jobs:
greet:
runs-on: ubuntu-latest

steps:
- name: Print GitHub context
run: echo "${{ toJson(github) }}"

- name: Send greeting message for issues
if: github.event_name == 'issues'
uses: actions-ecosystem/action-create-comment@v1.4.0
continue-on-error: true
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
number: ${{ github.event.issue.number }}
body: |
Hi @${{ github.event.issue.user.login }}!
Thanks for opening this issue, would you like to work on this?

- name: Send greeting message for PRs
if: github.event_name == 'pull_request'
uses: actions-ecosystem/action-create-comment@v1.4.0
continue-on-error: true
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repo: ${{ github.repository }}
number: ${{ github.event.pull_request.number }}
body: |
Hi @${{ github.event.pull_request.user.login }}! 🎉
Thanks for opening this pull request. We appreciate your contribution.

- name: Log completion
run: |
echo "Greeting workflow completed successfully"
echo "Event type: ${{ github.event_name }}"
25 changes: 25 additions & 0 deletions .github/workflows/update-project-structure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Auto Update Project Structure

on:
push:
branches:
- main

jobs:
update-project-structure:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Generate project_structure.txt
run: |
tree -a -I 'node_modules|.git|build|.dart_tool|*.lock|*.pyc' > project_structure.txt
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

tree is not pre-installed on ubuntu-latest; the step will fail.
GitHub-hosted runners do not include tree by default, so this command exits with 127. Install it first or switch to a pure-Git solution (git ls-files). Example fix:

+      - name: Install dependencies
+        run: sudo apt-get update && sudo apt-get install -y tree
+
       - name: Generate project_structure.txt
         run: |
           tree -a -I 'node_modules|.git|build|.dart_tool|*.lock|*.pyc' > project_structure.txt
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- name: Generate project_structure.txt
run: |
tree -a -I 'node_modules|.git|build|.dart_tool|*.lock|*.pyc' > project_structure.txt
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y tree
- name: Generate project_structure.txt
run: |
tree -a -I 'node_modules|.git|build|.dart_tool|*.lock|*.pyc' > project_structure.txt
🤖 Prompt for AI Agents
In .github/workflows/update-project-structure.yml at lines 15 to 17, the
workflow uses the `tree` command which is not pre-installed on the
`ubuntu-latest` runner, causing the step to fail. Fix this by adding a step
before this to install `tree` using `sudo apt-get update && sudo apt-get install
-y tree`, or replace the `tree` command with a pure Git alternative like `git
ls-files` to generate the project structure without external dependencies.


- name: Commit and Push
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add project_structure.txt
git commit -m "chore: update project_structure.txt [auto]" || echo "No changes to commit"
git push https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git HEAD:main
6 changes: 2 additions & 4 deletions lib/controllers/onboarding_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,9 @@ class OnboardingController extends GetxController {
firstDate: DateTime(1800),
lastDate: DateTime.now(),
);
if (pickedDate != null) {
dobController.text =
DateFormat("dd-MM-yyyy").format(pickedDate).toString();
dobController.text =
DateFormat("dd-MM-yyyy").format(pickedDate).toString();
}
}

Future<void> saveProfile() async {
if (!userOnboardingFormKey.currentState!.validate()) {
Expand Down
2 changes: 1 addition & 1 deletion lib/controllers/upcomming_rooms_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ class UpcomingRoomsController extends GetxController {
initialTime:
TimeOfDay(hour: initialTime.hour, minute: initialTime.minute),
);
if (pickedDate != null && pickedTime != null) {
if (pickedTime != null) {
DateTime pickedDateTime = DateTime(pickedDate.year, pickedDate.month,
pickedDate.day, pickedTime.hour, pickedTime.minute);
if (!pickedDateTime.isAfter(now)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/services/room_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class RoomService {

// Delete room on livekit and roomdoc on appwrite
String? livekitToken = await storage.read(key: "createdRoomAdminToken");
await apiService.deleteRoom(roomId, livekitToken!);
await apiService.deleteRoom(roomId, livekitToken);

// Get all participant documents and delete them
DocumentList participantDocsRef = await roomsController.databases
Expand Down