Skip to content

Commit c5d06ed

Browse files
Merge pull request #87 from swift-developer-tools/ops/prepare-public-release
Prepare for public release
2 parents c1c5139 + b8aaef7 commit c5d06ed

8,486 files changed

Lines changed: 12042 additions & 4662 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/CODE_OF_CONDUCT.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Code of Conduct
2+
3+
In the interest of fostering an open and welcoming environment, we as
4+
contributors and maintainers pledge to make participation in the project and
5+
its community a harassment-free experience for everyone, regardless of age,
6+
body size, disability, ethnicity, sex characteristics, gender identity and
7+
expression, level of experience, education, socio-economic status, nationality,
8+
personal appearance, race, religion, or sexual identity and orientation.
9+
10+
Examples of behavior that contributes to creating a positive environment
11+
include:
12+
13+
- Respecting the purpose of the project and its community.
14+
- Engaging kindly and honestly with others.
15+
- Respecting different viewpoints and experiences.
16+
- Taking responsibility for our actions and contributions.
17+
- Gracefully giving and accepting constructive feedback.
18+
- Behaving in ways that promote and sustain the well-being of the project and
19+
its community.
20+
21+
Examples of unacceptable behavior include:
22+
23+
- Harassment. Violating explicitly expressed boundaries or engaging in
24+
unnecessary personal attention after any clear request to stop.
25+
- Character attacks. Making insulting, demeaning, or pejorative comments
26+
directed at a community member or group of people.
27+
- Stereotyping or discrimination. Characterizing anyone’s personality or
28+
behavior on the basis of immutable identities or traits.
29+
- Sexualization. Behaving in a way that would generally be considered
30+
inappropriately intimate in the context or purpose of the project and its
31+
community.
32+
- Violating confidentiality. Sharing or acting on someone's personal or private
33+
information without their permission.
34+
- Endangerment. Causing, encouraging, or threatening violence or other harm
35+
toward any person or group.
36+
- Behaving in other ways that threaten the well-being of the project and
37+
its community.
38+
- Misleading identity. Impersonating someone else for any reason, or pretending
39+
to be someone else to evade enforcement actions.
40+
- Failing to credit sources. Not properly crediting the sources of content you
41+
contribute.
42+
- Promotional materials. Sharing marketing or other commercial content in a way
43+
that is outside the norms of the project and its community.
44+
- Irresponsible communication. Presenting content which includes, links, or
45+
describes any restricted behaviors.
46+
47+
Project maintainers have the right to remove, edit, or reject comments, commits,
48+
code, wiki edits, issues, and other contributions that are not aligned to this
49+
Code of Conduct, or to ban temporarily or permanently any contributor for other
50+
behaviors that they deem inappropriate, threatening, offensive, or harmful.
51+
52+
This Code of Conduct applies within all project spaces, including (but not
53+
limited to) source code repositories, bug trackers, web sites, documentation,
54+
and online forums. It also applies when an individual is representing the
55+
project or its community in public spaces. Examples of representing the project
56+
or its community include using an official project email address, posting via
57+
an official social media account, or acting as an appointed representative at
58+
an online or offline event.
59+
60+
This Code of Conduct is adapted from the Contributor Covenant,
61+
[Version 3.0](https://www.contributor-covenant.org/version/3/0/).

.github/CONTRIBUTING.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Contributing
2+
3+
Thank you for helping us improve swift-libgit2.
4+
5+
## Reporting Issues
6+
7+
Before opening an issue, search
8+
[existing issues](https://github.com/swift-developer-tools/swift-libgit2/issues)
9+
to avoid duplicates. If a similar issue already exists, add relevant details to
10+
the existing discussion rather than creating a new issue.
11+
12+
The following issue types are available:
13+
14+
- Bug report: Report unexpected or incorrect behavior, but not a crash.
15+
- Crash report: Report a crash or an unexpected termination.
16+
- Feature request: Request a new feature or an improvement to an existing
17+
feature.
18+
19+
When requesting a feature, keep in mind that swift-libgit2 provides only direct
20+
bindings to libgit2. If the feature does not exist in libgit2, it will not be
21+
implemented in swift-libgit2. Experimental libgit2 features will be added to
22+
swift-libgit2 once they become stable in libgit2.
23+
24+
## Pull Requests
25+
26+
We are not accepting external contributions at this time, but bug reports,
27+
crash reports, and feature requests are always welcome.
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# ===----------------------------------------------------------------------===//
2+
#
3+
# This source file is part of the swift-libgit2 open source project.
4+
#
5+
# Copyright (c) Margins Technologies LLC.
6+
# Licensed under the Apache License, Version 2.0.
7+
#
8+
# ===----------------------------------------------------------------------===//
9+
10+
name: ⚠️ Bug Report
11+
description: >
12+
Report unexpected or incorrect behavior, but not a crash.
13+
labels:
14+
- bug
15+
- triage
16+
body:
17+
- type: textarea
18+
attributes:
19+
label: Description
20+
description: >
21+
A clear and concise description of what happened.
22+
validations:
23+
required: true
24+
- type: textarea
25+
attributes:
26+
label: Reproduction
27+
description: >
28+
Step-by-step instructions to consistently reproduce the issue.
29+
validations:
30+
required: true
31+
- type: textarea
32+
attributes:
33+
label: Expected Behavior
34+
description: >
35+
A clear and concise description of the expected behavior.
36+
validations:
37+
required: true
38+
- type: input
39+
attributes:
40+
label: Package Version
41+
description: >
42+
The swift-libgit2 version used when the issue occurred.
43+
placeholder: e.g. swift-libgit2 1.0.0
44+
validations:
45+
required: true
46+
- type: input
47+
attributes:
48+
label: Swift Version
49+
description: >
50+
The Swift version used when the issue occurred.
51+
placeholder: e.g. Swift 6.2
52+
validations:
53+
required: true
54+
- type: input
55+
attributes:
56+
label: Platform and Version
57+
description: >
58+
The iOS, iPadOS, or macOS version used when the issue occurred.
59+
placeholder: e.g. macOS 26.0.1
60+
validations:
61+
required: true
62+
- type: textarea
63+
attributes:
64+
label: Additional Information
65+
description: >
66+
Additional context that may help. For example, logs or error messages.
67+
validations:
68+
required: false

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ===----------------------------------------------------------------------===//
2+
#
3+
# This source file is part of the swift-libgit2 open source project.
4+
#
5+
# Copyright (c) Margins Technologies LLC.
6+
# Licensed under the Apache License, Version 2.0.
7+
#
8+
# ===----------------------------------------------------------------------===//
9+
10+
blank_issues_enabled: false
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# ===----------------------------------------------------------------------===//
2+
#
3+
# This source file is part of the swift-libgit2 open source project.
4+
#
5+
# Copyright (c) Margins Technologies LLC.
6+
# Licensed under the Apache License, Version 2.0.
7+
#
8+
# ===----------------------------------------------------------------------===//
9+
10+
name: 💥 Crash Report
11+
description: >
12+
Report a crash or an unexpected termination.
13+
labels:
14+
- bug
15+
- crash
16+
- triage
17+
body:
18+
- type: textarea
19+
attributes:
20+
label: Description
21+
description: >
22+
A clear and concise description of what happened.
23+
validations:
24+
required: true
25+
- type: textarea
26+
attributes:
27+
label: Reproduction
28+
description: >
29+
Step-by-step instructions to consistently reproduce the issue.
30+
validations:
31+
required: true
32+
- type: textarea
33+
attributes:
34+
label: Stack Trace
35+
description: >
36+
The complete stack trace.
37+
validations:
38+
required: true
39+
- type: textarea
40+
attributes:
41+
label: Expected Behavior
42+
description: >
43+
A clear and concise description of the expected behavior.
44+
validations:
45+
required: true
46+
- type: input
47+
attributes:
48+
label: Package Version
49+
description: >
50+
The swift-libgit2 version used when the issue occurred.
51+
placeholder: e.g. swift-libgit2 1.0.0
52+
validations:
53+
required: true
54+
- type: input
55+
attributes:
56+
label: Swift Version
57+
description: >
58+
The Swift version used when the issue occurred.
59+
placeholder: e.g. Swift 6.2
60+
validations:
61+
required: true
62+
- type: input
63+
attributes:
64+
label: Platform and Version
65+
description: >
66+
The iOS, iPadOS, or macOS version used when the issue occurred.
67+
placeholder: e.g. macOS 26.0.1
68+
validations:
69+
required: true
70+
- type: textarea
71+
attributes:
72+
label: Additional Information
73+
description: >
74+
Additional context that may help. For example, logs or error messages.
75+
validations:
76+
required: false
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# ===----------------------------------------------------------------------===//
2+
#
3+
# This source file is part of the swift-libgit2 open source project.
4+
#
5+
# Copyright (c) Margins Technologies LLC.
6+
# Licensed under the Apache License, Version 2.0.
7+
#
8+
# ===----------------------------------------------------------------------===//
9+
10+
name: ✨ Feature Request
11+
description: >
12+
Request a new feature or an improvement to an existing feature.
13+
labels:
14+
- enhancement
15+
- triage
16+
body:
17+
- type: textarea
18+
attributes:
19+
label: Description
20+
description: >
21+
A clear and concise description of the new feature or change.
22+
validations:
23+
required: true
24+
- type: textarea
25+
attributes:
26+
label: Motivation
27+
description: >
28+
A clear and concise description of how the new feature or change would
29+
benefit users.
30+
validations:
31+
required: true
32+
- type: textarea
33+
attributes:
34+
label: Additional Information
35+
description: >
36+
Additional context that may help.
37+
validations:
38+
required: false

.github/workflows/test.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.swiftpm/swift-libgit2.xctestplan

Lines changed: 40 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,53 @@
22
"configurations" : [
33
{
44
"id" : "63F12DEB-4DC1-447C-8642-CB98019778D6",
5-
"name" : "Test Scheme Action",
5+
"name" : "Address Sanitizer",
66
"options" : {
7-
7+
"addressSanitizer" : {
8+
"detectStackUseAfterReturn" : true,
9+
"enabled" : true
10+
},
11+
"mallocScribbleEnabled" : true,
12+
"undefinedBehaviorSanitizerEnabled" : true
13+
}
14+
},
15+
{
16+
"id" : "91B98A00-3617-4340-9D7B-57D407B58004",
17+
"name" : "Thread Sanitizer",
18+
"options" : {
19+
"threadSanitizerEnabled" : true,
20+
"undefinedBehaviorSanitizerEnabled" : true
21+
}
22+
},
23+
{
24+
"id" : "D2514B8A-2CEE-491E-B2A9-5FF4992FD198",
25+
"name" : "Malloc Guard Edges",
26+
"options" : {
27+
"mallocGuardEdgesEnabled" : true,
28+
"mallocScribbleEnabled" : true,
29+
"mallocStackLoggingOptions" : {
30+
"loggingType" : "liveAllocations"
31+
}
32+
}
33+
},
34+
{
35+
"id" : "7CE440AF-0359-4118-8D35-D6528AFA5C78",
36+
"name" : "Hardware Memory Tagging",
37+
"options" : {
38+
"checkedAllocations" : {
39+
"enabled" : true,
40+
"requiresHardwareAcceleration" : false
41+
},
42+
"mallocStackLoggingOptions" : {
43+
"loggingType" : "liveAllocations"
44+
}
845
}
946
}
1047
],
1148
"defaultOptions" : {
12-
"addressSanitizer" : {
13-
"detectStackUseAfterReturn" : true,
14-
"enabled" : true
15-
},
1649
"mainThreadCheckerDetectionPolicy" : {
1750
"severity" : "failure"
1851
},
19-
"mallocScribbleEnabled" : true,
2052
"nsZombieEnabled" : true,
2153
"performanceAntipatternCheckerEnabled" : true,
2254
"runtimeIssueDetection" : {
@@ -25,8 +57,7 @@
2557
"testExecutionOrdering" : "random",
2658
"threadPerformanceCheckerRuntimeIssueDetection" : {
2759
"severity" : "failure"
28-
},
29-
"undefinedBehaviorSanitizerEnabled" : true
60+
}
3061
},
3162
"testTargets" : [
3263
{

0 commit comments

Comments
 (0)