* refuse merge until ci successfully
* deny merge request when required status checkes not succeed on merge Post and API
* add database migration for added columns on protected_branch
* fix migration
* fix protected branch check bug
* fix protected branch settings
* remove duplicated code on check pull request's required commit statuses pass
* remove unused codes
* fix migration
* add newline for template file
* fix go mod
* rename function name and some other fixes
* fix template
* fix bug pull view
* remove go1.12 wrong dependencies
* add administrator bypass when protected branch status check enabled
* fix bug
* improve the codes
* Adds side-by-side diff for images
Signed-off-by: Mario Lubenka <[email protected]>
* Explain blank imports
Signed-off-by: Mario Lubenka <[email protected]>
* Use complete word for width and height labels on image compare
Signed-off-by: Mario Lubenka <[email protected]>
* Update index.css from master
Signed-off-by: Mario Lubenka <[email protected]>
* Moves ImageInfo to git commit file
Signed-off-by: Mario Lubenka <[email protected]>
* Assign ImageInfo function for template and sets correct target for BeforeSourcePath
Signed-off-by: Mario Lubenka <[email protected]>
* Adds missing comment
Signed-off-by: Mario Lubenka <[email protected]>
* Return error if ImageInfo failed
Signed-off-by: Mario Lubenka <[email protected]>
* Avoid template panic when ImageInfo failed for some reason
Signed-off-by: Mario Lubenka <[email protected]>
* Show file size on image diff
Signed-off-by: Mario Lubenka <[email protected]>
* Removes unused helper function
Signed-off-by: Mario Lubenka <[email protected]>
* Reverts copyright year change
Signed-off-by: Mario Lubenka <[email protected]>
* Close file reader
Signed-off-by: Mario Lubenka <[email protected]>
* Update commit.go
Sets correct data key
* Moves reader.Close() up a few lines
* Updates index.css
* Updates CSS file
Signed-off-by: Mario Lubenka <[email protected]>
* Transfers adjustments for image compare to compare.go file
Signed-off-by: Mario Lubenka <[email protected]>
* Adjusts variable name
Signed-off-by: Mario Lubenka <[email protected]>
* Apply lesshint recommendations
Signed-off-by: Mario Lubenka <[email protected]>
* Do not show old image on image compare if it is not in index of base commit
Signed-off-by: Mario Lubenka <[email protected]>
* Change file size text
Signed-off-by: Mario Lubenka <[email protected]>
* Add Backend Logic for Toggling Email Notification
This commit adds the backend logic for
allowing users to enable or disable email
notifications. The implementation ensures
that only issue notification emails get disabled
and important emails are still sent regardless
of the setting.
The UI to toggle this setting has not yet been
implemented.
* Add UI and complete user email notification enable
This commit completes the functionality to allow
users to disable their own email notifications.
Signed-off-by: Gary Kim <[email protected]>
* Add Third Option for Only Email on Mention
Signed-off-by: Gary Kim <[email protected]>
* Readd NOT NULL to new preference string
Signed-off-by: Gary Kim <[email protected]>
* Add Tests and Rewrite Comment
Signed-off-by: Gary Kim <[email protected]>
* Allow admin to set default email frequency
Signed-off-by: Gary Kim <[email protected]>
* Add new config option to docs
Signed-off-by: Gary Kim <[email protected]>
* Fix a few mistakes
Signed-off-by: Gary Kim <[email protected]>
* Only update required columns
Signed-off-by: Gary Kim <[email protected]>
* Simplify an error check
Signed-off-by: Gary Kim <[email protected]>
* Make email_notification_preference column in DB be VARCHAR(20)
Signed-off-by: Gary Kim <[email protected]>
* Handle errors
Signed-off-by: Gary Kim <[email protected]>
* Update models/migrations/v93.go
Co-Authored-By: Lauris BH <[email protected]>
* add download-button info message
* add overflow-visible css for table colum class
* right colum is always there
* add download button for default branch
* add download button for all other branchs
* resize table colum so two buttons fit in
* code indent avter rebase
* show commit divergence corect
https://github.com/go-gitea/gitea/issues/7625
* changes because of merge master into ...
* optimize if statement for protected branches
* dont downloat a deleted branch - fix error 404