Skip to content

Commit

Permalink
Set the due date on the release task (#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
muodov authored Dec 9, 2024
1 parent 892fb30 commit 9601f81
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ddg-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -389,13 +389,13 @@ jobs:
run: |
node ./autoconsent/ci/asana-update-tasks.js
- name: Ouput workflow summary
- name: Output workflow summary
# Show failure message if any of the jobs report failed
if: ${{ contains(needs.*.result, 'failure') }}
run: |
echo "Release process completed but with failures reported." >> $GITHUB_STEP_SUMMARY
echo "Please review the job output to see which steps require manual intervention." >> $GITHUB_STEP_SUMMARY
- name: Ouput workflow summary
- name: Output workflow summary
# Show success message as long as none of the jobs report failed
if: ${{ !contains(needs.*.result, 'failure') }}
run: |
Expand Down
8 changes: 7 additions & 1 deletion ci/asana-create-tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,13 @@ const asanaCreateTasks = async () => {

// Updating task and moving to Release section...
console.error('Updated notes:', JSON.stringify(updatedNotes));
let updateTaskResult = await asana.tasks.updateTask(new_task.gid, { html_notes: updatedNotes });

// set due date 6 days from now
const dueDate = new Date();
dueDate.setDate(dueDate.getDate() + 6);
const dueDateString = dueDate.toISOString().split('T')[0];

let updateTaskResult = await asana.tasks.updateTask(new_task.gid, { html_notes: updatedNotes, due_on: dueDateString });
console.error('updateTaskResult:', updateTaskResult);

const addProjectResult = await asana.tasks.addProjectForTask(new_task.gid, {
Expand Down

0 comments on commit 9601f81

Please sign in to comment.