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

Create pull_request_template.md #36

Merged
merged 6 commits into from
Aug 28, 2023
Merged

Conversation

aditikum
Copy link
Contributor

Adding a PR template to ensure consistent context for every PR

Copy link

@cohensus cohensus left a comment

Choose a reason for hiding this comment

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

Please add note at top for commit owner to add a proper title tag before their descriptive title such as:
[Fix]- Bug Fix
[Feature]- for new feature
[Style]- Grammar or branding fix
[Update]-For an update to an existing feature
Adding this will allow customers to filter through the commits and determine if it is something they need to look at or not.

Adding title rules to PR template
@aditikum aditikum requested a review from cohensus June 27, 2023 14:40
Copy link

@cohensus cohensus left a comment

Choose a reason for hiding this comment

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

I had remembered we were also going to indicated to list the associated HSD where applicable so there is complete tracking. Can we add a note for team members to add HSD number?

Copy link
Contributor

@pajgaonk pajgaonk left a comment

Choose a reason for hiding this comment

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

why do we need this file in .github?

@aditikum
Copy link
Contributor Author

That is how github workflows work.
This folder is where automatic flows live in github repos. In this case, this formal meets every pull request will trigger this event.

https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository

@aditikum
Copy link
Contributor Author

I had remembered we were also going to indicated to list the associated HSD where applicable so there is complete tracking. Can we add a note for team members to add HSD number?

Added!

@@ -0,0 +1,11 @@
*PR Title should start with one of the following tags: [Fix]/[Feature]/[Style]/[Update]*

Choose a reason for hiding this comment

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

I might state:
Pull request Title must start with commit tag. Below shows examples of when to use each tag:
[Fix]: A bug fix in the document​
[Feat]: New feature description added in document​
[Style]: Grammar or branding fix​
[Update]: Release update; updating Quartus versioning, tools, etc.

Choose a reason for hiding this comment

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

this will help team to know when to use each

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 think this is self explanatory, as the primary descriptor is in the explanation, but I have added it to the PR template ensure no ambiguity with PRs.

Choose a reason for hiding this comment

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

Should we add some commit types to directly address the commit history, like cherry-picking?

Choose a reason for hiding this comment

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

Hi Tamim, I know the team uses cherry-picking to create a release branch. How would you see the customer using the info on what was cherry-picked?

Copy link
Contributor

Choose a reason for hiding this comment

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

Cherry-picked commits will inherit the commit message it was cherry-picked from by default; I'd suggest we take advantage of that to follow the template guidelines.

I think it's useful, however, to notate in the cherry-picked commit message that it is a cherry pick from another branch. There's a number of ways to do it, but git commit --amend immediately after the [singular] git cherry-pick operation is probably the easiest for folks to remember.

Choose a reason for hiding this comment

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

Okay -- then let's not complicate things further by adding any more commit "types".

*Describe the issue, update, change or fix and notable **why***

### Collateral (docs, reports, design examples, case IDs):

Copy link

@cohensus cohensus Jul 24, 2023

Choose a reason for hiding this comment

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

Add:

  • Add the IPS case # or HSD # that corresponds to this fix or feature. Additionally, if you believe this feature needs to be documented in customer facing collateral, please note: "Documentation required" and area affected, for example:
    FIM- Documentation Required
    AFU- Documentation Required
    Scripts- Documentation Required

If there are customer facing/external tests or reports or documentation that you have modified, please note.

"I don't believe we want to give links to HAS or internal reports here since we may make commit public at some point"

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 already added case IDs that covers this

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 can add a section on document required however

Copy link
Contributor

Choose a reason for hiding this comment

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

A pox to anyone putting private issue tracker numbers on "open source" public development materials.

To anyone consuming the repository who's not an Intel employee, it's at best of zero value. You're hiding the context that brought about the change.

Copy link

@DigitalAce9 DigitalAce9 Aug 23, 2023

Choose a reason for hiding this comment

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

Have we considered what kind of public bug tracking we will have for open-source projects? Would we move to using GitHub's "Issues"?

Copy link

@cohensus cohensus left a comment

Choose a reason for hiding this comment

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

Left comments in code

@aditikum aditikum requested a review from cohensus July 27, 2023 14:27
@DigitalAce9
Copy link

DigitalAce9 commented Aug 23, 2023 via email

Copy link
Contributor

@pajgaonk pajgaonk left a comment

Choose a reason for hiding this comment

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

Looks good

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.

5 participants