Repository navigation
Check if git working tree is clean script - #1347
Merged
Merged
Conversation
hunterachieng
approved these changes
Aug 27, 2025
Collaborator
| @@ -0,0 +1,98 @@ | |||
| #!/bin/bash | |||
Collaborator
There was a problem hiding this comment.
Is this AI generated? It looks a lot more involved and complicated than I expect
Collaborator
Author
There was a problem hiding this comment.
Yes it's mostly ai generate. I was facing some challenge with actions/checkout@v3. Went to AI for help
Collaborator
There was a problem hiding this comment.
That's OK but make sure to really scrutinise what the AI is telling you. It's like you've handed the work out to an external contractor - sure they've delivered something that looks cool, but is it really what we want? Will the maintenance cost outweigh the development cost?
Collaborator
Author
There was a problem hiding this comment.
Noted, thanks for the feedback
josephjclark
approved these changes
Aug 28, 2025
josephjclark
left a comment
Collaborator
There was a problem hiding this comment.
This is much better @mtuchi - thank you! 🙏
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
Add a script for checking if git working tree is clean. This script is used in
ci.yamlandpublish.yamlworkflowsFixes #1136
Details
scripts/status-check.shpackage.jsonto includetest:gitwhich uses the new script ☝🏽ci.yamlandpublish.yamlworkflow to includepnpm test:gitstepTesting
First, make some uncommitted changes in your working directory. Then run
pnpm test:gitfrom the adaptors root directory. You should see an error sayingError: Working tree has uncommitted changes:I have confirmed the script is working by making a small change to asana docs and commit only
Adaptor.js, When i pushed the changes the CI Build and Test Failed. See failed jobAI Usage
Please disclose how you've used AI in this work (it's cool, we just want to
know!):
You can read more details in our
Responsible AI Policy
Review Checklist
Before merging, the reviewer should check the following items:
production? Is it safe to release?
dev only changes don't need a changeset.