Skip to content

Conversation

@rkreutz
Copy link
Contributor

@rkreutz rkreutz commented Aug 9, 2021

About

This PR adds the capability to move tasks across Columns in Project during the different stages of a PR.

How

I'm introducing three new inputs: BOARD_COLUMN_OPENED, BOARD_COLUMN_MERGED and BOARD_COLUMN_CLOSED. The tasks would be moved to the specified columns as the PR is opened, merged or closed (respectively).

On our workflow this would be extremely helpful, since we use the Board view in Teamwork to visually see what's the status on each task, we would start the task by moving it to "In Development", then once a PR is open we move it to "Has PR" and finally once the PR is merged the task is ready to be tested and moved to "Nightly". Optionally we may move the task back to "Selected For Development" in case the PR was rejected and closed.

@rkreutz rkreutz requested a review from Flexicon August 9, 2021 11:02
@rkreutz rkreutz requested a review from a team as a code owner August 9, 2021 11:02
Copy link
Contributor

@Flexicon Flexicon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍 seems to run fine locally too

@Flexicon Flexicon merged commit 7806fdf into master Aug 9, 2021
@Flexicon Flexicon deleted the feature/board-columns branch August 9, 2021 11:44
log::message "Task found with the id: $task_id"

export TEAMWORK_TASK_ID=$task_id
local -r project_id="$(teamwork::get_project_id_from_task "$task_id")"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @rkreutz our deskclient builds are failing now with the error saying /src/main.sh: line 45: local: project_id: readonly variable.
https://github.com/Teamwork/deskclient/pull/4845/checks?check_run_id=3280181461

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess removing that -r will fix it, will open a new PR for that

Copy link
Contributor Author

@rkreutz rkreutz Aug 9, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually just removing the quotes should do, gonna try adding this to the tests to confirm

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It only fails for task descriptions that have more than 1 TW task link.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a proposed fix for this issue here: #47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants