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

Add Repository.rename_branch method #2089

Merged
merged 1 commit into from Oct 24, 2021

Conversation

s-t-e-v-e-n-k
Copy link
Collaborator

The GitHub API exposes an endpoint to rename a branch, so we should
support calling it. Sadly, there is not enough information to add
that method to the Branch class, so expose it in the Repository object.

Fixes #1901

The GitHub API exposes an endpoint to rename a branch, so we should
support calling it. Sadly, there is not enough information to add
that method to the Branch class, so expose it in the Repository object.

Fixes PyGithub#1901
@codecov-commenter
Copy link

codecov-commenter commented Oct 23, 2021

Codecov Report

Merging #2089 (191f988) into master (93b92cd) will increase coverage by 0.04%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2089      +/-   ##
==========================================
+ Coverage   98.87%   98.92%   +0.04%     
==========================================
  Files         108      108              
  Lines       11109    11118       +9     
==========================================
+ Hits        10984    10998      +14     
+ Misses        125      120       -5     
Impacted Files Coverage Δ
github/Repository.py 97.42% <100.00%> (+0.01%) ⬆️
github/MainClass.py 96.94% <0.00%> (+1.69%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 93b92cd...191f988. Read the comment docs.

@s-t-e-v-e-n-k s-t-e-v-e-n-k merged commit 6452ddf into PyGithub:master Oct 24, 2021
simkimsia added a commit to simkimsia/PyGithub that referenced this pull request Oct 24, 2021
commit 6452ddf
Author: Steve Kowalik <steven@wedontsleep.org>
Date:   Sun Oct 24 15:21:31 2021 +1100

    Add Repository.rename_branch method (PyGithub#2089)

    The GitHub API exposes an endpoint to rename a branch, so we should
    support calling it. Sadly, there is not enough information to add
    that method to the Branch class, so expose it in the Repository object.

    Fixes PyGithub#1901

commit c8a945b
Author: Claire Johns <42869556+johnsc1@users.noreply.github.com>
Date:   Sun Oct 24 00:15:31 2021 -0400

    Add function to delete pending reviews on a pull request (PyGithub#1897)

    Add a delete method to PullRequestReview to allow dismissing them.

    Fixes PyGithub#1856

    Co-authored-by: bagashvilit <bagashvilit@allegheny.edu>
    Co-authored-by: WonjoonC <chos@allegheny.edu>

commit f1faf94
Author: Steve Kowalik <steven@wedontsleep.org>
Date:   Fri Oct 22 08:39:31 2021 +1100

    Cover all code paths in search_commits (PyGithub#2087)

    The search_commits method was only very lightly tested, meaning over
    half of it was not covered. Write another test case, covering all code
    paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Branch rename endpoint
2 participants