1.6.0 • Published 9 years ago

hubot-url-title v1.6.0

Weekly downloads
3
License
BSD-2-Clause
Repository
github
Last release
9 years ago

hubot-url-title

Build Status npm version npm downloads Dependency Status devDependency Status

Returns the title when a link is posted.

Installation

Install the module:

npm install --save hubot-url-title

(this will update your package.json).

Then add hubot-url-title to external-scripts.json:

["hubot-url-title"]

Configuration

Regular expression used to exclude URLs

HUBOT_URL_TITLE_IGNORE_URLS

If you use HipChat, it's useful to ignore sites already supported by HipChat:

HUBOT_URL_TITLE_IGNORE_URLS="github.com|twitter.com|imgur.com|youtube.com|spotify.com|instagram.com"

Comma-separated list of users to ignore

HUBOT_URL_TITLE_IGNORE_USERS

Set the Accept-Language header

HUBOT_URL_TITLE_ACCEPT_LANGUAGE="sv-SE"

If present, uses this value in the HTTP Accept-Language header, when fetching the title.

Maximum length of title to display

HUBOT_URL_TITLE_MAX_LEN="50"

If present, uses this value to limit the length of the title displayed in chat. Default: no limit.

Development

Install dependencies

npm install

Run tests

npm test

Release workflow

git ci -m 'new cool feature'
git ci -m 'new nice feature'

npm version [<newversion> | major | minor | patch]

git push
git push --tags

npm publish .

Update the changelog:

github_changelog_generator
1.6.0

9 years ago

1.5.0

9 years ago

1.4.0

9 years ago

1.3.0

9 years ago

1.2.2

10 years ago

1.2.1

10 years ago

1.2.0

12 years ago

1.1.0

12 years ago

1.0.0

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago