Пример #1
0
        public void DoWork(Card[] cards, ITrello trello, IDisplay display)
        {
            display.Skip();
            display.Write("Archiving cards...");

            foreach (var card in cards)
            {
                trello.Cards.Archive(card);
            }
        }
        public void DoWork(Card[] cards, ITrello trello, IDisplay display)
        {
            display.Skip();
            display.Write("Updating release version on cards...");

            foreach (var card in cards)
            {
                if (card.Desc.Contains(ReleaseTag(_options.SoftwareVersion)))
                    return;

                card.Desc += ReleaseTag(_options.SoftwareVersion);
                trello.Cards.ChangeDescription(card, card.Desc);
            }
        }
Пример #3
0
        public void DoWork(IDisplay display, IOptions options)
        {
            _trello.Authorize(options.AuthorizationToken);

            display.Write("Fetching cards...");
            var cards = _cardProvider.Fetch(_trello, options);

            foreach (var cardTask in _taskBuilder.BuildFor(options))
            {
                cardTask.DoWork(cards, _trello, display);
            }

            display.Skip();
            display.Write("Release notes generated successfully!");
        }