1. 24 Apr, 2020 1 commit
  2. 22 Apr, 2020 1 commit
    • zeripath's avatar
      Add option to increase provided OAuth2 token maximum size (#11180) · e74c4e1b
      zeripath authored
      
      Some OAuth2 providers return quite large structured tokens >32767 bytes.
      Gitea currently has a fixed maximum of 32767 bytes for these and
      unfortunately due to the convoluted nature of the dependent libraries the
      error returned is rather opaque.
      
      Here we manage the error a little better - detecting the rather opaque
      github.com/gorilla/securecookie.errEncodedValueTooLong and converting
      it to a more readable error.
      
      Further we provide a configurable option to increase the maximum size of
      the provided OAuth2 tokens.
      
      Fix #9907
      Signed-off-by: default avatarAndrew Thornton <art27@cantab.net>
      Co-authored-by: default avatartechknowlogick <techknowlogick@gitea.io>
      e74c4e1b
  3. 21 Apr, 2020 1 commit
  4. 15 Apr, 2020 1 commit
  5. 28 Mar, 2020 1 commit
  6. 09 Mar, 2020 1 commit
  7. 08 Mar, 2020 1 commit
  8. 28 Feb, 2020 1 commit
  9. 20 Feb, 2020 1 commit
  10. 18 Feb, 2020 1 commit
  11. 13 Feb, 2020 1 commit
  12. 02 Feb, 2020 1 commit
    • zeripath's avatar
      Add Unique Queue infrastructure and move TestPullRequests to this (#9856) · 2c903383
      zeripath authored
      * Upgrade levelqueue to version 0.2.0
      
      This adds functionality for Unique Queues
      
      * Add UniqueQueue interface and functions to create them
      
      * Add UniqueQueue implementations
      
      * Move TestPullRequests over to use UniqueQueue
      
      * Reduce code duplication
      
      * Add bytefifos
      
      * Ensure invalid types are logged
      
      * Fix close race in PersistableChannelQueue Shutdown
      2c903383
  13. 01 Feb, 2020 1 commit
  14. 22 Jan, 2020 1 commit
  15. 20 Jan, 2020 1 commit
  16. 19 Jan, 2020 1 commit
  17. 17 Jan, 2020 1 commit
  18. 12 Jan, 2020 1 commit
  19. 07 Jan, 2020 1 commit
  20. 06 Jan, 2020 1 commit
  21. 30 Dec, 2019 1 commit
  22. 24 Dec, 2019 1 commit
  23. 15 Dec, 2019 3 commits
  24. 14 Dec, 2019 1 commit
    • zeripath's avatar
      Default NO_REPLY_ADDRESS to DOMAIN (#9325) · f6ba912c
      zeripath authored
      * Default NO_REPLY_ADDRESS to DOMAIN
      
      The default NO_REPLY_ADDRESS was previously noreply.example.org
      This PR changes this to default to the default DOMAIN for gitea.
      
      * Change default to noreply.%(DOMAIN)s
      
      * Change default to "noreply" + Domain
      f6ba912c
  25. 10 Dec, 2019 1 commit
  26. 07 Dec, 2019 1 commit
    • Alexander Scheel's avatar
      Markdown: Sanitizier Configuration (#9075) · ee7df7ba
      Alexander Scheel authored
      
      * Support custom sanitization policy
      
      Allowing the gitea administrator to configure sanitization policy allows
      them to couple external renders and custom templates to support more
      markup. In particular, the `pandoc` renderer allows generating KaTeX
      annotations, wrapping them in `<span>` elements with class `math` and
      either `inline` or `display` (depending on whether or not inline or
      block mode was requested).
      
      This iteration gives the administrator whitelisting powers; carefully
      crafted regexes will thus let through only the desired attributes
      necessary to support their custom markup.
      
      Resolves: #9054
      Signed-off-by: default avatarAlexander Scheel <alexander.m.scheel@gmail.com>
      
      * Document new sanitization configuration
      
       - Adds basic documentation to app.ini.sample,
       - Adds an example to the Configuration Cheat Sheet, and
       - Adds extended information to External Renderers section.
      Signed-off-by: default avatarAlexander Scheel <alexander.m.scheel@gmail.com>
      
      * Drop extraneous length check in newMarkupSanitizer(...)
      Signed-off-by: default avatarAlexander Scheel <alexander.m.scheel@gmail.com>
      
      * Fix plural ELEMENT and ALLOW_ATTR in docs
      
      These were left over from their initial names. Make them singular to
      conform with the current expectations.
      Signed-off-by: default avatarAlexander Scheel <alexander.m.scheel@gmail.com>
      ee7df7ba
  27. 06 Dec, 2019 1 commit
  28. 01 Dec, 2019 1 commit
    • 6543's avatar
      [Feature] Custom Reactions (#8886) · 668eaf95
      6543 authored
      * add [ui] Reactions
      
      * move contend check from form to go functions
      
      * use else if
      
      * check if reaction is allowed only on react
      (so previous custom reaction can be still removed)
      
      * use $.AllowedReactions in templates
      
      * use ctx.Flash.Error
      
      * use it there too
      
      * add redirection
      
      * back to server error
      because a wrong reaction is a template issue ...
      
      * add emoji list link
      
      * add docs entry
      
      * small wording nit
      suggestions from @jolheiser - thx
      
      * same reactions as github
      
      * fix PR reactions
      
      * handle error so template JS could check
      
      * Add Integrations Test
      
      * add REACTIONS setting to cheat-sheet doc page
      668eaf95
  29. 21 Nov, 2019 2 commits
  30. 20 Nov, 2019 1 commit
  31. 16 Nov, 2019 1 commit
  32. 14 Nov, 2019 2 commits
  33. 10 Nov, 2019 1 commit
    • guillep2k's avatar
      Auto-subscribe user to repository when they commit/tag to it (#7657) · 01a4a7cb
      guillep2k authored
      
      * Add support for AUTO_WATCH_ON_CHANGES and AUTO_WATCH_ON_CLONE
      
      * Update models/repo_watch.go
      Co-Authored-By: default avatarLauris BH <lauris@nix.lv>
      
      * Round up changes suggested by lafriks
      
      * Added changes suggested from automated tests
      
      * Updated deleteUser to take RepoWatchModeDont into account, corrected inverted DefaultWatchOnClone and DefaultWatchOnChanges behaviour, updated and added tests.
      
      * Reinsert import "github.com/Unknwon/com" on http.go
      
      * Add migration for new column `watch`.`mode`
      
      * Remove serv code
      
      * Remove WATCH_ON_CLONE; use hooks, add integrations
      
      * Renamed watch_test.go to repo_watch_test.go
      
      * Correct fmt
      
      * Add missing EOL
      
      * Correct name of test function
      
      * Reword cheat and ini descriptions
      
      * Add update to migration to ensure column value
      
      * Clarify comment
      Co-Authored-By: default avatarzeripath <art27@cantab.net>
      
      * Simplify if condition
      01a4a7cb
  34. 08 Nov, 2019 1 commit
    • Lunny Xiao's avatar
      Webhook support custom proxy (#8760) · 55bdc9aa
      Lunny Xiao authored
      * Webhook support custom proxy
      
      * Add glob support on webhook proxy host rules
      
      * fix app.ini.sample
      
      * improve code and app.ini.sample
      
      * update cheetsheet about added webhook options
      55bdc9aa
  35. 31 Oct, 2019 1 commit
    • Brad Albright's avatar
      Allow cross-repository dependencies on issues (#7901) · 887a8fe2
      Brad Albright authored
      * in progress changes for #7405, added ability to add cross-repo dependencies
      
      * removed unused repolink var
      
      * fixed query that was breaking ci tests; fixed check in issue dependency add so that the id of the issue and dependency is checked rather than the indexes
      
      * reverted removal of string in local files becasue these are done via crowdin, not updated manually
      
      * removed 'Select("issue.*")' from getBlockedByDependencies and getBlockingDependencies based on comments in PR review
      
      * changed getBlockedByDependencies and getBlockingDependencies to use a more xorm-like query, also updated the sidebar as a result
      
      * simplified the getBlockingDependencies and getBlockedByDependencies methods; changed the sidebar to show the dependencies in a different format where you can see the name of the repository
      
      * made some changes to the issue view in the dependencies (issue name on top, repo full name on separate line). Change view of issue in the dependency search results (also showing the full repo name on separate line)
      
      * replace call to FindUserAccessibleRepoIDs with SearchRepositoryByName. The former was hardcoded to use isPrivate = false on the repo search, but this code needed it to be true. The SearchRepositoryByName method is used more in the code including on the user's dashboard
      
      * some more tweaks to the layout of the issues when showing dependencies and in the search box when you add new dependencies
      
      * added Name to the RepositoryMeta struct
      
      * updated swagger doc
      
      * fixed total count for link header on SearchIssues
      
      * fixed indentation
      
      * fixed aligment of remove icon on dependencies in issue sidebar
      
      * removed unnecessary nil check (unnecessary because issue.loadRepo is called prior to this block)
      
      * reverting .css change, somehow missed or forgot that less is used
      
      * updated less file and generated css; updated sidebar template with styles to line up delete and issue index
      
      * added ordering to the blocked by/depends on queries
      
      * fixed sorting in issue dependency search and the depends on/blocks views to show issues from the current repo first, then by created date descending; added a "all cross repository dependencies" setting to allow this feature to be turned off, if turned off, the issue dependency search will work the way it did before (restricted to the current repository)
      
      * re-applied my swagger changes after merge
      
      * fixed split string condition in issue search
      
      * changed ALLOW_CROSS_REPOSITORY_DEPENDENCIES description to sound more global than just the issue dependency search; returning 400 in the cross repo issue search api method if not enabled; fixed bug where the issue count did not respect the state parameter
      
      * when adding a dependency to an issue, added a check to make sure the issue and dependency are in the same repo if cross repo dependencies is not enabled
      
      * updated sortIssuesSession call in PullRequests, another commit moved this method from pull.go to pull_list.go so I had to re-apply my change here
      
      * fixed incorrect setting of user id parameter in search repos call
      887a8fe2
  36. 30 Oct, 2019 1 commit