Skip to content

Commit

Permalink
Filter broken action types
Browse files Browse the repository at this point in the history
  • Loading branch information
chidiwilliams committed Nov 7, 2020
1 parent 7e5234b commit 77a521f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ Google Chrome Extension that adds stories to your GitHub dashboard.

## TODO

- Story list view:

- Filter only supported actions.

- Single story view:

- Add emojis
7 changes: 6 additions & 1 deletion content-script.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,12 @@ const handle = setInterval(() => {
repoOrUserURL: getGithubURL(repoOrUserName),
themeID,
};
}); // filter out created a
})
.filter(
(story) =>
story.action !== 'created a' &&
!story.repoOrUserName.includes('repositories'),
);

const batchStories = [];
stories.forEach((story) => {
Expand Down

0 comments on commit 77a521f

Please sign in to comment.