JACoB PR for Issue Add Skip Build functionality #94
  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.
  
    
  
    
Changes Performed:
Step 1: Parse GitHub Issue for Skip Build Flag
Files:
/src/server/github/issue.ts
Details:
In
src/server/github/issue.ts, modify thegetIssuefunction to parse the issue body for the--skip-buildflag. Extract this flag and include it in the issue data returned by the function. This will allow other parts of the application to check if the build process should be skipped based on the issue's content.Exit Criteria
The
getIssuefunction successfully parses the--skip-buildflag from the issue body and includes it in the returned issue data.Step 2: Update checkAndCommit to Skip Build Based on Flag
Files:
/src/server/code/checkAndCommit.ts
Details:
In
src/server/code/checkAndCommit.ts, update thecheckAndCommitfunction to accept a new parameterskipBuild. Before callingbuildAndTest, add a conditional check for thisskipBuildflag. Iftrue, skip the call tobuildAndTestand proceed with the rest of the function's logic.Exit Criteria
The
checkAndCommitfunction conditionally skips the build process based on theskipBuildflag.Step 3: Pass Skip Build Flag in editFiles Function
Files:
/src/server/code/editFiles.ts
Details:
Modify
src/server/code/editFiles.tsto extract the--skip-buildflag from the issue data and pass it to thecheckAndCommitfunction. Ensure that the flag is correctly passed through all function calls leading tocheckAndCommit.Exit Criteria
The
editFilesfunction correctly passes the--skip-buildflag to thecheckAndCommitfunction.Step 4: Handle Skip Build Flag in GitHub Router
Files:
/src/server/api/routers/github.ts
Details:
Update
src/server/api/routers/github.tsto ensure that when GitHub issues are processed, the--skip-buildflag is correctly identified and passed along to the relevant functions, such aseditFilesandcheckAndCommit. This might involve parsing the issue body within the router or ensuring that the flag is included in the data passed to these functions.Exit Criteria
The GitHub router correctly handles the
--skip-buildflag, ensuring it is passed to functions that require it.Step 5: Define BuildOptions Interface to Include Skip Build Flag
Files:
/src/types.ts
Details:
In
src/types.ts, define a new interfaceBuildOptionsthat includes askipBuildboolean property. Extend the existing parameter interfaces for functions likecheckAndCommitto include this newBuildOptionsinterface, allowing them to accept theskipBuildflag.Exit Criteria
A
BuildOptionsinterface is defined, and relevant function parameter interfaces are extended to include theskipBuildflag.