-
Notifications
You must be signed in to change notification settings - Fork 0
Change request revision rounds #154
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
Merged
Merged
Changes from all commits
Commits
Show all changes
167 commits
Select commit
Hold shift + click to select a range
7e6db8e
editor: implement fork-on-edit workflow for article editing
pedrogaudencio fa785a6
editor: prevent editing fork when user owns repo for same subject
pedrogaudencio 49e1cf3
editor: remove unused form parameter from handleForkAndEdit
pedrogaudencio bd3ef94
editor: fix getUniqueRepositoryName bugs and optimize
pedrogaudencio ba5bb2a
fork: parallelize permission queries
pedrogaudencio 8b5c32d
fork: add ErrUserOwnsSubjectRepo error type
pedrogaudencio a64a811
editor: consolidate fork-on-edit permission logic
pedrogaudencio 420c618
templates: update article editing logic
pedrogaudencio 1f5ef1d
migrations: add composite indexes for fork-on-edit optimization
pedrogaudencio ecac092
editor: improve fork-on-edit error messages in templates
pedrogaudencio ca4a41a
i18n: replace hardcoded strings with translation variables in article…
pedrogaudencio 76e4fa3
Merge branch 'master' into change-request-fork-article
pedrogaudencio 35c540a
templates: add translation keys and simplify logic
pedrogaudencio b760e1a
article: add confirmation modal to fork article button
pedrogaudencio 77adece
article: add tooltip to Fork button
pedrogaudencio 0ea2562
Merge branch 'master' into change-request-fork-article
pedrogaudencio d0438c4
tests: add e2e tests for fork article
pedrogaudencio 7c688f1
tests: add fork-on-edit permission e2e tests
pedrogaudencio 246e58f
tests: add edge case and accessibility tests for fork article modal
pedrogaudencio 352d5a5
editor: fix fork-and-edit workflow for non-owners
pedrogaudencio 28828f9
tests: fork-and-edit workflow
pedrogaudencio f1162b0
tests: add database migration tests for v326 and v327
pedrogaudencio 4b1b055
api: add tests for fork with subject conflict and fix error handling …
pedrogaudencio 9f8de0d
permissions: restrict fork_and_edit bypass to _edit and _new actions …
pedrogaudencio e699e2b
tests: add fork-on-edit permission tests
pedrogaudencio f0efd14
fork: replace type assertion with wrapped error support
pedrogaudencio 90a12c6
templates: document fallback logic
pedrogaudencio fc3ee6c
repo: return errors from GetForkedRepo
pedrogaudencio 2d929e2
linting: fix issues
pedrogaudencio 3cc6c00
tests: use slices instead of forloop
pedrogaudencio a6a3609
tests: fix ESLint and TypeScript errors
pedrogaudencio 1bcad13
tests: fix toastui-editor selector
pedrogaudencio 482f29f
fork-on-edit: address code review findings
pedrogaudencio 683b99c
editor: implement submit-change-request for article contributions
pedrogaudencio eb94795
permission: allow submit_change_request to bypass branch write check
pedrogaudencio 56fc001
editor: fix log message format
pedrogaudencio 5930277
editor: validate repository allows pull requests
pedrogaudencio f7cde0d
editor: add content validation
pedrogaudencio 195e8aa
tests: update fork-article-modal tests to use new button ID
pedrogaudencio a2771ee
tests: add submit-change-request workflow tests
pedrogaudencio 640bd80
Merge branch 'master' into change-request-submit-edits
pedrogaudencio 31fd907
editor: add InternalPush option for submit-change-request workflow
pedrogaudencio 616e3f4
tests: fix E2E tests for submit-change-request
pedrogaudencio 9717367
tests: fix linting in submit-change-request
pedrogaudencio f72d390
pull: restrict merge operations to repository owners only
pedrogaudencio 8252c48
pull: enforce squash-only merge strategy
pedrogaudencio 2d56114
editor: add custom title and description for Change Request
pedrogaudencio dccb1fe
editor: add modal UI for Change Request title and description
pedrogaudencio cebf2ec
tests: suppress linting warnings in submit-change-request
pedrogaudencio 1f4cd60
fix: use distinct button IDs and correct E2E test selectors
pieer 1147017
fix: use translation key for content required error message
pieer d41cbc9
fix: add explicit authentication check in handleSubmitChangeRequest
pieer 3f4f7af
fix: validate mutually exclusive fork_and_edit and submit_change_requ…
pieer 7cfaf6f
docs: fix integration test comment about middleware behavior
pieer 690af3c
tests: fix selector for Submit Change Request button
pedrogaudencio 72295a1
Merge branch 'master' into change-request-submit-edits
pedrogaudencio 533bc9a
editor: validate empty content in submit change request
pedrogaudencio fde90ed
editor: add CR title length validation
pedrogaudencio c26bb85
editor: cleanup orphaned branch on CR creation failure
pedrogaudencio fc38846
tests: branch cleanup on CR failure
pedrogaudencio 61f6a29
tests: whitespace-only content rejection
pedrogaudencio 96b75b1
linting: fix issues
pedrogaudencio 0c35e5e
Remove side bar from the pull request
pieer 03ffb69
Merge remote-tracking branch 'origin/change-request-submit-edits' int…
pieer 5d53117
tests: add concurrent branch collision test for submit-change-request
pedrogaudencio a692d1b
linting: fix issues
pedrogaudencio 44ac07c
Fix linting
pieer 5268250
Merge remote-tracking branch 'origin/change-request-submit-edits' int…
pieer 6774a47
Merge branch 'master' into change-request-submit-edits
pedrogaudencio 6d4c620
actions: fix empty Ref warning for workflow_run events
pedrogaudencio efccbc0
templates: move issue view changes to custom overrides
pedrogaudencio ff9507e
routers: fix nil pointer dereference
pedrogaudencio 768f3a6
tests: fix submit-change-request concurrent test assumptions
pedrogaudencio fb9a746
pull: allow non-collaborator CR creation for submit-change-request wo…
pedrogaudencio 783a860
editor: fix submit-change-request creating PRs in wrong repository
pedrogaudencio e840bd1
locale: update change request copy
pedrogaudencio 6587c67
editor: fix orphaned branches when OpenRepository or GetCompareInfo f…
pedrogaudencio 206c8d1
editor: fix UTF-8 corruption in PR title truncation
pedrogaudencio d8b3989
fork-on-edit: allow change requests from users with existing forks
pedrogaudencio 45d5579
editor: add permission validation for submit change request
pedrogaudencio 72a7e0b
locale: standardize key
pedrogaudencio a4c076e
templates: use conditionally show submit button
pedrogaudencio 3a15324
tests: add unit and integration tests for fork-on-edit permissions
pedrogaudencio 8b5f8a5
Merge branch 'master' into change-request-submit-edits
pedrogaudencio 4106871
editor: fix PushOutOfDate error
pedrogaudencio 40f7757
locale: fix typos
pedrogaudencio 6e7f1dc
editor: remove redundant cleanup
pedrogaudencio c008863
tests: fix hardcoded PR index
pedrogaudencio 993c789
editor: extract duplicate branch cleanup logic to helper function
pedrogaudencio 97a7013
editor: add specific error message for mutually exclusive workflow flags
pedrogaudencio 0074378
editor: add PR description length limit for change requests
pedrogaudencio 9bd5481
Merge branch 'change-request-submit-edits' into change-request-if-for…
pedrogaudencio a51b362
Merge branch 'master' into change-request-if-fork-owner
taoeffect c7e7815
Update tooltip color and message
pieer 743b0b4
Update message after fork
pieer 8409ea3
Merge branch 'master' into update-fork-design
pieer d0bf97a
Fix table ui
pieer 890449c
Change WYSIWYG
pieer 5f26b57
Update owner review header
pieer 4417843
Update button style
pieer 84c3ca8
Update copy and design
pieer 84b6edc
Style split view
pieer 7e5f2cf
Update Submit review into popup box
pieer 0533e20
Customize combo-markdown-editor
pieer 8c0c118
routers: fix comment form action url and add missing article-namespac…
pedrogaudencio 9324b9c
routers: remove redundant middleware
pedrogaudencio 15a3486
Update PR comment form buttons and styling
pieer d9d97a0
Merge origin/master
pieer 8d66f14
Fix overlay on the popup when a comment box is open the markdown editor
pieer bb52a20
Merge remote-tracking branch 'origin/change-request-fix-comments' int…
pieer 8f5b4f0
Merge remote-tracking branch 'origin/master' into update-fork-design
pieer 56ac1b1
attempt to fix the failing tests
pieer b81d369
feat: Localize the pull request review modal and diff headers, and re…
pieer d3b7f21
refactor: rename new_review.tmpl to review_submit.tmpl
pieer 041e0b2
refactor: Introduce and apply CSS variables for standardized color an…
pieer bef9328
Fix test
pieer 3567206
Fix split view
pieer 5949316
repo: fix missing middleware
pedrogaudencio 1f5f6a6
routers: add register pull request helper
pedrogaudencio 1d0ce30
templates: fix review button condition
pedrogaudencio c8fd1ff
repo: add type assertion fix
pedrogaudencio 7b8e4f8
Merge branch 'master' into change-request-fix-diff-comments
pedrogaudencio d2e8b00
repo: add edit tab on request changes
pedrogaudencio 53d5ce7
repo: add submit edit in change request
pedrogaudencio 9086cd9
pull: sync branches to db before editing Change Request files
pedrogaudencio 4c338fa
pull: emit push comment after commit
pedrogaudencio 469e0dc
pull: gate Files tab edit button on active rejection, not write permi…
pedrogaudencio 6e36513
pull: fix edit tab order and copy
pedrogaudencio 65b4868
pull: fix stale refs/pull/N/head after SubmitPullEditPost
pedrogaudencio ac9b32e
Fix PR review feedback: navbar pill active state and review button au…
pieer 88d1e54
Fix test: render review button for all PR file views
pieer 74d546b
fix: add missing data-fork-confirm-body2 attribute in article template
pieer 6386b89
fix: remove unused review title field from review modal
pieer 2baef0f
cleanup: remove commented-out CSS and orphaned media query
pieer 207b399
fix: replace inline onclick handlers with event listeners
pieer 872ae5e
fix: add Escape key handler for review modal (accessibility)
pieer 9bf3d0d
i18n: replace hardcoded English strings with locale lookups
pieer b714f3b
fix: prevent mobile redirect loop on PR files page
pieer 23d4c1d
Merge remote-tracking branch 'origin/master' into update-fork-design
pieer 464f8f5
Merge branch 'update-fork-design' into change-request-fix-diff-comments
pedrogaudencio 66e7836
Merge branch 'change-request-fix-diff-comments' into change-request-r…
pedrogaudencio 98ca723
Merge branch 'master' into change-request-revision-rounds
pedrogaudencio 1065759
routers: add RepoMustNotBeArchived to PR edit POST route
pedrogaudencio aabeade
routers: add CommitID check to SubmitPullEditPost
pedrogaudencio 9a5038e
routers: add user feedback for post-edit failures
pedrogaudencio c484cf7
templates: remove unused data attributes from PR edit template
pedrogaudencio 73d2cb1
routers: add empty content validation to PR edit handler
pedrogaudencio 0dec4fc
pulls: set NumCommits=0 in ViewPullEdit to fix <nil> pill
pedrogaudencio 97207e0
routers: extract preparePullEditTabVisibility, fix missing Edit tab o…
pedrogaudencio fdb6166
repo: populate PR header context in ViewPullEdit
pedrogaudencio 232834e
repo: gate ViewPullEdit on CommitID like SubmitPullEditPost
pedrogaudencio 35b3126
repo: fix tree_path traversal in SubmitPullEditPost
pedrogaudencio b26791b
pulls: hide Edit tab for stale request-changes reviews
pedrogaudencio 3f7bdf9
pull: fail SubmitPullEditPost on PushToBaseRepo error
pedrogaudencio 6fe2cf8
pull: add comment explaining push flow
pedrogaudencio 7754149
pull: make PushToBaseRepo failure a non-fatal flash warning
pedrogaudencio 12b679e
routers: trim whitespace from commit_summary before checking if empty
pedrogaudencio 44a4f76
routers: improve error handling in SubmitPullEditPost for user-facing…
pedrogaudencio 3e66926
routers: only fall back to README.md on not-exist errors in pull edit…
pedrogaudencio 71d7bd2
Merge branch 'master' into change-request-revision-rounds
pedrogaudencio 546280d
tests: fix TestSubmitChangeRequestWhitespaceOnlyCommitSummary using w…
pedrogaudencio 39f2e46
editor: localize submit-change-request commit message
pedrogaudencio 59464da
tests: add missing commit_choice field in TestSubmitPullEditPostStale…
pedrogaudencio 786572c
tests: use API endpoint for concurrent edit in TestSubmitPullEditPost…
pedrogaudencio d0bc245
tests: fix tests
pedrogaudencio 91bec56
editor: sync branch to DB after InternalPush in submit-change-request
pedrogaudencio 3ceed35
editor: hard-delete orphaned branch DB record on cleanup
pedrogaudencio File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| {{template "base/head" .}} | ||
| <div role="main" aria-label="{{.Title}}" class="page-content repository view issue pull"> | ||
| {{template "repo/header" .}} | ||
| <div class="ui container"> | ||
| {{template "repo/issue/view_title" .}} | ||
| {{template "repo/pulls/tab_menu" .}} | ||
| <div class="ui bottom attached"> | ||
| <form class="ui edit form" id="article-edit-form" method="post" action="{{.Issue.Link}}/edit"> | ||
| {{.CsrfTokenHtml}} | ||
| <input type="hidden" name="last_commit" value="{{.LastCommitID}}"> | ||
| <input type="hidden" name="tree_path" value="{{.ReadmeTreePath}}"> | ||
| <input type="hidden" name="commit_choice" value="direct"> | ||
|
|
||
| <div class="field"> | ||
| <div class="tw-p-0"> | ||
| <textarea id="edit_area" name="content" class="tw-hidden" data-id="repo-{{.Repository.Name}}-{{.ReadmeTreePath}}">{{.FileContent}}</textarea> | ||
| <div class="editor-loading is-loading"></div> | ||
| <div id="toast-editor-container" style="min-height: 500px;"></div> | ||
| </div> | ||
| </div> | ||
|
|
||
| {{/* Commit form */}} | ||
| <div class="tw-mt-4 tw-p-4" style="border-top: 1px solid var(--color-secondary);"> | ||
| <div class="ui form"> | ||
| <div class="field"> | ||
| <label for="commit_summary">{{ctx.Locale.Tr "repo.diff.review.add_title"}}</label> | ||
| <input type="text" id="commit_summary" name="commit_summary" maxlength="100"> | ||
| </div> | ||
| <div class="field"> | ||
| <label for="review_comment">{{ctx.Locale.Tr "repo.diff.review.summary"}}</label> | ||
| <textarea id="review_comment" name="review_comment" rows="4" placeholder="{{ctx.Locale.Tr "repo.diff.review.placeholder"}}"></textarea> | ||
| </div> | ||
| <div class="tw-mt-4 tw-flex tw-justify-end tw-gap-2"> | ||
| <a class="ui button" href="{{.Issue.Link}}"> | ||
| {{svg "octicon-x" 16 "tw-mr-1"}} | ||
| {{ctx.Locale.Tr "cancel"}} | ||
| </a> | ||
| <button type="button" class="ui primary button" id="submit-changes-button"> | ||
| {{svg "octicon-check" 16 "tw-mr-1"}} | ||
| {{ctx.Locale.Tr "repo.editor.submit_changes"}} | ||
| </button> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </form> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| {{template "base/footer" .}} | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.