Skip to content

Commit

Permalink
chore: change var handling
Browse files Browse the repository at this point in the history
  • Loading branch information
reinamora137 committed Sep 10, 2024
1 parent 0fc6b85 commit ccc999c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/new_discussion_to_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ jobs:
// Now, add the discussion to the project using its URL
const addToProjectMutation = `
mutation($projectId: ID!, $url: String!) {
addProjectV2ItemByUrl(input: {projectId: $projectId, url: $url}) {
mutation($projectId: ID!, $contentUrl: String!) {
addProjectV2ItemByUrl(input: {projectId: $projectId, url: $contentUrl}) {
item {
id
}
Expand All @@ -67,7 +67,7 @@ jobs:
console.log('Adding discussion to project...');
const result = await github.graphql(addToProjectMutation, {
projectId: projectId,
url: context.payload.discussion.html_url
contentUrl: context.payload.discussion.html_url
});
console.log('Added to project:', JSON.stringify(result, null, 2));
Expand Down

0 comments on commit ccc999c

Please sign in to comment.