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

Use commit SHA to lookup commit info in github_repository_file resource #644

Merged
merged 2 commits into from
Jan 7, 2021
Merged

Use commit SHA to lookup commit info in github_repository_file resource #644

merged 2 commits into from
Jan 7, 2021

Commits on Dec 28, 2020

  1. Fix references to "master"

    Signed-off-by: Stephen Hoekstra <shoekstra@schubergphilis.com>
    shoekstra committed Dec 28, 2020
    Configuration menu
    Copy the full SHA
    a8914f1 View commit details
    Browse the repository at this point in the history

Commits on Dec 30, 2020

  1. Use commit SHA to lookup commit info

    Currently the provider loops through commits in a repo until it finds the most recent commit containing the managed file. This is inefficient and could lead to you being rate limited if managing a few files that were updated a long time ago.
    
    This commit fixes that by storing the commit SHA when updating the file and using that SHA to lookup the commit info instead of looping through all commits.
    
    Signed-off-by: Stephen Hoekstra <shoekstra@schubergphilis.com>
    shoekstra committed Dec 30, 2020
    Configuration menu
    Copy the full SHA
    6ed4230 View commit details
    Browse the repository at this point in the history