2017-05-31 20:09:05 +03:00
//-
2020-04-15 01:57:21 +03:00
//- Copyright (c) Microsoft.
2017-05-31 20:09:05 +03:00
//- Licensed under the MIT license. See LICENSE file in the project root for full license information.
//-
2020-05-01 20:08:34 +03:00
extends email
2017-05-31 20:09:05 +03:00
block content
2019-08-07 02:53:50 +03:00
h1 #{approvalRequest.organizationName}/#{approvalRequest.repositoryName}
2017-05-31 20:09:05 +03:00
p
| Repo URL:
2019-08-26 19:54:28 +03:00
a(href='https://github.com/' + approvalRequest.organizationName + '/' + approvalRequest.repositoryName, target='_new') https://github.com/#{approvalRequest.organizationName}/#{approvalRequest.repositoryName}
2017-05-31 20:09:05 +03:00
if api && service
2019-08-07 02:53:50 +03:00
p.lead #{approvalRequest.repositoryName} was created by #{service}
2017-05-31 20:09:05 +03:00
else if api
2019-08-07 02:53:50 +03:00
p.lead #{approvalRequest.repositoryName} was created by a service
2017-05-31 20:09:05 +03:00
else
2020-04-15 01:57:21 +03:00
if existingRepoId
p.lead.
Thanks for configuring your new <strong>#{approvalRequest.repositoryName}</strong> repo.
else
p.lead.
Your repo <strong>"#{approvalRequest.repositoryName}"</strong> has been created in the <strong>"#{approvalRequest.organizationName}"</strong> organization.
2019-08-07 02:53:50 +03:00
if approvalRequest.initialRepositoryVisibility == 'private'
if liveReposSiteUrl && approvalRequest.repoVisibility == 'private'
2017-05-31 20:09:05 +03:00
p.
Since the new repo is private, you may receive a 404 if you yourself are
2021-03-06 04:19:16 +03:00
not a member of one of the teams that you requested have access.
2020-04-15 01:57:21 +03:00
if !existingRepoId
h3 How to make your repo public
p.
At this time, the typical experience of taking a repo public directly on
GitHub using the admin "settings" tab for a repo is broken. We are working
with GitHub to get this fixed.
p.
In the meantime, you can use the internal GitHub management portal to
take your repo public with a single click here:
p: a(href=liveReposSiteUrl + approvalRequest.org + '/repos/' + approvalRequest.repoName)= liveReposSiteUrl + approvalRequest.org + '/repos/' + approvalRequest.repoName
2017-05-31 20:09:05 +03:00
2020-05-01 20:08:34 +03:00
//-if approvalRequest.initialLicense
2017-05-31 20:09:05 +03:00
h3 License
2019-08-07 02:53:50 +03:00
p= approvalRequest.initialLicense
2017-05-31 20:09:05 +03:00
2020-05-01 20:08:34 +03:00
//-if approvalRequest.releaseReviewType
2017-05-31 20:09:05 +03:00
h3 Open Source Approval
p
2019-08-07 02:53:50 +03:00
| Release Type: #{approvalRequest.releaseReviewType}
if approvalRequest.releaseReviewUrl
2017-05-31 20:09:05 +03:00
br
2019-08-07 02:53:50 +03:00
| Release Request Created: #{approvalRequest.approvalUrl}
if approvalRequest.releaseReviewJustification
2017-05-31 20:09:05 +03:00
br
2019-08-07 02:53:50 +03:00
| Business Justification: #{approvalRequest.releaseReviewJustification}
2020-05-01 20:08:34 +03:00
2017-05-31 20:09:05 +03:00
if service || serviceOwner || serviceDescription
h3 Service information
p This repo was created by a service:
table.technical
thead
tr
if service
th Service
if serviceDescription
th Service information
tbody
tr
if service
td= service
if serviceDescription
td= serviceDescription
if results && results.length
h3 Operations performed
ul
each result in results
2019-08-26 19:54:28 +03:00
if result && (result.error || result.message)
2020-06-12 00:46:09 +03:00
li(style=result.error ? 'color:red' : undefined)= result.error || result.message
2020-04-23 23:20:52 +03:00
if managerInfo && managerInfo.managerMail
h3 Additional notifications
2020-04-24 02:56:13 +03:00
p For visibility, the manager #{managerInfo.managerDisplayName ? managerInfo.managerDisplayName : managerInfo.managerMail} was also notified of this new GitHub repo for open source.
2020-05-01 20:08:34 +03:00
if repository && repositoryMetadataEntity && repositoryMetadataEntity.repositoryName && repositoryMetadataEntity.organizationName
h3 Associated corporate metadata
if repository
p This information is available at #[a(href=repository.absoluteBaseUrl)=repository.absoluteBaseUrl]
include ../includes/corporateRepoMetadata