{ "issue": { "url": "https://api.github.com/repos/laurent22/joplin/issues/11273", "repository_url": "https://api.github.com/repos/laurent22/joplin", "labels_url": "https://api.github.com/repos/laurent22/joplin/issues/11273/labels{/name}", "comments_url": "https://api.github.com/repos/laurent22/joplin/issues/11273/comments", "events_url": "https://api.github.com/repos/laurent22/joplin/issues/11273/events", "html_url": "https://github.com/laurent22/joplin/pull/11273", "id": 2616644078, "node_id": "PR_kwDOBLftOs6ABAte", "number": 11273, "title": "All: Resolves #11194 Add functionality to create notes in shared folders", "user": { "login": "Vansh5632", "id": 140490653, "node_id": "U_kgDOCF-3nQ", "avatar_url": "https://avatars.githubusercontent.com/u/140490653?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Vansh5632", "html_url": "https://github.com/Vansh5632", "followers_url": "https://api.github.com/users/Vansh5632/followers", "following_url": "https://api.github.com/users/Vansh5632/following{/other_user}", "gists_url": "https://api.github.com/users/Vansh5632/gists{/gist_id}", "starred_url": "https://api.github.com/users/Vansh5632/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Vansh5632/subscriptions", "organizations_url": "https://api.github.com/users/Vansh5632/orgs", "repos_url": "https://api.github.com/users/Vansh5632/repos", "events_url": "https://api.github.com/users/Vansh5632/events{/privacy}", "received_events_url": "https://api.github.com/users/Vansh5632/received_events", "type": "User", "user_view_type": "public", "site_admin": false }, "labels": [], "state": "closed", "locked": false, "assignee": null, "assignees": [], "milestone": null, "comments": 3, "created_at": "2024-10-27T14:40:37Z", "updated_at": "2024-10-27T21:03:03Z", "closed_at": "2024-10-27T21:02:48Z", "author_association": "NONE", "sub_issues_summary": { "total": 0, "completed": 0, "percent_completed": 0 }, "active_lock_reason": null, "draft": false, "pull_request": { "url": "https://api.github.com/repos/laurent22/joplin/pulls/11273", "html_url": "https://github.com/laurent22/joplin/pull/11273", "diff_url": "https://github.com/laurent22/joplin/pull/11273.diff", "patch_url": "https://github.com/laurent22/joplin/pull/11273.patch", "merged_at": null }, "body": "### Description\r\n\r\nThis commit introduces a new feature that allows users to create notes within shared folders. The following changes have been made:\r\n\r\n- **New Method: `createNoteInSharedFolder`**: This method handles the logic for creating a note in a specified shared folder. It checks if the folder has a `share_id` and sets the `is_shared` flag accordingly:\r\n - If the folder has a `share_id`, the note will inherit this identifier, and `is_shared` will be set to `1`, indicating that the note is shared.\r\n - If the folder does not have a `share_id`, the `is_shared` flag will be set to `0`, marking the note as not shared.\r\n\r\n- **Updated `createNote` Method**: The existing `createNote` method has been modified to support the new functionality. If a `folderId` is provided, it calls `createNoteInSharedFolder` to create the note in the appropriate context. If no `folderId` is given, it falls back to the original note creation logic.\r\n\r\nThese changes enhance the note-taking experience by allowing seamless integration with shared folders, making it easier for users to manage their notes in collaborative environments.\r\n", "closed_by": { "login": "laurent22", "id": 1285584, "node_id": "MDQ6VXNlcjEyODU1ODQ=", "avatar_url": "https://avatars.githubusercontent.com/u/1285584?v=4", "gravatar_id": "", "url": "https://api.github.com/users/laurent22", "html_url": "https://github.com/laurent22", "followers_url": "https://api.github.com/users/laurent22/followers", "following_url": "https://api.github.com/users/laurent22/following{/other_user}", "gists_url": "https://api.github.com/users/laurent22/gists{/gist_id}", "starred_url": "https://api.github.com/users/laurent22/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/laurent22/subscriptions", "organizations_url": "https://api.github.com/users/laurent22/orgs", "repos_url": "https://api.github.com/users/laurent22/repos", "events_url": "https://api.github.com/users/laurent22/events{/privacy}", "received_events_url": "https://api.github.com/users/laurent22/received_events", "type": "User", "user_view_type": "public", "site_admin": false }, "reactions": { "url": "https://api.github.com/repos/laurent22/joplin/issues/11273/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }, "timeline_url": "https://api.github.com/repos/laurent22/joplin/issues/11273/timeline", "performed_via_github_app": null, "state_reason": null }, "comments": [ { "url": "https://api.github.com/repos/laurent22/joplin/issues/comments/2440050467", "html_url": "https://github.com/laurent22/joplin/pull/11273#issuecomment-2440050467", "issue_url": "https://api.github.com/repos/laurent22/joplin/issues/11273", "id": 2440050467, "node_id": "IC_kwDOBLftOs6RcDcj", "user": { "login": "github-actions[bot]", "id": 41898282, "node_id": "MDM6Qm90NDE4OTgyODI=", "avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4", "gravatar_id": "", "url": "https://api.github.com/users/github-actions%5Bbot%5D", "html_url": "https://github.com/apps/github-actions", "followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers", "following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}", "gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}", "starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions", "organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs", "repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos", "events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}", "received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events", "type": "Bot", "user_view_type": "public", "site_admin": false }, "created_at": "2024-10-27T14:40:51Z", "updated_at": "2024-10-27T21:03:03Z", "author_association": "CONTRIBUTOR", "body": "****CLA Assistant Lite bot**** All contributors have signed the CLA ✍️ ✅", "reactions": { "url": "https://api.github.com/repos/laurent22/joplin/issues/comments/2440050467/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }, "performed_via_github_app": { "id": 15368, "client_id": "Iv1.05c79e9ad1f6bdfa", "slug": "github-actions", "node_id": "MDM6QXBwMTUzNjg=", "owner": { "login": "github", "id": 9919, "node_id": "MDEyOk9yZ2FuaXphdGlvbjk5MTk=", "avatar_url": "https://avatars.githubusercontent.com/u/9919?v=4", "gravatar_id": "", "url": "https://api.github.com/users/github", "html_url": "https://github.com/github", "followers_url": "https://api.github.com/users/github/followers", "following_url": "https://api.github.com/users/github/following{/other_user}", "gists_url": "https://api.github.com/users/github/gists{/gist_id}", "starred_url": "https://api.github.com/users/github/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/github/subscriptions", "organizations_url": "https://api.github.com/users/github/orgs", "repos_url": "https://api.github.com/users/github/repos", "events_url": "https://api.github.com/users/github/events{/privacy}", "received_events_url": "https://api.github.com/users/github/received_events", "type": "Organization", "user_view_type": "public", "site_admin": false }, "name": "GitHub Actions", "description": "Automate your workflow from idea to production", "external_url": "https://help.github.com/en/actions", "html_url": "https://github.com/apps/github-actions", "created_at": "2018-07-30T09:30:17Z", "updated_at": "2025-03-07T16:35:00Z", "permissions": { "actions": "write", "administration": "read", "attestations": "write", "checks": "write", "contents": "write", "deployments": "write", "discussions": "write", "issues": "write", "merge_queues": "write", "metadata": "read", "models": "read", "packages": "write", "pages": "write", "pull_requests": "write", "repository_hooks": "write", "repository_projects": "write", "security_events": "write", "statuses": "write", "vulnerability_alerts": "read" }, "events": [ "branch_protection_rule", "check_run", "check_suite", "create", "delete", "deployment", "deployment_status", "discussion", "discussion_comment", "fork", "gollum", "issues", "issue_comment", "label", "merge_group", "milestone", "page_build", "project", "project_card", "project_column", "public", "pull_request", "pull_request_review", "pull_request_review_comment", "push", "registry_package", "release", "repository", "repository_dispatch", "status", "watch", "workflow_dispatch", "workflow_run" ] } }, { "url": "https://api.github.com/repos/laurent22/joplin/issues/comments/2440077106", "html_url": "https://github.com/laurent22/joplin/pull/11273#issuecomment-2440077106", "issue_url": "https://api.github.com/repos/laurent22/joplin/issues/11273", "id": 2440077106, "node_id": "IC_kwDOBLftOs6RcJ8y", "user": { "login": "Vansh5632", "id": 140490653, "node_id": "U_kgDOCF-3nQ", "avatar_url": "https://avatars.githubusercontent.com/u/140490653?v=4", "gravatar_id": "", "url": "https://api.github.com/users/Vansh5632", "html_url": "https://github.com/Vansh5632", "followers_url": "https://api.github.com/users/Vansh5632/followers", "following_url": "https://api.github.com/users/Vansh5632/following{/other_user}", "gists_url": "https://api.github.com/users/Vansh5632/gists{/gist_id}", "starred_url": "https://api.github.com/users/Vansh5632/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/Vansh5632/subscriptions", "organizations_url": "https://api.github.com/users/Vansh5632/orgs", "repos_url": "https://api.github.com/users/Vansh5632/repos", "events_url": "https://api.github.com/users/Vansh5632/events{/privacy}", "received_events_url": "https://api.github.com/users/Vansh5632/received_events", "type": "User", "user_view_type": "public", "site_admin": false }, "created_at": "2024-10-27T15:59:00Z", "updated_at": "2024-10-27T15:59:00Z", "author_association": "NONE", "body": "I have read the CLA Document and I hereby sign the CLA\r\n", "reactions": { "url": "https://api.github.com/repos/laurent22/joplin/issues/comments/2440077106/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }, "performed_via_github_app": null }, { "url": "https://api.github.com/repos/laurent22/joplin/issues/comments/2440173976", "html_url": "https://github.com/laurent22/joplin/pull/11273#issuecomment-2440173976", "issue_url": "https://api.github.com/repos/laurent22/joplin/issues/11273", "id": 2440173976, "node_id": "IC_kwDOBLftOs6RchmY", "user": { "login": "laurent22", "id": 1285584, "node_id": "MDQ6VXNlcjEyODU1ODQ=", "avatar_url": "https://avatars.githubusercontent.com/u/1285584?v=4", "gravatar_id": "", "url": "https://api.github.com/users/laurent22", "html_url": "https://github.com/laurent22", "followers_url": "https://api.github.com/users/laurent22/followers", "following_url": "https://api.github.com/users/laurent22/following{/other_user}", "gists_url": "https://api.github.com/users/laurent22/gists{/gist_id}", "starred_url": "https://api.github.com/users/laurent22/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/laurent22/subscriptions", "organizations_url": "https://api.github.com/users/laurent22/orgs", "repos_url": "https://api.github.com/users/laurent22/repos", "events_url": "https://api.github.com/users/laurent22/events{/privacy}", "received_events_url": "https://api.github.com/users/laurent22/received_events", "type": "User", "user_view_type": "public", "site_admin": false }, "created_at": "2024-10-27T21:02:48Z", "updated_at": "2024-10-27T21:02:48Z", "author_association": "OWNER", "body": "Sorry I have no idea what this is", "reactions": { "url": "https://api.github.com/repos/laurent22/joplin/issues/comments/2440173976/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }, "performed_via_github_app": null } ] }