-
Notifications
You must be signed in to change notification settings - Fork 376
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 a Pull Request Template for the project #2387
Conversation
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.
Thank you @paularah 🙇♀️
I left one small suggestion. Also, you need to amend the commit message in order to pass the CI - write a title and add a sign-off. Your PR contains instructions on how to do that :)
.github/pull_request_template.md
Outdated
|
||
- [ ] For first time contributors, read [Submitting a pull request](https://tetragon.io/docs/contribution-guide/submitting-a-pull-request/). | ||
- [ ] All code is covered by unit and/or end-to-end tests tests where feasible. | ||
- [ ] All commits contain a well written commit description including a title, |
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.
- [ ] All commits contain a well written commit description including a title, | |
- [ ] All commits contain a well written commit message including a title, |
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.
plus commit log
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.
LGTM when @lambdanis and other comments are fixed.
Thank you ;-)
.github/pull_request_template.md
Outdated
|
||
- [ ] For first time contributors, read [Submitting a pull request](https://tetragon.io/docs/contribution-guide/submitting-a-pull-request/). | ||
- [ ] All code is covered by unit and/or end-to-end tests tests where feasible. | ||
- [ ] All commits contain a well written commit description including a title, |
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.
plus commit log
Thanks for the update @paularah. The PR template looks good, now we need to clean up the git history. To keep the git history readable, we avoid merge commits and we squash changes requested in code review into existing commits. Here is how I would do it: # Switch to main branch
git switch main
# Add cilium/tetragon repo as upstream
git remote add upstream [email protected]:cilium/tetragon.git
# Make your local main branch track main branch from upstream instead of your fork
git branch -u upstream/main
# Reset your local main branch to upstream main branch
git fetch upstream
git reset --hard upstream/main
# Switch to your branch
git switch pr/paularah/pr_template
# Rebase with main branch
git rebase main
# Now the merge commit should be gone, check the git history. If it looks ok, reset last 2 commits.
git log
git reset HEAD~2
# Create a new commit (-s adds the sign-off line) and write a descriptive commit message
git add .
git commit -s
# Force push
git push -f |
Tetragon currently does not have a pull request template to provide contributors with directions on how to contribute to the project on Github. This patch fixes this by adding: 1. pull_request_template.md file covering the important information contributors need to open request that checks that required criteria. Fixes: cilium#1929 Signed-off-by: Paul Arah <[email protected]>
b7cf56b
to
1965cbd
Compare
@lambdanis should be all good now. |
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.
Looks good, thank you!
Fixes: #1929
Adds a pull request template to provide information on how to contribute to Tetragon.