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

Use custom changelog generator #3415

Merged
merged 17 commits into from
Jul 17, 2020
Merged

Use custom changelog generator #3415

merged 17 commits into from
Jul 17, 2020

Conversation

Feiyang1
Copy link
Member

@Feiyang1 Feiyang1 commented Jul 16, 2020

It differs from @changesets/changelog-github in 2 ways

  • It removes the THANKS part
  • It adds a link to issue if the PR fixes an issue. It will not add the link If you have manually added the issue link in the changeset

An example entry generated by the custom generator

@changeset-bot
Copy link

changeset-bot bot commented Jul 16, 2020

💥 No Changeset

Latest commit: d305d52

Merging this PR will not cause any packages to be released. If these changes should not cause updates to packages in this repo, this is fine 🙂

If these changes should be published to npm, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 16, 2020

Binary Size Report

Affected SDKs

  • @firebase/firestore/exp

    Type Base (b614546) Head (414c8e1) Diff
    main 400 kB 400 kB +62 B (+0.0%)
  • @firebase/firestore/lite

    Type Base (b614546) Head (414c8e1) Diff
    main 124 kB 124 kB +62 B (+0.0%)

Test Logs

Copy link
Contributor

@schmidt-sebastian schmidt-sebastian left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -0,0 +1,3 @@
# @firebase/changelog-generator

It's works as plugin for @changesets/cli to generate changelog entries(via running `changeset version`).
Copy link
Contributor

Choose a reason for hiding this comment

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

s/It's/It or "This module"

return '';
}
const issueNumber = match[3];
return `Fixed [issue #${issueNumber}](https://github.com/firebase/firebase-js-sdk/issues/${issueNumber})`;
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we do something like (fixes [#${issueNumber}])? It's a bit shorter and conveys the same information.

Copy link
Member Author

Choose a reason for hiding this comment

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

I did that initially, but thought people may confuse the PR number with the issue number and adding string issue makes it a bit clearer.

Otherwise the generated line would look like this #3224 fixes #3158. Do you find it clear or confusing?

Copy link
Contributor

Choose a reason for hiding this comment

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

I am very accustomed to this style, so it is not confusing to me. I do think the parenthesis might help.

We could also add it to the end:

9c409ea74 #3224 - [fix] Updated the TypeScript types for all APIs using Observers to allow callback omission (issue #3158).

I leave this up to your capable hands :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, I didn't see the parenthesis. It certainly helps. Will adopt your suggestion.
I don't like putting it in the end because it's less discoverable, especially when the description is long.

@schmidt-sebastian schmidt-sebastian removed their assignment Jul 16, 2020
@Feiyang1 Feiyang1 merged commit 6d11f7f into master Jul 17, 2020
@Feiyang1 Feiyang1 deleted the fei-firebase-changelog branch July 17, 2020 00:53
@firebase firebase locked and limited conversation to collaborators Aug 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Database SDK tries to access credential even when FIREBASE_DATABASE_EMULATOR_HOST is set
4 participants