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

CRM-20965 - PULL_REQUEST_TEMPLATE - Change header notation #10784

Merged
merged 1 commit into from
Jul 29, 2017

Conversation

totten
Copy link
Member

@totten totten commented Jul 29, 2017

Overview

The Github CLI (hub pull-request) uses # to indicate comment lines, e.g.

screen shot 2017-07-28 at 5 19 10 pm

Before

Headers are marked with ##, which conflicts with the comment #.

After

Headers are marked with -----, which does not conflict.

Comments

  • To test this, use the current pre-release of hub (2.3.0-pre10). The current stable release of hub (v2.2.9) does not seem to respect PULL_REQUEST_TEMPLATE at all.
  • Thought about making the ---- lines match the width of the titles. (That's common in Markdown.) However, that looks weird when you fill out the template on a web-browser. (In a browser, the width of - may not match your other characters.). So I just went with a really long ---- line.

If you use the `#` notation for headers, the Github CLI (`hub pull-request`)
would filter out those lines as comments.

Using the `---` notation should provide that.
@eileenmcnaughton
Copy link
Contributor

Seems fine & obviously safe.

@eileenmcnaughton eileenmcnaughton merged commit bb1852b into civicrm:master Jul 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants