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

Auto-generate a label of new demos since last minor version. #6389

Merged
merged 5 commits into from
Mar 29, 2018

Conversation

mramato
Copy link
Contributor

@mramato mramato commented Mar 29, 2018

If a new demo has been added since the latest minor version (i.e. 1.43.x will include everything from 1.42.x as new) add it to a New in 1.x label. Make this label always be second in the list after Showcases.

Also got rid of generated date property, since it wasn't used.

Fixes #6384

If a new demo has been added since the latest minor version (i.e. 1.43.x
will include everything from 1.42.x as new) add it to a `New in 1.x` label.
Make this label always be second in the list after Showcases.
@mramato mramato requested a review from emackey March 29, 2018 02:09
@cesium-concierge
Copy link

Signed CLA is on file.

@mramato, thanks for the pull request! Maintainers, we have a signed CLA from @mramato, so you can review this at any time.

⚠️ I noticed that CHANGES.md has not been updated. If this change updates the public API in any way, fixes a bug, or makes any non-trivial update, please add a bullet point to CHANGES.md and comment on this pull request so we know it was updated. For more info, see the Pull Request Guidelines.


I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.

🌍 🌎 🌏

mramato added 2 commits March 28, 2018 22:13
On travis, the version is set something like
'1.43.0-branch-name-travisBuildNumber'.  We only need the major.minor
version and we need to decrement it to get the previous release.
gulpfile.js Outdated

// Get an array of demos that were added since the last release.
// This includes newly staged local demos as well.
var newDemos = child_process.execSync('git diff --name-only --diff-filter=A ' + tagVersion + ' Apps/Sandcastle/gallery/*.html').toString().trim().split('\n');
Copy link
Contributor

Choose a reason for hiding this comment

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

Does anyone ever need to build Cesium outside of the git repo, like from a zip file? What happens if this fails?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will throw if it fails (failing the build). While the answer has always been nebulous, we don't really support building out of the zip file. However, since it was trivial I changed it to catch the error and print out a warning instead of failing. Should be good to go.

@emackey
Copy link
Contributor

emackey commented Mar 29, 2018

This is pretty cool. 👍 Just the one comment, I think we should be fault-tolerant when attempting to run git commands without knowing if we're in the repo or if git is even installed.

mramato added 2 commits March 28, 2018 23:09
Cesium is not defined in the built version of Sandcastle.
Copy link
Contributor

@emackey emackey left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@emackey emackey merged commit e247462 into master Mar 29, 2018
@emackey emackey deleted the new-sandcastle-demos branch March 29, 2018 15:47
@pjcozzi
Copy link
Contributor

pjcozzi commented Mar 29, 2018

Very cool, thanks!

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.

4 participants