Skip to content

labels.json is always re-downloaded even if it's the same #133

@einsteinx2

Description

@einsteinx2

I noticed that the script always overwrites the labels/labels.json file for each repo even if the file is the same. This may cause tools like rsync to re-sync those files if you have a script that clones your backups to another machine for example. It also causes a bunch of unnecessary disk writes which always have some--if small--chance of causing data corruption.

Rather than just overwriting these files, the script should compare the file on disk with the file that will be written and only write a new file if the labels have changed.

I'll make and test this change then submit a PR for this soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions