-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Notes 100 - Comment Edit #1196
base: main
Are you sure you want to change the base?
Notes 100 - Comment Edit #1196
Conversation
✅ Deploy Preview for bldrs-share ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
✅ Deploy Preview for bldrs-share-v2 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Blocked by PR #1167 Unblocked on Friday 05.30 |
09db10b
to
702c200
Compare
Signed-off-by: OlegMoshkovich <oleg.mosh@gmail.com>
…b.com/OlegMoshkovich/Share into Notes-100--Comment-Edit-bldrs-ai#1186
/** Update issue on GH, set read-only */ | ||
async function submitUpdate() { | ||
async function updateIssueGithub() { | ||
const res = await updateIssue(repository, noteNumber, title, editBody, accessToken) | ||
const editedNote = notes.find((note) => note.id === id) | ||
editedNote.body = res.data.body |
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.
Fix this? #1201
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.
this code is related to the issues, i will do it in a separate PR.
Will keep this PR on comments
src/Components/Notes/NoteCard.jsx
Outdated
* @param {number} commentId | ||
*/ | ||
async function updateCommentGithub(commentId) { | ||
const updatedComment = await updateComment(repository, commentId, editBody, accessToken) |
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.
Fix this? #1201
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.
yes WIP
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.
This is a bit more involved.
It was captured in a separate ticket, so I will take care of it in s separate PR.
#1186
percy