Written by Pete Corey on Jan 5, 2015.

Last time, I talked about using Zapier to schedule Jekyll blog posts with Github Pages. I briefly touched on how I wished that Zapier had some kind of string manipulation functionality to help pull a schedule date out of the git commit message. Not long after the post went live, @zapier sent me a link that helped me accomplish exactly that.

Named Variables

Named variables in Zapier allow you to break apart your trigger data into multiple fields accessible from within your zap. In our case, named variables allow us to specify our Scheduled field anywhere within our git commit message and then use it when creating our Google Calendar event.

Integrating named variables into the scheduler zap was incredibly simple. First, push a git commit with the Scheduled variable somewhere within the commit message:

Scheduling this post for Monday, the 5th at 9 in the morning.

Scheduled(1/5/2015 9:00AM)

After the commit has been pushed to Github, I edited the scheduler zap and in step 5, changed the Start and End Date & Time fields from using Commit Message to using Commit Message Scheduled.

That’s it! Now, my git commit messages can contain useful information as well as scheduled dates which can easily be parsed out and used by Zapier.

I’ve shared an updated template of this zap. You can grab it here.