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

Create repo from template #2090

Merged
merged 33 commits into from Oct 13, 2022
Merged

Conversation

simkimsia
Copy link
Contributor

@simkimsia simkimsia commented Oct 24, 2021

Based on the comments made in this review #2088 (review)

i made extra effort to redo the PR so that all the lint related changes are reverted.

This is to solve #1395 and #1974

With the last commit being 8b638c5

And this is a continuation of the PR in #2012 and #2088

@harismuha123 I have tried to resolve merge conflicts and hope that @s-t-e-v-e-n-k can approve this PR.

isouza-daitan and others added 30 commits February 11, 2020 09:57
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.
@codecov-commenter
Copy link

codecov-commenter commented Nov 2, 2021

Codecov Report

Merging #2090 (8531073) into master (6452ddf) will decrease coverage by 0.03%.
The diff coverage is 94.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2090      +/-   ##
==========================================
- Coverage   98.92%   98.88%   -0.04%     
==========================================
  Files         108      108              
  Lines       11120    11170      +50     
==========================================
+ Hits        11000    11046      +46     
- Misses        120      124       +4     
Impacted Files Coverage Δ
github/Repository.py 97.20% <84.61%> (-0.22%) ⬇️
github/AuthenticatedUser.py 99.04% <100.00%> (+0.01%) ⬆️
github/Consts.py 100.00% <100.00%> (ø)
github/Organization.py 98.82% <100.00%> (+0.03%) ⬆️

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 6452ddf...8531073. Read the comment docs.

@simkimsia
Copy link
Contributor Author

Sorry @s-t-e-v-e-n-k what's the blocker for merging this? Anything I can do to make this ok?

@simkimsia
Copy link
Contributor Author

Hi @s-t-e-v-e-n-k, what's the blocker for merging this? Anything I can do to make this ok?

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

@simkimsia I'm sorry, life has gotten in the way of my free time -- lint now fails, tox -elint will make the appropriate changes, which you should review and commit. Then if CI is happy, we can merge.

@simkimsia
Copy link
Contributor Author

will look at this later. thank you 🙏

♻Rewrite to make things conform closer to main branch

♻ Fix f string

♻ Change to f string

And also switch to the accept header recommended in https://docs.github.com/en/rest/reference/repos#create-a-repository-using-a-template

♻ Move away from `application/vnd.github.baptiste-preview+json`

✅Make tests pass

✅Fix tests

🎨 FIX: the formatting by running `tox -elint`
@simkimsia
Copy link
Contributor Author

@s-t-e-v-e-n-k fixed using tox -elint thank you

@simkimsia
Copy link
Contributor Author

@s-t-e-v-e-n-k any changes i need to do?

@simkimsia
Copy link
Contributor Author

@s-t-e-v-e-n-k sorry i have to followup. I will follow up in jan 15th next time.

@simkimsia
Copy link
Contributor Author

@s-t-e-v-e-n-k happy new year. just following up on this. Any changes i need to make?

@dzierzanowski
Copy link

This is a much needed change, the solution looks solid and simple. Can we get it merged?

Also, I suggest closing the other, now stale PR tackling the same problem: #1395

@harismuha123
Copy link

@s-t-e-v-e-n-k hello, any news on when this might get merged in?

@simkimsia
Copy link
Contributor Author

I'm formally giving up. If anyone wants to carry on, by all means. No hard feelings. Thank you

@jjacobelli
Copy link

@s-t-e-v-e-n-k Hey, do you think we are ready to merge this? Thank you!

@StepanKuksenko
Copy link

really want this feature...

@surgiie
Copy link

surgiie commented Jul 22, 2022

@s-t-e-v-e-n-k Do we plan to merge this? would really like this feature.

@sre-guru
Copy link

sre-guru commented Aug 4, 2022

Also really need this feature. Can we have this merged please? @s-t-e-v-e-n-k . I see this would unblock not just me, but a lot of others. Also the PR looks pretty solid - any reason why we cannot merge this? Please take a look.
Thanks

@sre-guru
Copy link

sre-guru commented Aug 9, 2022

@adamtheturtle @jzelinskie @nhomar @jacquev6 @sfdye @s-t-e-v-e-n-k
Can someone please approve this. Happy to make any correction to the original PR if author is no longer available/interested.

@sfdye
Copy link
Member

sfdye commented Oct 13, 2022

Sorry folks for the long wait, I am merging this now. But the new release will probably have to wait until I am back from vacation.

@sfdye sfdye merged commit b50283a into PyGithub:master Oct 13, 2022
@sfdye
Copy link
Member

sfdye commented Oct 13, 2022

Just published v1.56

@simkimsia
Copy link
Contributor Author

Thank you @sfdye

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.

None yet