-
Notifications
You must be signed in to change notification settings - Fork 161
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
[Github] Upgrading ISSUE_TEMPLATE to display 4 alternatives: Bug, Regression, Question or Feature Request #21
Conversation
Can one of the admins verify this patch? |
1 similar comment
Can one of the admins verify this patch? |
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.
In general I like this idea. I think we need to extend the pasteboard script to behave sensibly on other platforms as well. Can we add the output of uname -a
as well? That will nicely cover getting information about other OSes.
@Lukasa I've updated the script a bit, to check if we are on macOS, if so detect which version and Xcode info (might be useful, right?). The script looks like this now: Scriptread -p "This will replace your current pasteboard. Continue? [y/n]" -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
swiftversion=$(swift --version)
unix_version_name=$(uname -a)
i="${i}Swift version: ${swiftversion}\n"
i="${i}Unix version: ${unix_version_name}\n"
# Check if OS is macOS, if so retrieve which version and Xcode version.
if [[ "$OSTYPE" == "darwin"* ]]; then
macos=$(defaults read loginwindow SystemVersionStampAsString | cat -)
xcodebuild_version=$(/usr/bin/xcodebuild -version | grep Xcode)
xcodebuild_build=$(/usr/bin/xcodebuild -version | grep Build)
xcodeselectpath=$(xcode-select -p | cat -)
i="${i}macOS version: ${macos}\n"
i="${i}Xcode-select path: '${xcodeselectpath}\n"
i="${i}Xcode: ${xcodebuild_version} (${xcodebuild_build})"
fi
echo "${i}" | pbcopy
echo "Your pasteboard now contains debug info, paste it on Github"
fi
OutputHmm for some reason my newlines inside the
Issue templateDo you want me to change anything in the markdown templates? Or are they good? |
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 think the templates are all good, and the new script seems fine to me: I have one note about the copyright header and otherwise we're good to go.
scripts/environment.sh
Outdated
## | ||
## This source file is part of the SwiftCrypto open source project | ||
## | ||
## Copyright (c) 2019 Apple Inc. and the SwiftCrypto project authors |
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 comment should be updated to be 2020.
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.
fixed, also fixed in script I added yesterday scripts/generate_boilerplate_files_with_gyb.sh
I also updated reference to CONTRIBUTORS.txt
, which is now CONTRIBUTORS.md
@Lukasa I fixed the comment in license (year + reference to
|
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 LGTM, thanks!
@swift-server-bot test this please |
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 like some C files got missed. In practice you probably have to change almost every header comment due to the rename of the contributors file.
It may be worth doing the header comment fixup in a separate PR just to keep the scope clear. |
…ssues types. Adding script for extraction of enviroment info, in order to make it easier for users to report issues.
@Lukasa True, good idea, I will split them into two separate PRs. I've updated this to only include Github issue template + new script So ready to be merged I think? |
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.
Yup, LGTM. Let's see if the robot agrees.
@swift-server-bot test this please |
For future reference: Regarding discussions of changes of file headers, see #24 |
Ah, we need to update the sanity script. Find the line that does |
Looks right |
@swift-server-bot test this please |
I might be too liberal about my use of |
@swift-server-bot test this please |
🎉 |
Upgrading ISSUE_TEMPLATE from single markdown to 4 option selection: Bug, Regression, Question, Feature Request
Motivation:
Having this template where when user presses
NEW ISSUE
button she has to think about what she's doing might lead to better issues submitted.Modifications:
ISSUE_TEMPLATE.md
with directory containing four different issues types../scripts/environment.sh
which puts to together a summary of users environment and copies to pasteboard (asking first).Result:
New-Issue alternatives
Bug report
With having pasted output generated from
./scripts/environment.sh
Feature request
Kind of like the same as before