-
Notifications
You must be signed in to change notification settings - Fork 1
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
NEW Update issue/PR templates on default branches #28
NEW Update issue/PR templates on default branches #28
Conversation
@@ -196,7 +201,7 @@ | |||
// force pushing for cases when doing update-prs | |||
// double make check we're on a branch that we are willing to force push | |||
$currentBranch = cmd('git rev-parse --abbrev-ref HEAD', $MODULE_DIR); | |||
if (!preg_match('#^pulls/[0-9\.]+/module\-standardiser\-[0-9]{10}$#', $currentBranch)) { | |||
if (!preg_match('#^pulls/([0-9\.]+|master|main)/module\-standardiser\-[0-9]{10}$#', $currentBranch)) { |
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 could also have changed this to [a-zA-Z0-9\.]
but I really doubt we'll ever come across a different-named branch, and if we do it's probably best we take a look and make sure things are doing what we expected them to do.
about: ⚠️ We do not use GitHub issues to track security vulnerability reports. Click "open" on the right to see how to report security vulnerabilities. | ||
- name: Support Question | ||
url: https://www.silverstripe.org/community/ | ||
about: We use GitHub issues only to discuss about bugs and new features. For support questions, please use one of the support options available in our community channels. |
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.
about: We use GitHub issues only to discuss about bugs and new features. For support questions, please use one of the support options available in our community channels. | |
about: We only use GitHub issues to discuss bugs and new features. For support questions, please use one of the support options available in our community channels. |
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.
As discussed in person, I'll keep "only" where it is and remove "about"
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
|
||
// The template used for bug report issues | ||
$bugReportTemplate = <<<EOT | ||
name: 🐛 Bug Report |
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.
May as well use the cockroach
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.
🪳
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
attributes: | ||
label: How to reproduce | ||
description: | | ||
⚠️ This is the most important part of the report ⚠️ |
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 is the most important part of the report ⚠️ | |
⚠️ This is the most important part of the report ⚠️ |
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
--> | ||
- # | ||
|
||
## PR merge checklist |
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.
## PR merge checklist | |
## Pull-request checklist |
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 but without the hyphen
EOT; | ||
|
||
// The template used when clicking "Open a blank issue" | ||
$defaultIssueTemplate = "<!-- Blank templates are for use by maintainers only! If you aren't a maintainer, please pick one of the issue templates. -->"; |
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.
$defaultIssueTemplate = "<!-- Blank templates are for use by maintainers only! If you aren't a maintainer, please pick one of the issue templates. -->"; | |
$defaultIssueTemplate = "<!-- Blank templates are for use by maintainers only! If you aren't a maintainer, please go back and pick one of the issue templates. -->"; |
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
ef0405c
to
28ebe37
Compare
github-default
option for the--branch
optiondefault-branch
dir.master
ormain
, and some of them are for CMS 4 branchesIssue