Skip to content

Commit 9f4815d

Browse files
committed
chore: update templates and scripts
1 parent 7af480e commit 9f4815d

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

organization/scripts/acceptance_emails.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ var mustache = require( 'mustache' );
2727
var mkdirp = require( 'mkdirp' ).sync;
2828
var readFile = require( '@stdlib/fs-read-file' ).sync;
2929
var writeFile = require( '@stdlib/fs-write-file' ).sync;
30+
var currentYear = require( '@stdlib/time-current-year' );
31+
var format = require( '@stdlib/string-format' );
3032
var ENV = require( '@stdlib/process-env' );
3133
var parseCSV = require( './parse_csv.js' );
3234

@@ -50,7 +52,7 @@ var TMPL = readFile( tpath, FOPTS );
5052
var dpath = resolve( __dirname, 'tmp', 'accepted.csv' );
5153
var DATA = parseCSV( readFile( dpath, FOPTS ) );
5254

53-
var SUBJECT = '[GSoC 2024] Congratulations! Your stdlib proposal was accepted!';
55+
var SUBJECT = format( '[GSoC %d] Congratulations! Your stdlib proposal was accepted!', currentYear() );
5456

5557

5658
// FUNCTIONS //

organization/scripts/announcement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var DATA = parseCSV( readFile( dpath, FOPTS ) );
5858
*/
5959
function params() {
6060
return {
61-
'number_of_applications': NUM_APPS,
61+
'number_of_accepted_applications': NUM_APPS,
6262
'coding_start_date': CODING_START,
6363
'sender_name': SENDER,
6464
'projects': []

organization/scripts/rejection_emails.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ var mustache = require( 'mustache' );
2727
var mkdirp = require( 'mkdirp' ).sync;
2828
var readFile = require( '@stdlib/fs-read-file' ).sync;
2929
var writeFile = require( '@stdlib/fs-write-file' ).sync;
30+
var currentYear = require( '@stdlib/time-current-year' );
3031
var ENV = require( '@stdlib/process-env' );
32+
var format = require( '@stdlib/string-format' );
3133
var parseCSV = require( './parse_csv.js' );
3234

3335

@@ -47,7 +49,7 @@ var TMPL = readFile( tpath, FOPTS );
4749
var dpath = resolve( __dirname, 'tmp', 'rejected.csv' );
4850
var DATA = parseCSV( readFile( dpath, FOPTS ) );
4951

50-
var SUBJECT = '[GSoC 2024] Proposal notification - stdlib';
52+
var SUBJECT = format( '[GSoC %d] Proposal notification - stdlib', currentYear() );
5153

5254

5355
// FUNCTIONS //

organization/templates/acceptance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ GSoC projects have flexible timelines. Right now your project is set to the defa
2020

2121
The community bonding period from {{bonding_start_date}} to {{bonding_stop_date}} begins now.
2222

23-
http://googlesummerofcode.blogspot.com/2007/04/so-what-is-this-community-bonding-all.html.
23+
http://googlesummerofcode.blogspot.com/2007/04/so-what-is-this-community-bonding-all.html
2424

2525
You should spend this time to get up to speed with the community, and to set up regular meetings with your mentors for the coming months. We'll be inviting you to our internal Slack channel shortly so you can connect with mentors and other maintainers more directly.
2626

organization/templates/announcement.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ Contributor, Project: Mentors
1010
{{/projects}}
1111
Join me in congratulating them on their acceptance.
1212

13-
I would like to thank all of the contributors who applied this year and everyone who submitted a patch. We certainly hope that you will remain a part of our community. I would also like to thank all the mentors for helping review patches and proposals.
13+
I would like to thank all of the contributors who applied this year and everyone who submitted a patch. We certainly hope that you will remain a part of our community. As one inspiring success story, one of the contributors selected this year was rejected last year, but stuck with it, engaged more deeply with the community, and successfully landed a project. In short, persistence pays off!
1414

1515
To everyone whose proposal is accepted, you should be receiving an email from your mentors shortly to discuss how you will be communicating over the summer about your project. You should meet with your mentors about once a week during the summer to go over your progress.
1616

17-
I would like all project maintainers to strongly encourage GSoC contributors to submit pull requests early and often. This will go a long way toward making sure that you don't end the summer with a ton of code written that never gets merged. Contributors should help review pull requests by other contributors, so that we don't get bogged down reviewing too much code.
17+
I would also like to thank all the mentors for helping review patches and proposals. I would like all project maintainers to strongly encourage GSoC contributors to submit pull requests early and often. This will go a long way toward making sure that you don't end the summer with a ton of code written that never gets merged. Contributors should help review pull requests by other contributors, so that we don't get bogged down reviewing too much code.
1818

1919
The GSoC coding period officially starts {{coding_start_date}} (https://developers.google.com/open-source/gsoc/timeline).
2020

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
"@stdlib/process-env": "^0.2.1",
3636
"@stdlib/regexp-eol": "^0.2.1",
3737
"@stdlib/string-base-snakecase": "^0.2.1",
38+
"@stdlib/string-format": "^0.2.2",
3839
"@stdlib/string-trim": "^0.2.1",
40+
"@stdlib/time-current-year": "^0.2.2",
3941
"mkdirp": "^0.5.1",
4042
"mustache": "^4.0.0"
4143
},

0 commit comments

Comments
 (0)