Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several updates to various PowerShell scripts to enhance functionality and improve error handling. The most important changes include the addition of parameters, improved error messages, and enhanced script logic for handling GitHub issues and branches.
Enhancements to issue and branch management:
scripts/_change_state.ps1
: Added parameters and logic to handle issue state transitions in GitHub projects using GraphQL. This includes fetching project IDs, validating column names, and moving issue cards between columns.scripts/_create_issue_branch.ps1
: Introduced a new parameterdoNotCheckOldColumnName
, added logic to ensure the script is run from thedev
branch with no uncommitted changes, and integrated_change_state.ps1
to update issue states. [1] [2]Error handling and validation improvements:
scripts/create_new_issue.ps1
: Added input validation for issue title and body, ensuring they are not empty, and updated the script to call_create_issue_branch.ps1
with the new parameter. [1] [2]scripts/ready_for_review.ps1
: Added checks to ensure the working tree is clean before marking a branch as ready for review, and integrated_change_state.ps1
to update issue states accordingly.Additional script enhancements:
scripts/_is_on_dev_nothing_to_commit.ps1
: Added logic to check if the current branch isdev
and if there are uncommitted changes, providing clear messages for the user.scripts/commit_and_ready_for_review.ps1
: Updated the script to change the working directory to the parent directory before committing changes to ensure all relevant files are included.closes #383