Skip to content

Commit 4a8ae39

Browse files
committed
Pre-release 0.22.73
1 parent 26c3c06 commit 4a8ae39

File tree

351 files changed

+39279
-1
lines changed

Some content is hidden

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

351 files changed

+39279
-1
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Always attempt union merge for project files
2+
*.pbxproj merge=union
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'Composite Xcode Path'
2+
description: 'Get Xcode version to be used across all actions'
3+
inputs:
4+
xcode-version:
5+
description:
6+
Xcode version to use, in semver(ish)-style matching the format on the Actions runner image.
7+
See available versions at https://github.com/actions/runner-images/blame/main/images/macos/macos-14-Readme.md#xcode
8+
required: false
9+
default: '15.3'
10+
outputs:
11+
xcode-path:
12+
description: "Path to current Xcode version"
13+
value: ${{ steps.xcode-path.outputs.xcode-path }}
14+
runs:
15+
using: "composite"
16+
steps:
17+
- name: Set XCODE_PATH env var
18+
env:
19+
XCODE_PATH: "/Applications/Xcode_${{ inputs.xcode-version }}.app"
20+
run: echo "XCODE_PATH=${{ env.XCODE_PATH }}" >> $GITHUB_ENV
21+
shell: bash
22+
- name: Set Xcode version
23+
run: sudo xcode-select -s ${{ env.XCODE_PATH }}
24+
shell: bash
25+
- name: Enable new build system integration
26+
run: defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
27+
shell: bash
28+
- name: Output Xcode path
29+
id: xcode-path
30+
run: echo "xcode-path=$(echo ${{ env.XCODE_PATH }})" >> $GITHUB_OUTPUT
31+
shell: bash

.github/pull_request_template.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
At the moment we are not accepting contributions to the repository.

.github/workflows/auto-close-pr.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Auto-close PR
2+
on:
3+
pull_request_target:
4+
types: [opened, reopened]
5+
6+
jobs:
7+
close:
8+
name: Run
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pull-requests: write
12+
steps:
13+
- run: |
14+
gh pr close ${{ github.event.pull_request.number }} --comment \
15+
"At the moment we are not accepting contributions to the repository.
16+
17+
Feedback for GitHub Copilot for Xcode can be given in the [Copilot community discussions](https://github.com/orgs/community/discussions/categories/copilot)."
18+
env:
19+
GH_REPO: ${{ github.repository }}
20+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/codeql.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: "CodeQL Advanced"
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
schedule:
9+
- cron: '24 23 * * 1'
10+
11+
jobs:
12+
analyze:
13+
name: Analyze (${{ matrix.language }})
14+
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
15+
permissions:
16+
# required for all workflows
17+
security-events: write
18+
19+
# required to fetch internal or private CodeQL packs
20+
packages: read
21+
22+
# only required for workflows in private repositories
23+
actions: read
24+
contents: read
25+
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
include:
30+
- language: python
31+
build-mode: none
32+
- language: swift
33+
build-mode: manual
34+
steps:
35+
- name: Checkout repository
36+
uses: actions/checkout@v4
37+
38+
# Initializes the CodeQL tools for scanning.
39+
- name: Initialize CodeQL
40+
uses: github/codeql-action/init@v3
41+
with:
42+
languages: ${{ matrix.language }}
43+
build-mode: ${{ matrix.build-mode }}
44+
# If you wish to specify custom queries, you can do so here or in a config file.
45+
# By default, queries listed here will override any specified in a config file.
46+
# Prefix the list here with "+" to use these queries and those in the config file.
47+
48+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
49+
# queries: security-extended,security-and-quality
50+
51+
- if: matrix.build-mode == 'manual'
52+
uses: ./.github/actions/set-xcode-version
53+
54+
- if: matrix.build-mode == 'manual'
55+
shell: bash
56+
run: |
57+
xcodebuild \
58+
-scheme 'Copilot for Xcode' \
59+
-quiet \
60+
-archivePath build/Archives/CopilotForXcode.xcarchive \
61+
-configuration Release \
62+
-skipMacroValidation \
63+
-disableAutomaticPackageResolution \
64+
-workspace 'Copilot for Xcode.xcworkspace' \
65+
archive \
66+
CODE_SIGNING_ALLOWED="NO"
67+
68+
- name: Perform CodeQL Analysis
69+
uses: github/codeql-action/analyze@v3
70+
with:
71+
category: "/language:${{matrix.language}}"

.gitignore

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/xcode,macos,swift,swiftpackagemanager
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=xcode,macos,swift,swiftpackagemanager
3+
4+
### macOS ###
5+
# General
6+
.DS_Store
7+
.AppleDouble
8+
.LSOverride
9+
10+
# Files that might appear in the root of a volume
11+
.DocumentRevisions-V100
12+
.fseventsd
13+
.Spotlight-V100
14+
.TemporaryItems
15+
.Trashes
16+
.VolumeIcon.icns
17+
.com.apple.timemachine.donotpresent
18+
19+
# Directories potentially created on remote AFP share
20+
.AppleDB
21+
.AppleDesktop
22+
Network Trash Folder
23+
Temporary Items
24+
.apdisk
25+
26+
### macOS Patch ###
27+
# iCloud generated files
28+
*.icloud
29+
30+
### Swift ###
31+
# Xcode
32+
#
33+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
34+
35+
## User settings
36+
xcuserdata/
37+
38+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
39+
*.xcscmblueprint
40+
*.xccheckout
41+
42+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
43+
build/
44+
DerivedData/
45+
*.moved-aside
46+
*.pbxuser
47+
!default.pbxuser
48+
*.mode1v3
49+
!default.mode1v3
50+
*.mode2v3
51+
!default.mode2v3
52+
*.perspectivev3
53+
!default.perspectivev3
54+
55+
## Obj-C/Swift specific
56+
*.hmap
57+
58+
## App packaging
59+
*.ipa
60+
*.dSYM.zip
61+
*.dSYM
62+
63+
# Swift Package Manager
64+
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
65+
# Packages/
66+
# Package.pins
67+
# Package.resolved
68+
# *.xcodeproj
69+
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
70+
# hence it is not needed unless you have added a package configuration file to your project
71+
.swiftpm
72+
73+
.build/
74+
75+
# CocoaPods
76+
# We recommend against adding the Pods directory to your .gitignore. However
77+
# you should judge for yourself, the pros and cons are mentioned at:
78+
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
79+
# Pods/
80+
# Add this line if you want to avoid checking in source code from the
81+
82+
# Carthage
83+
# Add this line if you want to avoid checking in source code from Carthage dependencies.
84+
# Carthage/Checkouts
85+
86+
Carthage/Build/
87+
88+
# Accio dependency management
89+
Dependencies/
90+
.accio/
91+
92+
# fastlane
93+
# It is recommended to not store the screenshots in the git repo.
94+
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
95+
# For more information about the recommended setup visit:
96+
# https://docs.fastlane.tools/best-practices/source-control/#source-control
97+
98+
fastlane/report.xml
99+
fastlane/Preview.html
100+
fastlane/screenshots/**/*.png
101+
fastlane/test_output
102+
103+
# Code Injection
104+
# After new code Injection tools there's a generated folder /iOSInjectionProject
105+
# https://github.com/johnno1962/injectionforxcode
106+
107+
iOSInjectionProject/
108+
109+
# End of https://www.toptal.com/developers/gitignore/api/xcode,macos,swift,swiftpackagemanager
110+
111+
# Local build config
112+
Config.local.xcconfig
113+
114+
# Avoid checking in package resolved from swift packages
115+
Tool/Package.resolved
116+
Core/Package.resolved
117+
118+
# Copilot language server
119+
Server/node_modules/
120+
121+
# Releases
122+
/releases/
123+
/release/
124+
/appcast.xml

.swiftformat

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
--allman false
2+
--beforemarks
3+
--binarygrouping 4,8
4+
--categorymark "MARK: %c"
5+
--classthreshold 0
6+
--closingparen balanced
7+
--commas always
8+
--conflictmarkers reject
9+
--decimalgrouping 3,6
10+
--elseposition same-line
11+
--enumthreshold 0
12+
--exponentcase lowercase
13+
--exponentgrouping disabled
14+
--fractiongrouping disabled
15+
--fragment false
16+
--funcattributes preserve
17+
--guardelse auto
18+
--header ignore
19+
--hexgrouping 4,8
20+
--hexliteralcase uppercase
21+
--ifdef no-indent
22+
--importgrouping testable-bottom
23+
--indent 4
24+
--indentcase false
25+
--lifecycle
26+
--linebreaks lf
27+
--maxwidth 100
28+
--modifierorder
29+
--nospaceoperators ...,..<
30+
--nowrapoperators
31+
--octalgrouping 4,8
32+
--operatorfunc spaced
33+
--patternlet hoist
34+
--ranges spaced
35+
--self remove
36+
--selfrequired
37+
--semicolons inline
38+
--shortoptionals always
39+
--smarttabs enabled
40+
--stripunusedargs unnamed-only
41+
--structthreshold 0
42+
--tabwidth unspecified
43+
--trailingclosures
44+
--trimwhitespace always
45+
--typeattributes preserve
46+
--varattributes preserve
47+
--voidtype void
48+
--wraparguments before-first
49+
--wrapcollections disabled
50+
--wrapparameters before-first
51+
--xcodeindentation disabled
52+
--yodaswap always
53+
54+
--enable isEmpty
55+
56+
--exclude Pods,**/Generated

CODE_OF_CONDUCT.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, gender identity and expression, level of experience,
9+
nationality, personal appearance, race, religion, or sexual identity and
10+
orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at <opensource@github.com>. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at [http://contributor-covenant.org/version/1/4][version]
72+
73+
[homepage]: http://contributor-covenant.org
74+
[version]: http://contributor-covenant.org/version/1/4/

0 commit comments

Comments
 (0)