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

fix changelog to handle PR's that have a merge coming from master #2625

Merged
merged 1 commit into from
Mar 17, 2016

Conversation

erwinmombay
Copy link
Member

@mkhatib can you take a look?

see sample of this in #2589

@dvoytenko
Copy link
Contributor

LGTM

@erwinmombay erwinmombay assigned dvoytenko and unassigned mkhatib Mar 17, 2016
// PR's that have merged from some master as it is usually a merge
// from our master making it cyclical. (just screws up the PR api requests
// to github)
return commit.indexOf('Merge pull') == 0 && !(/\/master$/.test(commit));
Copy link
Contributor

Choose a reason for hiding this comment

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

I've seen PRs sending merge requests from their own master (#2467, #2519). Anyway you can also check the remote or the org name for a merge? /ampproject\/master$/?

Copy link
Member Author

Choose a reason for hiding this comment

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

done.

Copy link
Member Author

Choose a reason for hiding this comment

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

actually ive removed this code and changed the git command to:

git log canary...some-tag --merges --first-parent

which will prevent those commits from showing up in the commit list i get

@erwinmombay erwinmombay force-pushed the fix-cyc-changelog branch 2 times, most recently from b7e90a7 to 7aaab52 Compare March 17, 2016 22:49
@mkhatib
Copy link
Contributor

mkhatib commented Mar 17, 2016

LGTM

erwinmombay added a commit that referenced this pull request Mar 17, 2016
fix changelog to handle PR's that have a merge coming from master
@erwinmombay erwinmombay merged commit 54db402 into ampproject:master Mar 17, 2016
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.

3 participants