Skip to content

Instantly share code, notes, and snippets.

@kangax
Created June 13, 2013 00:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kangax/5770291 to your computer and use it in GitHub Desktop.
Save kangax/5770291 to your computer and use it in GitHub Desktop.
// create new card
$('.js-add-list-popover').click();
var d = new Date();
var year = (d.getFullYear()+'').substring(2);
var month = d.getMonth() + 1;
var day = d.getDate();
var cardName = 'Published (' + month + '-' + day + '-' + year + ')';
$('.js-list-name').val(cardName);
$('.js-add-list').click();
setTimeout(function() {
// move all in launchpad to this card
$('.list-title h2:contains("Launchpad")').nextAll('.js-open-list-menu').click();
$('.js-move-cards').click();
$('.js-list-list a:contains("' + cardName + '")').click();
setTimeout(function() {
$('.list').last().find('.js-open-list-menu').click();
$('.js-move-list').click();
// choose deploys board
$('.js-select-board option[value=5133de6105817e48410083c4]').prop('selected', true);
$('.js-select-board').change();
setTimeout(function() {
$('.js-commit-position').click();
}, 500);
}, 1000);
}, 1000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment