[414884] [NPPR] NPPR should offer GitHub as an option Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=414884
diff --git a/project_provisioning_request.php b/project_provisioning_request.php index 074206f..0bea2ba 100644 --- a/project_provisioning_request.php +++ b/project_provisioning_request.php
@@ -1,6 +1,6 @@ <?php /******************************************************************************* - * Copyright (c) 2010 Eclipse Foundation and others. + * Copyright (c) 2010, 2013 Eclipse Foundation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -10,6 +10,7 @@ * Bjorn Freeman-Benson (Eclipse Foundation)- initial API and implementation * Wayne Beaton (Eclipse Foundation)- Bug 240688 * Wayne Beaton and Denis Roy (EF) - Bug 306373 (Git support) + * Wayne Beaton - Bug 414884 (GitHub as an option) *******************************************************************************/ require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); @@ -313,9 +314,14 @@ </td></tr> <tr> <td colspan="2" align="center"><p><input type="radio" name="source_code_repository" value="Git" checked> Git + <input type="radio" name="source_code_repository" value="GitHub"> GitHub <input type="radio" name="source_code_repository" value="SVN"> SVN </p> <p>Note that all projects must submit an <a href="http://wiki.eclipse.org/Development_Resources/Initial_Contribution">Initial Contribution</a> to the IP Team <em>before</em> any code can be checked in.</p> + <p>For projects that intend to use <em>GitHub</em>, tag your repository as described in + <a href="https://wiki.eclipse.org/Social_Coding/Hosting_a_Project_at_GitHub">Hosting a Project at GitHub</a> before submitting this form. + Specify the URLs of existing repositories to be moved (one per line):<br/> + <textarea name="github_repositories" rows="4" cols="60">https://github.com/yourname/repository</textarea></p> </td> </tr>
diff --git a/submit_project_provisioning_request.php b/submit_project_provisioning_request.php index de2c8e0..f6e291d 100644 --- a/submit_project_provisioning_request.php +++ b/submit_project_provisioning_request.php
@@ -180,7 +180,7 @@ $committer_lead = "committerLead" . $committer_number; $committer_download = "committerDownloadPrivileges" . $committer_number; - $tmp_str .= " + $tmp_str = " Name: " . $_POST[$committer_name] . " Email: " . $_POST[$committer_email] . " "; @@ -342,7 +342,7 @@ have finished your to do items. "; -$mailStr .= " +$mailStr = " New Project Validation Phase Provisioning Request Name: " . $_POST['yourName'] . " @@ -365,7 +365,19 @@ $mailStr .= " _____ Initial SCM Components _____ [Repository Type: " . $_POST['source_code_repository'] . "] +"; +if ($_POST['source_code_repository'] == 'GitHub') { + if (!$github = trim($_POST['github_repositories'])) + $github = 'None specified'; + + $mailStr .= " + Existing repository locations: + $github +"; +} + +$mailStr .= " 1. [webmaster] Create the repository. 2. [webmaster] Grant access to all project committers. ";