Skip to content

Instantly share code, notes, and snippets.

@ajithvgiri
Created August 7, 2019 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajithvgiri/cf3c8700084de62d2074c0e39dd1c2ee to your computer and use it in GitHub Desktop.
Save ajithvgiri/cf3c8700084de62d2074c0e39dd1c2ee to your computer and use it in GitHub Desktop.
# activate the bot only if your IDE/Editor application is active
tell application "Android Studio" # You can change the IDE/Editor name eg: Xcode or Atom
activate
repeat
set title to "Fyru bot"
set message to "I am making auto commit & push"
display notification message with title title sound name "Glass"
# change the project path,commit message and the branch
do shell script "cd Users/ajithvgiri/AndroidStudioProjects/ExampleProject && git add -A && git commit -m 'commit from Fyru bot' && git push origin development"
delay 14400 # you can change the delay time current 14400 seconds = 4 hours
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment