Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed labels breaks the bot #20

Closed
kellertk opened this issue Apr 24, 2020 · 0 comments · Fixed by #21 or #245
Closed

Renamed labels breaks the bot #20

kellertk opened this issue Apr 24, 2020 · 0 comments · Fixed by #21 or #245

Comments

@kellertk
Copy link
Member

When you request an issue from the GitHub API, the labels array contains the current label names, but when you request an issue's timeline, the timeline entries are the names of the labels as they were when the labels were applied. This means that labels that got renamed will show up as different names in the issue timeline.

This breaks the bot at

return Date.parse(searchLabelEvents[0].created_at);
because that array is empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant