Skip to content

[Ready for review] Add DeleteBranchOnMerge option for repositories#2268

Merged
shiftkey merged 1 commit intooctokit:mainfrom
samcackett:add-delete-branch-on-merge
Feb 13, 2021
Merged

[Ready for review] Add DeleteBranchOnMerge option for repositories#2268
shiftkey merged 1 commit intooctokit:mainfrom
samcackett:add-delete-branch-on-merge

Conversation

@samcackett
Copy link
Contributor

Hello, hopefully this is a simple change, I just wanted to add the DeleteBranchOnMergeoption when creating or updating repositories. This is supported by the Github v3 API.

I couldn't find any open issues for it to link to (should I create one?).

I've added all the tests I think I need to, but I haven't run the integration tests (I assume you have some CI setup to run these but if not let me know and I'll go through the pain of setting them up).

This is my first time contributing so please tell me if I've done anything incorrectly. I did read the contributions guide but I didn't see the point in adding a checklist as this is such a simple change.

@codecov
Copy link

codecov bot commented Nov 5, 2020

Codecov Report

Merging #2268 (9918bb1) into main (4ca8ea0) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #2268      +/-   ##
==========================================
- Coverage   65.97%   65.96%   -0.02%     
==========================================
  Files         553      553              
  Lines       14435    14439       +4     
  Branches      844      844              
==========================================
  Hits         9524     9524              
- Misses       4752     4756       +4     
  Partials      159      159              
Impacted Files Coverage Δ
Octokit/Models/Request/NewRepository.cs 29.41% <0.00%> (-1.84%) ⬇️
Octokit/Models/Request/RepositoryUpdate.cs 61.11% <0.00%> (-3.60%) ⬇️
Octokit/Models/Response/Repository.cs 5.55% <0.00%> (-0.13%) ⬇️

@samcackett
Copy link
Contributor Author

@shiftkey Hi, sorry to tag you directly, I think you're a maintainer of this repo looking at previous PR's / commits though.

I've had this PR opened for a month and it's a tiny change, would you mind reviewing it, or pointing me in the right direction to get it merged?

@shiftkey shiftkey force-pushed the add-delete-branch-on-merge branch from 740fe53 to b881881 Compare February 13, 2021 20:20
Copy link
Member

@shiftkey shiftkey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @samcackett!

@shiftkey shiftkey merged commit 46787d2 into octokit:main Feb 13, 2021
@shiftkey
Copy link
Member

shiftkey commented Feb 13, 2021

release_notes: Added DeleteBranchOnMerge property to repository creation API, also included on response model

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Something isn't working as documented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants