Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Create shared .gitconfig and .gitmessage with commit message template - #37951

#37951
Closed
IgorMinar wants to merge 11 commits into
angular:masterangular/angular:masterfrom
IgorMinar:build/shared-.gitconfigIgorMinar/angular:build/shared-.gitconfigCopy head branch name to clipboard
Closed

Create shared .gitconfig and .gitmessage with commit message template#37951
IgorMinar wants to merge 11 commits into
angular:masterangular/angular:masterfrom
IgorMinar:build/shared-.gitconfigIgorMinar/angular:build/shared-.gitconfigCopy head branch name to clipboard

Conversation

@IgorMinar

@IgorMinar IgorMinar commented Jul 7, 2020

Copy link
Copy Markdown
Contributor

See individual commits for info.

@IgorMinar IgorMinar added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Jul 7, 2020
@IgorMinar
IgorMinar force-pushed the build/shared-.gitconfig branch 3 times, most recently from 2fb533b to 3fafcc6 Compare July 7, 2020 02:13
Comment thread .gitmessage Outdated
Comment thread .gitmessage Outdated
Comment thread .gitmessage Outdated
Comment thread .gitconfig Outdated

@pkozlowski-opensource pkozlowski-opensource left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@IgorMinar I like the idea a lot! Agree with the @petebacondarwin remarks, though, so adding the cleanup label.

@pkozlowski-opensource pkozlowski-opensource added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Jul 7, 2020

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I love the idea (although I couldn't get it to work for me - it may be a Windows thing 😅 Typical PEBCAK situation).

The second commit message makes it sound as if .gitmessage is a special file in git (similar to .gitignore or .gitattributes), but afaict that is not the case. Might be worth rephrasing for clarity.

Comment thread .gitmessage Outdated
Comment thread .gitmessage Outdated
Comment thread .gitmessage Outdated
Comment thread .gitmessage Outdated
Comment thread .gitmessage Outdated
Comment thread .gitmessage Outdated
Comment thread .gitconfig Outdated
@IgorMinar

Copy link
Copy Markdown
Contributor Author

@gkalpak which part didn't work on windows? The shared gitconfig or the template?

Both should work on windows as far as I know.

@gkalpak

gkalpak commented Jul 7, 2020

Copy link
Copy Markdown
Member

I couldn't get the message template to work 😞

@gkalpak

gkalpak commented Jul 7, 2020

Copy link
Copy Markdown
Member

NVM, I tried it again and now it worked fine. Not sure what I did wrong before. Sorry for the noise 😇

Comment thread .gitconfig Outdated
@IgorMinar
IgorMinar force-pushed the build/shared-.gitconfig branch 3 times, most recently from 602685e to 8b44382 Compare July 7, 2020 20:17
@IgorMinar IgorMinar removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Jul 7, 2020
@IgorMinar

Copy link
Copy Markdown
Contributor Author

I pushed a bunch more changes. I linked the template to the commit message docs on github and updated them so that the github version is a strict superset of the version in the template that is a bit more succinct.

@IgorMinar
IgorMinar force-pushed the build/shared-.gitconfig branch from 8b44382 to 0d08568 Compare July 7, 2020 20:22
Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md Outdated
Comment thread .gitmessage Outdated
Comment thread CONTRIBUTING.md Outdated
@jelbourn
jelbourn requested a review from aikithoughts July 7, 2020 21:50
@jelbourn

jelbourn commented Jul 7, 2020

Copy link
Copy Markdown
Contributor

Adding @aikidave for contributing guide changes

Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md Outdated
@IgorMinar
IgorMinar requested a review from aikithoughts July 9, 2020 20:39

@jelbourn jelbourn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@IgorMinar IgorMinar added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Jul 10, 2020

@aikithoughts aikithoughts left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM!

Reviewed-for: global-docs-approvers

IgorMinar added 11 commits July 10, 2020 14:18
…stent git config

This file is inert unless it's explicitly included into the local git config via:

```
git config --add include.path '../.ng-dev/gitconfig'
```

Calling that command will append the following into `.git/config` of the current git workspace
(i.e. $GIT_DIR, typically `angular/.git/config`):

```
[include]
	path = ../.ng-dev/gitconfig
```

I'm intentionally keeping the config inert for now until we prove that this is a good idea.

Eventually we could roll this change out to all the contributors via an npm post-install script.
Git provides a way to create a commit message template via the `.gitmessage` file.

Introduce an Angular-specific .gitmessage template based on the original Commit Message Guidelines.
https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-guidelines

If this template workflow is proven in practice, we can move the commit message guidelines into the
.gitmessage file to prevent duplication of the content.

This change is a follow up on angular#37949 and is inspired by info found in the following blog post:
https://thoughtbot.com/blog/better-commit-messages-with-a-gitmessage-template
This doc is very old and rusty. I'm reformatting it to follow the one-setence-per-line rule.
I also updated a few sections, since they were either poorly written or obsolete.
@IgorMinar
IgorMinar force-pushed the build/shared-.gitconfig branch from 7a04f8f to 74fea3a Compare July 10, 2020 21:18
atscott pushed a commit that referenced this pull request Jul 13, 2020
…stent git config (#37951)

This file is inert unless it's explicitly included into the local git config via:

```
git config --add include.path '../.ng-dev/gitconfig'
```

Calling that command will append the following into `.git/config` of the current git workspace
(i.e. $GIT_DIR, typically `angular/.git/config`):

```
[include]
	path = ../.ng-dev/gitconfig
```

I'm intentionally keeping the config inert for now until we prove that this is a good idea.

Eventually we could roll this change out to all the contributors via an npm post-install script.

PR Close #37951
atscott pushed a commit that referenced this pull request Jul 13, 2020
Git provides a way to create a commit message template via the `.gitmessage` file.

Introduce an Angular-specific .gitmessage template based on the original Commit Message Guidelines.
https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-guidelines

If this template workflow is proven in practice, we can move the commit message guidelines into the
.gitmessage file to prevent duplication of the content.

This change is a follow up on #37949 and is inspired by info found in the following blog post:
https://thoughtbot.com/blog/better-commit-messages-with-a-gitmessage-template

PR Close #37951
atscott pushed a commit that referenced this pull request Jul 13, 2020
This doc is very old and rusty. I'm reformatting it to follow the one-setence-per-line rule.
I also updated a few sections, since they were either poorly written or obsolete.

PR Close #37951
@atscott atscott closed this in f66f4a1 Jul 13, 2020
atscott pushed a commit that referenced this pull request Jul 13, 2020
Git provides a way to create a commit message template via the `.gitmessage` file.

Introduce an Angular-specific .gitmessage template based on the original Commit Message Guidelines.
https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-guidelines

If this template workflow is proven in practice, we can move the commit message guidelines into the
.gitmessage file to prevent duplication of the content.

This change is a follow up on #37949 and is inspired by info found in the following blog post:
https://thoughtbot.com/blog/better-commit-messages-with-a-gitmessage-template

PR Close #37951
atscott pushed a commit that referenced this pull request Jul 13, 2020
This doc is very old and rusty. I'm reformatting it to follow the one-setence-per-line rule.
I also updated a few sections, since they were either poorly written or obsolete.

PR Close #37951
@gkalpak gkalpak mentioned this pull request Jul 19, 2020
14 tasks
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Aug 13, 2020
profanis pushed a commit to profanis/angular that referenced this pull request Sep 5, 2020
…stent git config (angular#37951)

This file is inert unless it's explicitly included into the local git config via:

```
git config --add include.path '../.ng-dev/gitconfig'
```

Calling that command will append the following into `.git/config` of the current git workspace
(i.e. $GIT_DIR, typically `angular/.git/config`):

```
[include]
	path = ../.ng-dev/gitconfig
```

I'm intentionally keeping the config inert for now until we prove that this is a good idea.

Eventually we could roll this change out to all the contributors via an npm post-install script.

PR Close angular#37951
profanis pushed a commit to profanis/angular that referenced this pull request Sep 5, 2020
Git provides a way to create a commit message template via the `.gitmessage` file.

Introduce an Angular-specific .gitmessage template based on the original Commit Message Guidelines.
https://github.com/angular/angular/blob/master/CONTRIBUTING.md#-commit-message-guidelines

If this template workflow is proven in practice, we can move the commit message guidelines into the
.gitmessage file to prevent duplication of the content.

This change is a follow up on angular#37949 and is inspired by info found in the following blog post:
https://thoughtbot.com/blog/better-commit-messages-with-a-gitmessage-template

PR Close angular#37951
profanis pushed a commit to profanis/angular that referenced this pull request Sep 5, 2020
This doc is very old and rusty. I'm reformatting it to follow the one-setence-per-line rule.
I also updated a few sections, since they were either poorly written or obsolete.

PR Close angular#37951
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.