Skip to content

Commit

Permalink
Version 2.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardakilic committed Aug 22, 2022
1 parent ee53173 commit 7f31832
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 11 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [2.1.4] - 2021-01-07
### Fixed
- [#51](https://github.com/Ardakilic/alerthub/issues/51) should be fixed.
- Dependencies updated and possible security vulnerability removed.

## [2.1.3] - 2021-02-01
### Fixed
- This Version fixes [#21](https://github.com/Ardakilic/alerthub/issues/21), thanks @nightah !

## [2.1.2] - 2021-01-07
### Fixed
- Dependencies updated and possible security vulnerability removed.

## [2.1.1] - 2020-05-17
### Fixed
- A typo was fixed on the check to prepend the release name for the notifications
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Arda Kılıçdağı
Copyright (c) 2022 Arda Kılıçdağı

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
6 changes: 6 additions & 0 deletions UPGRADING.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Upgrading Guide

## 2.1.0 to 2.2.0
- Stop the aplication
- Get the updates by pulling changes
- Run `npm install` to install new dependencies.
- Re-start the application.

## 2.0.0 to 2.1.0
- Stop the aplication
- Copy the `githubToken` key from example to your current config
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "alerthub",
"version": "2.1.0",
"version": "2.1.1",
"description": "A tool to send notifications when an update to a repository is released",
"main": "./src/index.js",
"scripts": {
Expand Down
24 changes: 16 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,22 @@ Object.keys(config.repositories.github).forEach((type) => {
config.repositories.github[type][repository].forEach((subType) => {
if (subType === '*') {
feeder.add({
url: alertHubUtils.generateURLForTheFeed({
resource: 'github', repository, type,
},
config),
url: alertHubUtils.generateURLForTheFeed(
{
resource: 'github', repository, type,
},
config
),
refresh: config.interval,
});
} else {
feeder.add({
url: alertHubUtils.generateURLForTheFeed({
resource: 'github', repository, type, subType,
},
config),
url: alertHubUtils.generateURLForTheFeed(
{
resource: 'github', repository, type, subType,
},
config
),
refresh: config.interval,
});
}
Expand Down Expand Up @@ -127,6 +131,10 @@ feeder.on('new-item', async (item) => {
});
// Notification part END

// Handling errors on feed emitter
feeder.on('error', console.error);
// Error handling, currently done to console

// Let's handle the aggregated RSS part
if (config.rss.enabled === true) {
http.createServer((_req, res) => {
Expand Down
3 changes: 2 additions & 1 deletion src/utils/pushBullet.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ async function sendPushBulletNotification(config, feedData) {
const pusher = new PushBullet(config.notifications.pushbullet.accessToken);
await pusher.link(
{},
feedData.title, feedData.link,
feedData.title,
feedData.link,
striptags(feedData.description),
(error, response) => {
if (error) {
Expand Down

0 comments on commit 7f31832

Please sign in to comment.