Browse Source

👽 Fix action success detection due to GitHub website update

master
Tiana Lemesle 3 months ago
parent
commit
dfbfc38fb7
2 changed files with 4 additions and 3 deletions
  1. +2
    -1
      GitHubActionsNotifications/README.md
  2. +2
    -2
      GitHubActionsNotifications/index.js

+ 2
- 1
GitHubActionsNotifications/README.md View File

@ -11,4 +11,5 @@ Enable desktop notifications for GitHub Actions updates.
## Changelog
* `1.0.0` (2020-12-10) • [Initial release](https://greasyfork.org/fr/scripts/418465-github-actions-notifications?version=879143)
* `1.0.1` (2021-01-21) • [Fix action failure detection due to GitHub website update](https://greasyfork.org/fr/scripts/418465-github-actions-notifications?version=893004)
* `1.0.1` (2021-01-21) • [Fix action failure detection due to GitHub website update](https://greasyfork.org/fr/scripts/418465-github-actions-notifications?version=893004)
* `1.0.2` • [Fix action success detection due to GitHub website update](https://greasyfork.org/fr/scripts/418465-github-actions-notifications?version=893008)

+ 2
- 2
GitHubActionsNotifications/index.js View File

@ -3,7 +3,7 @@
// @name GitHub Actions notifications
// @description Enable desktop notifications for GitHub Actions updates
// @grant GM_notification
// @version 1.0.1
// @version 1.0.2
// @author KaKi87
// @license GPL-3.0-or-later
// @namespace https://git.kaki87.net/KaKi87/userscripts/src/branch/master/GitHubActionsNotifications
@ -17,7 +17,7 @@ const
const
svgClassList = el.querySelector('svg').classList,
titleLink = el.querySelector('a');
if(svgClassList.contains('octicon-check'))
if(svgClassList.contains('octicon-check-circle-fill'))
status = 'success';
if(svgClassList.contains('octicon-x-circle-fill'))
status = 'failure';


Loading…
Cancel
Save