Skip to content

Commit 2a7ce0d

Browse files
Merge branch 'aarongustafson/want-workflows' of https://github.com/WebWeWant/webwewant.fyi into aarongustafson/want-workflows
2 parents 25b9dee + 92d5b47 commit 2a7ce0d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

netlify/functions/create-want-issue.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ export default async (request, context) => {
1717
const formData = await request.json();
1818
console.log('Received form submission:', formData);
1919

20-
// Get GitHub token from environment using new Netlify.env API
21-
const githubToken = Netlify.env.get('GITHUB_TOKEN');
20+
// Get GitHub token from environment using process.env
21+
const githubToken = process.env.GITHUB_TOKEN;
2222
if (!githubToken) {
2323
console.error('GITHUB_TOKEN environment variable not set');
2424
return new Response(JSON.stringify({ error: 'Server configuration error' }), {

scripts/wantProcessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function generateWantFile(wantData) {
4242
submitter: submitter,
4343
number: submissionId,
4444
tags: tags.length > 0 ? tags : ['uncategorized'],
45-
discussion: `https://github.com/WebWeWant/webwewant.fyi/discussions/`,
45+
discussion: `https://github.com/WebWeWant/webwewant.fyi/discussions/${submissionId}`,
4646
status: 'discussing'
4747
};
4848

0 commit comments

Comments
 (0)