Streamline PR creation workflow with improved automation and type handling - #13
Merged
Merged
Conversation
…ed GitHub Actions workflow - Bumped versions of several dependencies in package-lock.json, including @eslint-community/eslint-utils, @hey-api/openapi-ts, @types/node, @types/react, debug, mlly, prettier-plugin-organize-imports, and run-applescript to their latest releases for improved functionality and security. - Deleted the create-feature.yml GitHub Actions workflow as it is no longer needed. - Updated VSCode tasks to reflect the removal of the workflow and renamed the "Create Feature Branch" task to "Create Feature" for clarity. - Refactored the create-feature script to handle local Git operations directly, including branch creation, validation, and stashing uncommitted changes.
- Modified the "Create PR" task command to accept a new input for PR type, allowing users to specify whether the PR is a feature, bugfix, hotfix, or release. - Added a new input option for selecting the PR type, enhancing the task's usability and ensuring better organization of pull requests.
…ode task command - Removed the PR type input from the "Create PR" task in VSCode, streamlining the command. - Updated the create-pr script to automatically determine the PR type based on the current branch prefix, enhancing usability and reducing user input errors. - Defaulted to 'feature' for undetermined branch names, improving the script's robustness.
…eck for existing PRs - Updated the PR description creation to properly escape content and append a footer. - Added a check to see if a PR already exists before attempting to create a new one, enhancing the workflow's efficiency and user experience.
…nt command substitution issues - Updated the create-pr workflow to remove backticks from diff stats, commit messages, and detailed changes, ensuring proper handling in heredocs and improving overall reliability.
…itle and description - Updated the create-pr workflow to use environment variables for handling the PR title and description, improving safety and reliability in processing Claude's output.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary of Changes
This PR refactors the PR creation workflow to improve automation, simplify the development process, and enhance reliability. The changes consolidate workflow logic and remove unused components while adding better environment variable handling.
Key Improvements
Workflow Automation:
create-pr.ymlworkflow with environment variable support for dynamic PR title and description generationDeveloper Experience:
create-prscript with better error handling and cleaner command structurecreate-featurescript for more maintainable PR type processingCleanup:
create-feature.ymlworkflow (100 lines deleted)Breaking Changes
create-feature.ymlGitHub Actions workflow - any references to this workflow will need to be updatedTesting Notes for Reviewers
Browser Compatibility Considerations
No browser-facing changes in this PR - all modifications are to development tooling and CI/CD workflows.
Files Modified
.github/workflows/create-pr.yml- Enhanced workflow automation.vscode/tasks.json- Updated task configurationsbin/create-feature- Refactored script logicbin/create-pr- Simplified PR creation processpackage-lock.json- Dependency updatesNet Impact: -52 lines of code, improved maintainability and developer experience
🤖 Generated with Claude Code
Branch Info:
refactor/feature-creationmainCo-Authored-By: Claude noreply@anthropic.com