Commit Graph

5922 Commits (c082c3bce35d6d5d829a1e516b9bbf45b6d49bdc)
 

Author SHA1 Message Date
David Schneiderbauer 4eed85db56 add @daviian as maintainer ()
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
Ethan Koenig a1ed239bf2 Fix fmt errors ()
Lauris BH 23645fe05f Sort repository tree entries in natural way ()
* Sort repository tree entries in natural way

* Fix sort for different length strings with first parts equal

* Improve test case

* Refactor return statements

* Update gitea/git dependency
Ethan Koenig 4cb9394a97 Fix lint errors ()
Jorge Maldonado Ventura d155d0e665 Make basic functionality work without JavaScript ()
Jonas Franz 566e8ecce0 Fork permission bug fixes ()
* Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125)

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Checking if Code unit is enabled before creating a fork.

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Adding a discrete function for RepoIDAssignment

Signed-off-by: Jonas Franz <info@jonasfranz.software>

* Improved Documentation
Ethan Koenig 6c6533fb31 Make integration tests more user-friendly ()
Ethan Koenig b0f7457d9e Improve issue search ()
* Improve issue indexer

* Fix new issue sqlite bug

* Different test indexer paths for each db

* Add integration indexer paths to make clean
Lunny Xiao 52e11b24bf Restructure markup & markdown to prepare for multiple markup language… ()
* restructure markup & markdown to prepare for multiple markup languages support

* adjust some functions between markdown and markup

* fix tests

* improve the comments
Ethan Koenig 911ca02153 Convert spaces to tabs in footer.tmpl ()
David Schneiderbauer d766d0c4e0 Prevent sending emails and notifications to inactive users ()
* Filter inactive users before sending emails or creating browser notifications

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* fix formatting issues

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* included requested changes

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>

* optimized database queries

* rebasing new master and add tablenames for clarification in xorm queries

* remove escaped quotationmarks using backticks

Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
Ethan Koenig b496e3e1cc Fix unit test race condition ()
Thomas Boerger cbe50587ba Added bucket name to s3 drone plugin ()
bradder555 ad24a3134d Fixes 500 error on dashboard when using MSSQL ()
MSSQL rejects the query:
  SELECT "repository"."id" FROM "repository"
  INNER JOIN "team_repo" ON "team_repo".repo_id="repository".id AND
  "repository".is_mirror=1
  WHERE (
    ("repository".owner_id=2 AND "repository".is_private=0)
        OR team_repo.team_id IN (1)
        )
        GROUP BY "repository".id ORDER BY updated_unix DESC

when the order by term (updated_unix) is not included in the group by
term.
Lunny Xiao 0f9e20b3d7 fix updated update on public key ()
* fix updated update on public key

* update vendor.json

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* fix root path

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Rémy Boulanouar e5d80b7090 Implementation of all repositories of a user from user->settings ()
* Implementation of all repositories of a user from user->settings

* Update message when no repository found

* Update according to comments

* Change UI to have a better look

* improved user repositories UI
Lunny Xiao 1739e84ac0 improve protected branch to add whitelist support ()
* improve protected branch to add whitelist support

* fix lint

* fix style check

* fix tests

* fix description on UI and import

* fix test

* bug fixed

* fix tests and languages

* move isSliceInt64Eq to util pkg; improve function names & typo
Rémy Boulanouar be3319b3d5 Display commit status on landing page of repo ()
* Display commit status on landing page of repo

* improve last status of commits and add link to ci

* fix last commit status since the order of ids are desc
David Schneiderbauer a89692d158 fix wrong rendering of commit detail page ()
Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
Jonas Franz 633de01cf7 Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125) ()
Signed-off-by: Jonas Franz <info@jonasfranz.software>
Morlinest 35b473d8d3 Remove repository mirrors from "collaborative" list ()
Bo-Yi Wu 3e89e89670 add codecov.io service. ()
* add codecov.io service.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* update

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* only PR or master branch (for coverage badge)

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* update

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>

* update init

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Lunny Xiao 9ef83a98e5 fix release ()
Jon Davies fb1ed5de94 Dockerfile: Updated alpine image to 3.6. ()
Signed-off-by: Jonathan Davies <jpds@protonmail.com>
Lauris BH 377cd1ae38 Allow changing integration test database connection using env variables ()
Lunny Xiao 005900baea Use created & updated instead BeforeInsert & BeforeUpdate ()
* use created & updated instead BeforeInsert & BeforeUpdate

* fix vendor checksum

* only show generated SQL when development mode

* remove extra update column updated_unix

* remove trace config
Lauris BH 4c2b1be3a4 Basic VSCode configuration for building and debugging ()
* Basic VSCode configuration for building and debugging

* Fix building and debugging in Windows

* Move to contrib folder and add instructions
Lauris BH 8c3a2e817b Add missing fixture to clean gpg_key table ()
* Add missing fixture to clean gpg_key table

* Fix possible too fast request execution in timetracker start/stop test
techknowlogick 9bdbfbf6f3 Disable custom Git Hooks globally via configuration file ()
* Create option to disable githooks globally via configuration file

* Update comment in app.ini to align with @ethantkoenig's suggestion

