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 custom templates support (#2481) #2541

Closed
wants to merge 2 commits into from
Closed

Add custom templates support (#2481) #2541

wants to merge 2 commits into from

Conversation

ribejara-te
Copy link
Contributor

@ribejara-te ribejara-te commented Sep 27, 2022

This closes #2481 #2602

It embeds the default templates and adds the option to pass an optional templates directory (in Atlantis' working directory) where users can override the default ones.

@ribejara-te
Copy link
Contributor Author

Error is:

server/events/markdown_renderer.go:43:1: don't use `init` function (gochecknoinits)

I don't get the point of that, why does Go have init functions then?

@jamengual jamengual added feature New functionality/enhancement waiting-on-review Waiting for a review from a maintainer labels Sep 28, 2022
@ribejara-te
Copy link
Contributor Author

@jamengual what are the next steps here?

@ribejara-te
Copy link
Contributor Author

Ping!

@jamengual
Copy link
Contributor

we go backward in PR reviews, we try to do the oldest first but sometimes we merge quick wins like docs and others like that so sadly you need to wait for one of us to review it.

this is an opensource project, no one is on payroll or contract so it is all volunteered time.

Thanks.

@ribejara-te
Copy link
Contributor Author

No I know, it was more about asking whether the ball was on my court or yours. No worries, I do understand.

@ribejara-te
Copy link
Contributor Author

And thanks for maintaining this project.

@jamengual
Copy link
Contributor

jamengual commented Oct 10, 2022 via email

@jamengual
Copy link
Contributor

@ribejara-te can you please add docs and examples on how to use it.

@nitrocode
Copy link
Member

@ribejara-te please also fix the linting errors

@ribejara-te
Copy link
Contributor Author

Sure, I will.

)

func init() {
Copy link
Member

Choose a reason for hiding this comment

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

How can we rewrite this without an init function?

https://stackoverflow.com/a/56039373

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can probably encapsulate it into a nameless function.

Copy link
Member

@nitrocode nitrocode Oct 30, 2022

Choose a reason for hiding this comment

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

Thank you for all the work you have put in so far. We're really close to getting this merged in. 😁

@ribejara-te
Copy link
Contributor Author

Apologies on the delay, higher priority stuff seems to have taken my time these days. Will follow instructions as soon as possible.

@nitrocode
Copy link
Member

Please let us know when you're ready for another review.

To resolve the branch PR check failure, please merge the latest changes from the default branch

@jamengual
Copy link
Contributor

@ribejara-te we want to do a prerelease today, do you think you can fix status?

@ribejara-te
Copy link
Contributor Author

Merged in #2647.

@nitrocode
Copy link
Member

Thank you again for your work! It's nice when we have so many ambitious contributors. Please feel free to propose new changes 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New functionality/enhancement waiting-on-review Waiting for a review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add custom template support for GitHub PR comments
3 participants