-
Notifications
You must be signed in to change notification settings - Fork 50
M2 - remaining backend items #5151
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
da9b9e3
Epic 1229 SS/EasyCLA - 1
lukaszgryglicki 9072638
Epic 1229 SS/EasyCLA - 2
lukaszgryglicki a475ab5
Epic 1229 SS/EasyCLA - 3
lukaszgryglicki 9fc59f4
Epic 1229 SS/EasyCLA - 4
lukaszgryglicki 66e530a
Epic 1229 SS/EasyCLA - 5
lukaszgryglicki 705a467
Epic 1229 SS/EasyCLA - 6
lukaszgryglicki de083c6
Epic 1229 SS/EasyCLA - 7
lukaszgryglicki 356232c
Epic 1229 SS/EasyCLA - 8
lukaszgryglicki 743626c
Epic 1229 SS/EasyCLA - 9
lukaszgryglicki fc86407
Epic 1229 SS/EasyCLA - 10
lukaszgryglicki d19888c
Epic 1229 SS/EasyCLA - 11
lukaszgryglicki 16d2715
Epic 1229 SS/EasyCLA - 12
lukaszgryglicki 60cd4e7
Epic 1229 SS/EasyCLA - 13
lukaszgryglicki File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| // Copyright The Linux Foundation and each contributor to CommunityBridge. | ||
| // SPDX-License-Identifier: MIT | ||
|
|
||
| package emails | ||
|
|
||
| import ( | ||
| "github.com/linuxfoundation/easycla/cla-backend-go/utils" | ||
| ) | ||
|
|
||
| // ContactClaManagerTemplateParams is email params for ContactClaManagerTemplate | ||
| type ContactClaManagerTemplateParams struct { | ||
| RequestAction string | ||
| ContributorName string | ||
| ContributorIdentity string | ||
| CompanyName string | ||
| ProjectName string | ||
| CLAGroupName string | ||
| OptionalMessage string | ||
| } | ||
|
|
||
| const ( | ||
| // ContactClaManagerTemplateName is email template name for ContactClaManagerTemplate | ||
| ContactClaManagerTemplateName = "ContactClaManagerTemplate" | ||
| // ContactClaManagerTemplate is the email sent to the selected CLA managers when a | ||
| // contributor requests removal from or (re-)approval under the company CCLA | ||
| ContactClaManagerTemplate = ` | ||
| <p>Hello CLA Manager,</p> | ||
| <p>This is a notification email from EasyCLA regarding the project {{.ProjectName}} and CLA Group {{.CLAGroupName}}.</p> | ||
| <p>{{.ContributorName}} ({{.ContributorIdentity}}) has requested {{.RequestAction}} for their employee acknowledgement | ||
| under the {{.CompanyName}} corporate CLA. You are receiving this message as a CLA Manager from {{.CompanyName}} for {{.ProjectName}}.</p> | ||
| {{if .OptionalMessage}} | ||
| <p>The contributor included the following message in the request:</p> | ||
| <p>{{.OptionalMessage}}</p> | ||
| {{end}} | ||
| <p>To act on this request, please log into the EasyCLA Corporate Console and update the Approved List for {{.CompanyName}} accordingly. | ||
| No change has been made automatically.</p> | ||
| ` | ||
| ) | ||
|
|
||
| // RenderContactClaManagerTemplate renders ContactClaManagerTemplate | ||
| func RenderContactClaManagerTemplate(params ContactClaManagerTemplateParams) (string, error) { | ||
| return RenderTemplate(utils.V2, ContactClaManagerTemplateName, ContactClaManagerTemplate, params) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.