Skip to content

Commit

Permalink
Debugging why set-start-end-date was not triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
Belle P authored and Belle P committed Nov 20, 2024
1 parent 383d973 commit cce01c1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/set-start-end-date-issue-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ jobs:
... on ProjectV2 {
fields(first: 20) {
nodes {
id
name
... on ProjectV2SingleSelectField {
id
name
Expand Down Expand Up @@ -107,7 +105,7 @@ jobs:
console.log(`Issue status: ${statusFieldValue}`);
// Step 3: Update Start Date for "In Progress" status
if (statusFieldValue === 'In Progress') {
if (statusFieldValue === 'In progress') {
console.log(`Updating Start Date for issue ${issueNodeId}`);
await github.graphql(`
mutation($projectId: ID!, $itemId: ID!, $fieldId: ID!, $value: String!) {
Expand Down Expand Up @@ -156,4 +154,4 @@ jobs:
});
console.log(`End date set to ${now} for issue.`);
}
}

0 comments on commit cce01c1

Please sign in to comment.