Setup:
- Finish a story,
- Deploy to staging
- Use the script to mark as delivered.
- Reject the story in Tracker
- Restart the story in Tracker
- Commit the story to your Git repo
- Run the script without deploying to a staging environment
This will cause the story to be marked as delivered, even though the latest version of the code is not deployed.