Created
June 13, 2013 00:27
-
-
Save kangax/5770291 to your computer and use it in GitHub Desktop.
This file contains 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
// 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