-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
📖 add AMP emoji conventional changelogs #13037
Conversation
edf3868
to
d2ee37d
Compare
138dd63
to
dbfd54f
Compare
2b28e89
to
05d6cee
Compare
@cramforce should we add something like https://github.com/commitizen/cz-cli to automate this process? |
05d6cee
to
65a3bad
Compare
Should we add these to PR titles so they're in the squash commits? Or just for commits within a single PR? |
65a3bad
to
64642a0
Compare
@choumx looks like subject isn't supported. My original thinking was just sorta require this on subjects instead of all commits but it doesn't seem to work |
697c7eb
to
2356d67
Compare
@erwinmombay @choumx If this is enforced, it should be for PR (and squash commit) titles, since they show up in places like https://github.com/ampproject/amphtml/commits/master and https://travis-ci.org/ampproject/amphtml/builds. I'm not sure it's a good idea to enforce the use of emoji for individual commit messages, as that can get cumbersome very fast. |
@rsimha-amp titles/subject emoji is not supported in github (see subject above). but it's still useful during the squash. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did someone say bikeshed? :)
@@ -16,3 +16,20 @@ Bullet points like | |||
really help with making this more readable. | |||
|
|||
Fixes/Closes/Related-to #1 (enter issue number, except in rare cases where none exists). | |||
|
|||
It is also helpful to add an emoji before the commit message to identify the kind of work done on a single commit. See the following suggestions below: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the idea to select one emoji? Or all that are applicable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
well ideally you should be doing one thing with commits (of course i understand in practice this doesn't happen), so either way.
.github/PULL_REQUEST_TEMPLATE.md
Outdated
- :exclamation: - (exclamation) tests | ||
- :fire: - (fire) P0 | ||
- :rocket: - (rocket) performance improvements | ||
- :lipstick: - (lipstick) css/styling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there anything other than lipstick that says "style"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couldn't find any. open to other suggestions but other conventional changelog use either this or the diamond
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🖍️ (:crayon:
seems like a good choice)
.github/PULL_REQUEST_TEMPLATE.md
Outdated
- :fire: - (fire) P0 | ||
- :rocket: - (rocket) performance improvements | ||
- :lipstick: - (lipstick) css/styling | ||
- :wheelchair: - (wheelchair) accessability |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: accessibility
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed.
.github/PULL_REQUEST_TEMPLATE.md
Outdated
- :recycle: - (recycle) refactoring (like moving around code w/o any changes) | ||
- :building_construction: - (building_construction) infrastructure and tooling | ||
- :rewind: - (rewind) revert | ||
- :feelsgood: - (feelsgood) submitting a hacky PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a category of its own?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha no idea. this was just for fun
.github/PULL_REQUEST_TEMPLATE.md
Outdated
- :building_construction: - (building_construction) infrastructure and tooling | ||
- :rewind: - (rewind) revert | ||
- :feelsgood: - (feelsgood) submitting a hacky PR | ||
- :construction_worker: - (construction_worker) builds/travis related |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be clubbed together with infra and tooling, since they often go together?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with that.
.github/PULL_REQUEST_TEMPLATE.md
Outdated
- :rewind: - (rewind) revert | ||
- :feelsgood: - (feelsgood) submitting a hacky PR | ||
- :construction_worker: - (construction_worker) builds/travis related | ||
- :put_litter_in_its_place: - (put_litter_in_its_place) removing code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe say "code cleanup" instead of "removing code"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code cleanup is even more ambiguous though right? like a cleanup could be moving code around like refactoring etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough :)
Edit: This seems like a more useful list: https://gitmoji.carloscuesta.me/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚲🏚
.github/PULL_REQUEST_TEMPLATE.md
Outdated
- :bug: - (bug) bug fix | ||
- :sparkles: - (sparkles) new feature | ||
- :exclamation: - (exclamation) tests | ||
- :fire: - (fire) P0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 is used pretty often for good things, like my mix tape. Maybe 🚨 might be more appropriate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true. but fire
is easier to remember than rotating_light
in an actual P0 situation
.github/PULL_REQUEST_TEMPLATE.md
Outdated
- :fire: - (fire) P0 | ||
- :rocket: - (rocket) performance improvements | ||
- :lipstick: - (lipstick) css/styling | ||
- :wheelchair: - (wheelchair) accessability |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The wheelchair is good because :acc
autocompletes to it, but it'd be nice if there was something a little more inclusive of all people with accessibility needs rather than only those with physical disabilities.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any suggestions? I was thinking maybe of
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:users
/ :busts_in_silhouette:
) could be good? Maybe we could call the category usability and accessibility? I'm also ok with ♿, it's more a critique of GitHub that :accessibility only autosuggests just the wheelchair image.
.github/PULL_REQUEST_TEMPLATE.md
Outdated
- :rewind: - (rewind) revert | ||
- :feelsgood: - (feelsgood) submitting a hacky PR | ||
- :construction_worker: - (construction_worker) builds/travis related | ||
- :put_litter_in_its_place: - (put_litter_in_its_place) removing code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- 🌏 or 🌍 or 🌎 - (:earth_asia: or :earth_africa: or :earth_americas:) i18n
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good one!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:international autocompletes to one of these
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets go with the global_with_meridians?
2356d67
to
4ddd0fb
Compare
4ddd0fb
to
4e97621
Compare
So, …, it doesn't work in subjects but then shows up in squash commits? Maybe that is good enough and could be fixed by GH in the future. |
.github/PULL_REQUEST_TEMPLATE.md
Outdated
- :exclamation: - `:exclamation:` tests | ||
- :fire: - `:fire:` P0 | ||
- :rocket: - `:rocket:` performance improvements | ||
- :lipstick: - `:lipstick:` css/styling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🖍 please for gender neutrality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
None of these comments are required changes. :)
.github/PULL_REQUEST_TEMPLATE.md
Outdated
|
||
- :bug: - `:bug:` bug fix | ||
- :sparkles: - `:sparkles:` new feature | ||
- :exclamation: - `:exclamation:` tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to 🚲🏠 :)
❗️ looks like something that really needs attention (like a high priority issue); is there something more neutral we can use?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ✅ (:white_check_mark:
) might work here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
.github/PULL_REQUEST_TEMPLATE.md
Outdated
- :rocket: - `:rocket:` performance improvements | ||
- :lipstick: - `:lipstick:` css/styling | ||
- :wheelchair: - `:wheelchair:` accessibility | ||
- :globe_with_meridians: - `:globe_with_meridians:` i18n |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add (internationalization) after i18n for people who aren't familiar with the term
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
.github/PULL_REQUEST_TEMPLATE.md
Outdated
- :recycle: - `:recycle:` refactoring (like moving around code w/o any changes) | ||
- :building_construction: - `:building_construction:` infrastructure/tooling/builds/CI | ||
- :rewind: - `:rewind:` revert | ||
- :feelsgood: - `:feelsgood:` submitting a hacky PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I associate this term with a different meme so I'd prefer something more neutral if possible.
I don't have a great idea; maybe 🐭 for the game Mouse Trap? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haha honestly. I'll just remove it. I just added it for giggles 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is from Doom right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feelsgood is also commonly associated with a certain 🐸 https://www.google.com/search?q=feels+good+man
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(How) are we going to suggest / enforce this? No one reads our documentation after going through first time setup :)
.github/PULL_REQUEST_TEMPLATE.md
Outdated
|
||
- :bug: - `:bug:` bug fix | ||
- :sparkles: - `:sparkles:` new feature | ||
- :exclamation: - `:white_check_mark:` tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should read:
:white_check_mark: - `:white_check_mark:` tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
.github/PULL_REQUEST_TEMPLATE.md
Outdated
@@ -16,3 +16,19 @@ Bullet points like | |||
really help with making this more readable. | |||
|
|||
Fixes/Closes/Related-to #1 (enter issue number, except in rare cases where none exists). | |||
|
|||
It is also helpful to add an emoji before the commit message to identify the kind of work done on a single commit. See the following suggestions belowf |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/belowf/below:/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
.github/PULL_REQUEST_TEMPLATE.md
Outdated
- :recycle: - `:recycle:` refactoring (like moving around code w/o any changes) | ||
- :building_construction: - `:building_construction:` infrastructure/tooling/builds/CI | ||
- :rewind: - `:rewind:` revert | ||
- :put_litter_in_its_place: - `:put_litter_in_its_place:` deleting code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest capitalizing all the phrases, like:
Bug fix
New feature
Tests
etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
5d7c95c
to
ea4db14
Compare
@rsimha-amp i don't think we're looking to enforce this. but there are tools like https://github.com/commitizen/cz-cli and conventional-changelog that does |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gotcha. LGTM after a few more nits.
.github/PULL_REQUEST_TEMPLATE.md
Outdated
- :white_check_mark: - `:white_check_mark:` Tests | ||
- :fire: - `:fire:` P0 | ||
- :rocket: - `:rocket:` Performance improvements | ||
- :crayon: - `:crayon:` css/styling |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CSS / styling
(capitalization, spacing)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
.github/PULL_REQUEST_TEMPLATE.md
Outdated
- :rocket: - `:rocket:` Performance improvements | ||
- :crayon: - `:crayon:` css/styling | ||
- :wheelchair: - `:wheelchair:` Accessibility | ||
- :globe_with_meridians: - `:globe_with_meridians:` i18n (internationalization) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i18n (Internationalization)
(capitalization)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
.github/PULL_REQUEST_TEMPLATE.md
Outdated
- :globe_with_meridians: - `:globe_with_meridians:` i18n (internationalization) | ||
- :book: - `:book:` Documentation | ||
- :recycle: - `:recycle:` Refactoring (like moving around code w/o any changes) | ||
- :building_construction: - `:building_construction:` Infrastructure/Tooling/Builds/CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Infrastructure / Tooling / Builds / CI
(with spaces)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
ea4db14
to
3f914c4
Compare
3f914c4
to
1a65459
Compare
* 📖 add AMP emoji conventional changelogs * apply recommendations
* 📖 add AMP emoji conventional changelogs * apply recommendations
* 📖 add AMP emoji conventional changelogs * apply recommendations
added conventional changelog emoji suggestions for PR commits.
feel free to bikeshed.