Signed-off-by: Matti Ranta <matti@mdranta.net>
Jonas Östanbäck 3fecf94086 Open external wiki in new window ()
Jonas Franz 5ccecb44ad Feature: Timetracking ()
* Added comment's hashtag to url for mail notifications.
* Added explanation to return statement + documentation.
* Replacing in-line link generation with HTMLURL. (+gofmt)
* Replaced action-based model with nil-based model. (+gofmt)
* Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants.
* Updating comment for mailIssueCommentToParticipants
* Added link to comment in "Dashboard"
* Deleting feed entry if a comment is going to be deleted
* Added migration
* Added improved migration to add a CommentID column to action.
* Added improved links to comments in feed entries.
* Fixes  by filtering for deleted comments that are referenced in actions.
* Introducing "IsDeleted" column to action.
* Adding design draft (not functional)
* Adding database models for stopwatches and trackedtimes
* See 
* Adding design draft (not functional)
* Adding translations and improving design
* Implementing stopwatch (for timetracking)
* Make UI functional
* Add hints in timeline for time tracking events
* Implementing timetracking feature
* Adding "Add time manual" option
* Improved stopwatch
* Created report of total spent time by user
* Only showing total time spent if theire is something to show.
* Adding license headers.
* Improved error handling for "Add Time Manual"
* Adding @sapks 's changes, refactoring
* Adding API for feature tracking
* Adding unit test
* Adding DISABLE/ENABLE option to Repository settings page
* Improving translations
* Applying @sapk 's changes
* Removing repo_unit and using IssuesSetting for disabling/enabling timetracker
* Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu
* Improving documentation
* Fixing vendor/ folder
* Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks )
* Restricting write access to timetracking based on the repo settings (Proposed by @lafriks )
* Fixed minor permissions bug.
* Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo
* Allow assignees and authors to track there time too.
* Fixed some build-time-errors + logical errors.
* Removing unused Get...ByID functions
* Moving IsTimetrackerEnabled from context.Repository to models.Repository
* Adding a seperate file for issue related repo functions
* Adding license headers
* Fixed GetUserByParams return 404
* Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons
* Adding /repos/:username/times to get all tracked times of the repo
* Updating sdk-dependency
* Updating swagger.v1.json
* Adding warning if user has already a running stopwatch (auto-timetracker)
* Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions)
* Changing code.gitea.io/sdk back to code.gitea.io/sdk
* Correcting spelling mistake
* Updating vendor.json
* Changing GET stopwatch/toggle to POST stopwatch/toggle
* Changing GET stopwatch/cancel to POST stopwatch/cancel
* Added migration for stopwatches/timetracking
* Fixed some access bugs for read-only users
* Added default allow only contributors to track time value to config
* Fixed migration by chaging x.Iterate to x.Find
* Resorted imports
* Moved Add Time Manually form to repo_form.go
* Removed "Seconds" field from Add Time Manually
* Resorted imports
* Improved permission checking
* Fixed some bugs
* Added integration test
* gofmt
* Adding integration test by @lafriks
* Added created_unix to comment fixtures
* Using last event instead of a fixed event
* Adding another integration test by @lafriks
* Fixing bug Timetracker enabled causing error 500 at sidebar.tpl
* Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning.
* Returning TrackedTime instead of AddTimeOption at AddTime.
* Updating SDK from 
* Resetting Go-SDK back to default repository
* Fixing test-vendor by changing ini back to original repository
* Adding "tags" to swagger spec
* govendor sync
* Removed duplicate
* Formatting templates
* Adding IsTimetrackingEnabled checks to API
* Improving translations / english texts
* Improving documentation
* Updating swagger spec
* Fixing integration test caused be translation-changes
* Removed encoding issues in local_en-US.ini.
* "Added" copyright line
* Moved unit.IssuesConfig().EnableTimetracker into a != nil check
* Removed some other encoding issues in local_en-US.ini
* Improved javascript by checking if data-context exists
* Replaced manual comment creation with CreateComment
* Removed unnecessary code
* Improved error checking
* Small cosmetic changes
* Replaced int>string>duration parsing with int>duration parsing
* Fixed encoding issues
* Removed unused imports

Signed-off-by: Jonas Franz <info@jonasfranz.software>
Antoine GIRARD 69dfe43ffc Fix some tests : make coverage -> test ()
* Fix test : make coverage -> test

* Refactor integration tests to be able to run them in parallel

* Add custom local repository temp path
Jonas Östanbäck eab4579e17 Fix fmt error in mailer ()
Jonas Östanbäck 01d7189c2d Fix slice out of bounds error in mailer ()
Albert 250f1236dc * Fix fileview rendering bug ()
Thomas Boerger fd85e25f5f Hotfix for integration testing ()
* Hotfix for integration testing

* Comment sqlite tests because of database locking issues
Thomas Boerger 4b8fef143e Changes for latest DroneCI ()
Lunny Xiao 95c408ffa5 hide branch on pull request view or create UI ()
Antoine GIRARD 4f9a28e1f5 Make repo private to no interfere with other tests ()
Antoine GIRARD 7c417bbb0d Only check at least one email gpg key ()
* Only require one email (possibly not yet validated)

* Update message error and check validation of commit

* Add integrations tests

* Complete integration for import

* Add pre-check/optimization

* Add some test (not finished)

* Finish

* Fix fixtures

* Fix typo

* Don't guess key ID
Lunny Xiao 5f4210a9b0 add release notes of v1.1.4 ()
Lauris BH a569d3dedc Fix migration from pre-v15 to 1.2.0 ()
Lunny Xiao 32238e0ac9 Add changelog config file for generate changelog ()
Lunny Xiao caa61a2b99
bug fixed
Ethan Koenig b689bb6180 Webhooks for repo creation/deletion ()
* Webhooks for repo creation/deletion

* add createHookTask

* Add handles for GetSlackPayload and GetDiscordPayload
Sandro Santilli 79f7839633 Wrap most text to 80 columns ()
Lunny Xiao 04ec79579c fix orgnization webhooks ()
* fix org webhooks

* remove trace code
Lunny Xiao 5de94a67cf some refactors for issue and comments ()
Sandro Santilli edc817a1dc Wrap most paragraphs to 80 columns ()
Reduces patches size and makes them more readable
Lunny Xiao 3e6fed368b fix webhook test ()
* fix webhook test

* fix error message

* fix typo