Skip to content

Add GitHub issue templates #1224

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

Merged
merged 2 commits into from
May 7, 2024
Merged

Add GitHub issue templates #1224

merged 2 commits into from
May 7, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented May 6, 2024

Most importantly, the bug report template is now asking for the user’s OS, Swift version and logging.

ahoppen added 2 commits May 6, 2024 07:47
Most importantly, the bug report template is now asking for the user’s OS, Swift version and logging.
Since we now have a `.github` folder for issue templates, we can move `CODEOWNERS` to it.
@ahoppen ahoppen requested a review from bnbarham May 6, 2024 14:48
@ahoppen ahoppen requested a review from benlangmuir as a code owner May 6, 2024 14:48
@ahoppen
Copy link
Member Author

ahoppen commented May 6, 2024

@swift-ci Please test

Comment on lines +21 to +22
description: Which text editor are you using?
placeholder: Eg. Visual Studio Code with Swift plugin 1.9.0, neovim
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
description: Which text editor are you using?
placeholder: Eg. Visual Studio Code with Swift plugin 1.9.0, neovim
description: Which text editor are you using (and LSP extension/plugin if applicable)?
placeholder: Eg. Visual Studio Code with Swift extension 1.9.0, Neovim, etc.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think etc. isn’t necessary because we already have E.g. at the start of the placeholder.

Copy link
Contributor

Choose a reason for hiding this comment

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

Was more the extension/plugin. I don't mind if you add the etc or not :)

label: Logging
description: |
If you are using SourceKit-LSP from Swift 6, running `sourcekit-lsp diagnose` in terminal and attaching the generated bundle helps us diagnose the issue.
The generated bundle might contain portions of your source code, so please only attach it if you feel comfortable sharing it.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
The generated bundle might contain portions of your source code, so please only attach it if you feel comfortable sharing it.
The generated bundle may contain paths to files on disk as well as portions of your source code. This greatly helps in reproducing issues, but you should only attach it if you feel comfortable doing so.

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we/should we relativize paths based on the workspace root if we're able to?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don’t think relativizing paths makes much sense. The last path component already contains the file’s name, which might be as sensitive as other parts of the path. And relativizing them might make it harder to diagnose issues. So, I would say nearly no benefit with potential loss of diagnosability, so not worth it.

Copy link
Contributor

Choose a reason for hiding this comment

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

It could be that the project itself is opensource (so there's no concerns about source), but eg. absolute paths could have their home directory name which could be sensitive.

Copy link
Member Author

Choose a reason for hiding this comment

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

I doubt that’s a common. You are already sharing your name by filing a GitHub issue and in most cases I expect your GitHub name to be somewhat similar to your username. So, I don’t think it’s something to optimize for until the issue comes up.

Comment on lines +1 to +7
# This source file is part of the Swift.org open source project
#
# Copyright (c) 2024 Apple Inc. and the Swift project authors
# Licensed under Apache License v2.0 with Runtime Library Exception
#
# See https://swift.org/LICENSE.txt for license information
# See https://swift.org/CONTRIBUTORS.txt for Swift project authors
Copy link
Contributor

Choose a reason for hiding this comment

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

Why copyright on this and not the others?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was following what swift-syntax did… Any preference if all or none should have copyright headers?

@ahoppen ahoppen merged commit d7deae7 into swiftlang:main May 7, 2024
3 checks passed
@ahoppen ahoppen deleted the issue-template branch May 7, 2024 04:24
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.

2 participants