Skip to content

Commit

Permalink
chore: filter out anything by bots
Browse files Browse the repository at this point in the history
Signed-off-by: blam <ben@blam.sh>
  • Loading branch information
benjdlambert committed Jan 20, 2022
1 parent 231846b commit b8b5945
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/goalie-labels.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ const getRepoEvents = async ({ github, context, pull_number }) => {
})),
];

return events.sort((a, b) => new Date(a.updated_at) - new Date(b.updated_at));
return events
.sort((a, b) => new Date(a.updated_at) - new Date(b.updated_at))
.filter(({ user }) => !user.login.includes('[bot]'));
};

module.exports = async ({ github, context, core }) => {
Expand Down

0 comments on commit b8b5945

Please sign in to comment.