Skip to content

Commit 90ba2db

Browse files
committed
Fix double 2026 in PCD @ Copenhagen
1 parent 0f505d1 commit 90ba2db

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

.github/scripts/process-new-event-issue.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ async function main() {
166166
if (organizationType && !VALID_ORG_TYPES.has(organizationType)) errors.push({ field: 'Organization type', found: organizationType, message: 'Not a recognized option. Please choose one of the valid options from the form.' });
167167
if (isOnlineEvent && !eventUrl) errors.push({ field: 'Event URL', message: 'An event URL is required for online events. Please provide the URL where people can join.' });
168168

169-
const normalizedEventName = slugify(eventName);
169+
const normalizedEventName = slugify(eventName).replace(/-\d{4}$/, '');
170170
const eventId = normalizedEventName.startsWith('pcd-')
171171
? `${normalizedEventName}-${YEAR}`
172172
: `pcd-${normalizedEventName}-${YEAR}`;

pcd-website/src/content/events/pcd-copenhagen-2026-2026/content.md

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
id: pcd-copenhagen-2026
3+
uid: 8ef7919
4+
---

pcd-website/src/content/events/pcd-copenhagen-2026-2026/metadata.json renamed to pcd-website/src/content/events/pcd-copenhagen-2026/metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"id": "pcd-copenhagen-2026-2026",
2+
"id": "pcd-copenhagen-2026",
33
"uid": "8ef7919",
44
"organizers": [
55
{
@@ -21,7 +21,7 @@
2121
"organization_type": "Other",
2222
"online_event": false,
2323
"event_url": "",
24-
"event_name": "PCD @ Copenhagen 2026",
24+
"event_name": "PCD @ Copenhagen",
2525
"event_location": {
2626
"address": "Amagerfælledvej 190, 2300 København",
2727
"plus_code": "9F7JMH4V+62"

0 commit comments

Comments
 (0)