-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.js.sample
50 lines (32 loc) · 1.64 KB
/
config.js.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
var config = {}
// This is the URL of your RSS feed.
config.feed_url = 'http://www.example.org/feeds/rss';
// Helper callback to arbitrarily ignore articles you do not want Trello cards for.
// This might need to be customized based on your RSS feed format.
config.feed_filter = function (article) {
// For example, to ignore any article containing the word "Hate" in the title:
// return (article.title.indexOf('Hate') >= 0);
return false;
}
// Helper callback used see if a Trello card already exists for this article.
// This might need to be customized based on your RSS feed format.
// You can compare card.{name|desc} with article.{title|link|description}
config.card_article_comparator = function (card, article) {
// This just checks to see if the RSS item link is present anywhere in the card description.
return (card.desc.indexOf(article.link) >= 0);
}
// Helper callback used to create the final contents of a Trello card.
// This might need to be customized based on your RSS feed format.
config.article_formatter = function (article) {
var finalName = article.title.split(',', 1);
var finalDesc = article.title + "\n" + article.link + "\n" + article.description;
return { 'name': finalName, 'desc': finalDesc };
}
// Your Trello API authentication values.
config.trello_key = "................................";
config.trello_token = "................................................................";
// Identifier of the Trello board.
config.board_id = '........................';
// Name of the Trello list that will receive new cards.
config.target_list_name = 'Incoming';
module.exports = config;