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

Generate CHANGELOG.md #521

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

r0mflip
Copy link
Contributor

@r0mflip r0mflip commented May 23, 2020

Based on #517

I don't think this might be the expected result, but It's something that we can get from GitHub API

Used https://github.com/r0mflip/logtag to generate changelog.

@Raynos
Copy link
Collaborator

Raynos commented May 23, 2020

Can you add an option to filter out tags that are just version numbers with no information.

@r0mflip
Copy link
Contributor Author

r0mflip commented May 23, 2020

Can be done programatically. Will remove all "empty" tags then.

@Raynos
Copy link
Collaborator

Raynos commented May 23, 2020

Can you add the command you ran to the package.json or readme as documentation ?

@r0mflip
Copy link
Contributor Author

r0mflip commented May 23, 2020

I've updated the command in readme. If to be added as an npm script should we use prepublishOnly?

CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
readme.markdown Outdated
Comment on lines 410 to 414
# generating changelog

```sh
npx @r0mflip/logtag -r substack/tape -o CHANGELOG.md -t <github-token>
```
Copy link
Collaborator

Choose a reason for hiding this comment

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

i definitely think this should be an npm run-script, and the dev dep added.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will move it to npm scripts and add as a devdep, but how do we manage the token in NPM scripts? Iam out of ideas how to do it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We'd just assume it's an available environment variable, and error out if it's not present.

CHANGELOG.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

hm, there's a lot of releases missing between v2.2.1 and v4.6.0. looks pretty good overall tho

Can PR/issue references become explicitly linked as well?



## [v5.0.0-next.5](https://github.com/substack/tape/releases/tag/v5.0.0-next.5)
Jordan Harband released this on 2020-03-02
Copy link
Collaborator

Choose a reason for hiding this comment

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

is there a way to link to the github profile, or better npm profile, and be a bit more concise?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can point to an npm release like https://www.npmjs.com/package/tape/v/4.13.0 but might become npm specific. Also GitHub tags doesn't seem to correspond to exact semver versions on npm. Tags like v5.0.0 would be tape/v/5.0.0 on npm.

On a side note I was wondering that GitHub might merge all features of npm into itself and make the release of npm and GitHub into a single thing.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I doubt it; npm is intended to be kept separate.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Link to npm profile of author? or package?

Concise as in?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'd assume the profile of the author?

By "concise" i mean not a whole sentence; maybe:

## [v5.0.0-next.5](https://github.com/substack/tape/releases/tag/v5.0.0-next.5)
<caption>by [ljharb](https://npmjs.com/~ljharb)</caption>

or something (not sure how caption renders, maybe <sub>)

@ljharb
Copy link
Collaborator

ljharb commented Jan 4, 2021

@r0mflip i've rebased this, and would still like to see it land. Have you had time to make some of the changes we discussed above?

also, it'd be nice if the github token was read from the env when present (GITHUB_TOKEN or GH_TOKEN), and if -r was optional (since it can read from package.json)

@codecov-io
Copy link

codecov-io commented Jan 4, 2021

Codecov Report

Merging #521 (afc4010) into master (8e60dcb) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #521   +/-   ##
=======================================
  Coverage   74.15%   74.15%           
=======================================
  Files          19       19           
  Lines         766      766           
  Branches      146      146           
=======================================
  Hits          568      568           
  Misses        198      198           

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 8e60dcb...afc4010. Read the comment docs.

@r0mflip
Copy link
Contributor Author

r0mflip commented Jan 5, 2021

Hi @ljharb. Apologies for all the delay. Got a day job and was unable to work on OSS, and worse my personal laptop died. Inquiring on my end to see if my corp laptop can be used for this, or maybe I'll grab my brother's machine.

Will try to get it done during weekend.

@ljharb
Copy link
Collaborator

ljharb commented Jan 5, 2021

No worries, thanks :-) keep me posted.

@ljharb ljharb marked this pull request as draft January 19, 2021 17:07
@r0mflip
Copy link
Contributor Author

r0mflip commented Jun 22, 2021

Hi Jordan, might not be able to work on this. Don't have enough bandwidth to work on this :(

@ljharb
Copy link
Collaborator

ljharb commented Jun 22, 2021

@r0mflip thanks for following up; we'll leave this open in case someone else wants to pick it up (if someone does, please post a link to a branch and i'll pull it into this PR)

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