Skip to content
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

Add context when rendering labels or emojis (#23281) #23319

Merged
merged 3 commits into from
Mar 6, 2023

Commits on Mar 5, 2023

  1. Add context when rendering labels or emojis (go-gitea#23281)

    This branch continues the work of go-gitea#23092 and attempts to rid the
    codebase of any `nil` contexts when using a `RenderContext`.
    
    Anything that renders markdown or does post processing may call
    `markup.sha1CurrentPatternProcessor()`, and this runs
    `git.OpenRepository()`, which needs a context. It will panic if the
    context is `nil`. This branch attempts to _always_ include a context
    when creating a `RenderContext` to prevent future crashes.
    
    Co-authored-by: Kyle D <kdumontnu@gmail.com>
    2 people authored and GiteaBot committed Mar 5, 2023
    Configuration menu
    Copy the full SHA
    c02d1b6 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2023

  1. Configuration menu
    Copy the full SHA
    1c98aa5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d75a397 View commit details
    Browse the repository at this point in the history