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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: detect default branch #468

Merged
merged 4 commits into from Jun 15, 2020
Merged

feat: detect default branch #468

merged 4 commits into from Jun 15, 2020

Conversation

bcoe
Copy link
Contributor

@bcoe bcoe commented Jun 14, 2020

Now programmatically detects default branch, making it easier to use an alternative.

This also should make it easier to support multiple release branches.

@feywind I expect this overlaps a bit with your work, but might make it a bit easier to see that work over the finish line 馃憣

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 14, 2020
@codecov
Copy link

codecov bot commented Jun 14, 2020

Codecov Report

Merging #468 into master will increase coverage by 0.05%.
The diff coverage is 91.30%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #468      +/-   ##
==========================================
+ Coverage   79.74%   79.79%   +0.05%     
==========================================
  Files          40       40              
  Lines        4640     4657      +17     
  Branches      374      377       +3     
==========================================
+ Hits         3700     3716      +16     
- Misses        939      940       +1     
  Partials        1        1              
Impacted Files Coverage 螖
src/github.ts 76.09% <88.88%> (+0.27%) 猬嗭笍
src/graphql-to-commits.ts 90.35% <100.00%> (-0.10%) 猬囷笍
src/release-pr.ts 89.45% <100.00%> (+0.16%) 猬嗭笍

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 bec98a3...2646183. Read the comment docs.

@@ -124,7 +122,7 @@ async function graphqlToCommit(
let prEdge: PREdge = commitEdge.node.associatedPullRequests.edges[0];

// if the commit.sha and mergeCommit.oid do not match, assume that this
// was a push to master and drop the commit.
// was a push directl to the default branch.
Copy link
Contributor

Choose a reason for hiding this comment

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

typo in the comment

@bcoe bcoe merged commit 301a08a into master Jun 15, 2020
@bcoe bcoe deleted the detect-default-branch branch June 15, 2020 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants