Skip to content

Commit

Permalink
Revert "Board automation: Move "future work" cards to "On the roadmap…
Browse files Browse the repository at this point in the history
…" instead of removing them from the board"

This reverts commit 79e833a.
  • Loading branch information
adamziel committed Jul 1, 2024
1 parent 79e833a commit 3ece1dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
4 changes: 2 additions & 2 deletions packages/meta/bin/project_board_automation.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
continue;
}

if ($automation->moveFutureWorkCardsToRoadmap($projectItem)) {
echo "Moving \"Future Work\" cards to \"On the roadmap\" to hide them from the high-velocity views on the board: $humanIssueName\n";
if ($automation->archiveFutureWorkCard($projectItem)) {
echo "Removing \"Future Work\" card from the board: $humanIssueName\n";
continue;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,14 @@ public function closeAndArchiveNotDoingCard($projectItem)
return true;
}

public function moveFutureWorkCardsToRoadmap($projectItem)
public function archiveFutureWorkCard($projectItem)
{
if(
!$this->hasStatus($projectItem, 'Future Work')
) {
return false;
}
$this->githubApi->setFieldValueById(
$this->projectId,
$projectItem['id'],
$this->statusFieldId,
$this->githubIds['fields']['status']['options']['on_the_roadmap']
);
$this->githubApi->removeItemFromProject($this->projectId, $projectItem['id']);
return true;
}

Expand Down
4 changes: 1 addition & 3 deletions packages/meta/src/project_board_automation/github_ids.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,14 @@
'options' =>
array (
'future_work' => '5d770dea',
'needs_triage_our_reply' => '0b055ebb',
'needs_triage' => '0b055ebb',
'up_next' => '08afe404',
'in_progress' => '47fc9ee4',
'needs_review' => '4cc61d42',
'reviewed' => '0f27f789',
'done' => '98236657',
'not_doing' => '2a2852fd',
'needs_authors_reply' => '20567755',
'big_pile_of_projects' => '3171d170',
'on_the_roadmap' => '0480ee83',
),
),
'priority' =>
Expand Down

0 comments on commit 3ece1dd

Please sign in to comment.