Respec: Teach release script about "enhancement"

Created on 10 Dec 2019  Β·  14Comments  Β·  Source: w3c/respec

The release script doesn't know how to treat commits prefixed with "enhancement"... they should be treated the same as "feat". The kids are also using "enh()" as a shorthand, I hear. We might want to support that too because "enhancement" eats like half a commit message.

Most helpful comment

(the release script has no tests ... because that's how we roll πŸ”₯πŸ¦Ήβ€β™€οΈπŸ”₯ )

All 14 comments

@janiceshiu would you be ok to take this one? Should be a quick one. We can probably just use the same emoji that we use for "feat".

(the release script has no tests ... because that's how we roll πŸ”₯πŸ¦Ήβ€β™€οΈπŸ”₯ )

The kids are also using "enh()" as a shorthand, I hear.

:rofl:

We might want to support that too because "enhancement" eats like half a commit message.

:+1:

Or just enh, because we don't support longhands e.g. accessibility, documentations, and feature 😁

Whatever is most natural. So long as we all agree on what to use and we are not overly restrictive.

BTW, what kind of enhancement are we talking about? Can't we use feat, fix and refactor there?

That's a great question... because it makes me think we are solving the wrong problem. Maybe what we actually want is a GitHub action that checks that every pull request starts with feat, fix, refactor, or one of our known types.

Since we're discussing naming... is there a guide somewhere that contributors - especially new ones - can refer to when naming their PRs and commits?

back when i first contributed to respec, i read the developer's guide and didn't see anything about the format. I ended up guessing that the pattern is something along the lines of $TYPE(path/to/changed/file): $SUMMARY_OF_PR by looking at recent commits to master. I named my recent PR by guessing and imitating the same pattern.

Also - now that I look at recent commits again - some commits with the filename have the filename's extension, and others don't. If this is important, perhaps we could standardise it and make it clear.

We are generally following AngularJS conventions. This should be added to the guide too πŸ‘€

The developer's guide doesn't really seem to be a contribution guide. Should we also add a GitHub pull request template too?

We are generally following AngularJS conventions. This should be added to the guide too πŸ‘€

I did not realise this. Yes - a guide would be good. We do allow more types than the linked doc though. For example, we have l10n and breaking change. Thus, perhaps we should write a respec-specific guide? We could always link to the original inspiration.


The developer's guide doesn't really seem to be a contribution guide. Should we also add a GitHub pull request template too?

This would be good, yes. To start, we could include something like

Fixes #issue_number 

[] All tests pass

Regarding the contribution guide - things such as a reminder to run prettier on one's code would also help.

^ the suggestions above are based off my experience as a new contributor to respec - these are things I didn't know and figured out by trial and error or by someone letting me know.

Ok, let’s start with adding the labels to the docs and saying we roughly follow Angular. We should add a CONTRIBUTING.md file too, with the labels and a link to the developer guide.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

greenkeeper[bot] picture greenkeeper[bot]  Β·  4Comments

marcoscaceres picture marcoscaceres  Β·  3Comments

andrea-perego picture andrea-perego  Β·  3Comments

saschanaz picture saschanaz  Β·  5Comments

saschanaz picture saschanaz  Β·  6Comments