Skip to content

Renamed labels breaks the bot #20

Closed

Description

@kellertk

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.

Activity

  1. added a commit that references this issue on Apr 24, 2020
    fdc9630
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions