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

[OP-1796] Deferred PR creation #19

Merged
merged 42 commits into from
Jul 19, 2023
Merged

Conversation

applejag
Copy link
Member

@applejag applejag commented May 19, 2023

Jira ticket: OP-1796

A lot of changes in this one. To summarize in one word: HTML!

In big brush strokes, the changes are:

  • Added HTML templating, using github.com/gin-contrib/multitemplate, so we can have reusable "layout page"

    • Start page
    • Page showing (censored) config
    • Page listing all packages
    • Page showing specific package
    • Page for creating PRs
    • Some error pages: 404 (Not Found) & 405 (Method Not Allowed)
  • Added favicon and auxiliary files, generated from docs/jelease-gopher-profile-orig.jpg using https://realfavicongenerator.net/

  • Refactored a bunch here and there to make these features not complete spaghetti

  • Added Gin logger shim, to have prettier logs from Gin-Gonic, as well as correct logging severity

  • Added some new configs:

    • http.publicUrl
    • jira.issue.comments.prDeferredCreation
    • jira.issue.prDeferredCreation

Preview

Screenshot_20230519_185555

Open question

  • Is the config jira.issue.prDeferredCreation correctly placed? It's not directly tied to Jira issues, but I didn't know where else to put it. Maybe just as a root config?

@applejag applejag added the enhancement New feature or request label May 19, 2023
@applejag applejag self-assigned this May 19, 2023
@applejag applejag marked this pull request as ready for review May 19, 2023 16:53
@applejag applejag requested a review from a team as a code owner May 19, 2023 16:53
@applejag applejag requested review from jadolg, zoro16 and nicmr and removed request for a team May 19, 2023 16:53
jelease.schema.json Outdated Show resolved Hide resolved
pkg/patch/repo.go Show resolved Hide resolved
@jadolg
Copy link
Member

jadolg commented Jul 14, 2023

This PR is way too big 😵

@applejag
Copy link
Member Author

This PR is way too big dizzy_face

Yep, sorry about this. This PR is the definition of scope creep.

I could try split it up if that helps?

@nicmr
Copy link
Contributor

nicmr commented Jul 14, 2023

If possible without unreasonable effort that'd be awesome!

@applejag
Copy link
Member Author

If possible without unreasonable effort that'd be awesome!

Me and Jorge talked, and went for trying a pair-review meeting instead. There's so much scattered in this PR, that extracting to multiple PRs will get tedious. I've invited you too to that meeting ofc

pkg/github/github.go Show resolved Hide resolved
pkg/server/prcreate.go Outdated Show resolved Hide resolved
pkg/server/server.go Show resolved Hide resolved
@applejag applejag removed the request for review from zoro16 July 17, 2023 12:20
@applejag applejag requested a review from jadolg July 17, 2023 13:07
Copy link
Contributor

@nicmr nicmr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heall yeah! 😄

@applejag applejag merged commit 758c39d into main Jul 19, 2023
3 checks passed
@applejag applejag deleted the feature/OP-1796/manual-pr-trigger branch July 19, 2023 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants