Skip to content

Commit e0ac49c

Browse files
authored
Restructure Project Directory Layout (#115)
* creating dedicated source directory * claude shouldn't review draft PRs * consistency - release.yml formatting
1 parent 674f5f6 commit e0ac49c

Some content is hidden

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

43 files changed

+14
-13
lines changed

.forceignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ package.xml
1212
**/__tests__/**
1313

1414
# Unrelated Metadata
15-
force-app/main/default/objectTranslations/**
16-
force-app/main/default/profiles/**
15+
source/objectTranslations/**
16+
source/profiles/**

.github/scripts/static_analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def define_args():
9595
help="Path that the formatted .md summary will be saved to",
9696
default="static_analysis_summary.md",
9797
)
98-
parser.add_argument("--target", help="The directory to scan", default="force-app/")
98+
parser.add_argument("--target", help="The directory to scan", default="source/")
9999
parser.add_argument(
100100
"--threshold",
101101
help="Defines the severity threshold of violations that are allowed w/out failure",
@@ -112,7 +112,7 @@ def get_sfca_violation_location(violation):
112112
locations = []
113113
for l in violation.get("locations", []):
114114
# Note: Omit everything before the actual working directory:
115-
path = "force-app/" + l.get("file").split("force-app/", 1)[-1]
115+
path = "source/" + l.get("file").split("source/", 1)[-1]
116116
start_line = l.get("startLine", "?")
117117
start_col = l.get("startColumn", "?")
118118
loc = f"{path}:{start_line}:{start_col}"

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
paths:
8-
- "force-app/**"
8+
- "source/**"
99
types: [opened, ready_for_review, reopened, synchronize]
1010

1111
concurrency:
@@ -32,6 +32,7 @@ permissions:
3232
jobs:
3333
claude-review:
3434
name: Claude Code Review
35+
if: ${{ '! github.event.pull_request.draft' }}
3536
runs-on: ubuntu-latest
3637
permissions:
3738
contents: read
@@ -79,7 +80,7 @@ jobs:
7980
# Ensure this check only runs against changed files in the current PR; not the entire codebase
8081
set -euo pipefail
8182
mkdir "$CHANGES_DIR"
82-
sf sgd source delta --generate-delta --from "HEAD^" --to "HEAD" --output-dir "$CHANGES_DIR"/ --source-dir "force-app/"
83+
sf sgd source delta --generate-delta --from "HEAD^" --to "HEAD" --output-dir "$CHANGES_DIR"/ --source-dir "source/"
8384
echo "Changed files:"
8485
ls "$CHANGES_DIR"
8586
@@ -194,7 +195,7 @@ jobs:
194195
--coverage-formatters json-summary \
195196
--dry-run \
196197
--ignore-conflicts \
197-
--source-dir force-app \
198+
--source-dir source \
198199
--test-level RunLocalTests \
199200
--verbose \
200201
--wait 30

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
paths:
8-
- force-app
8+
- "source/**"
99
workflow_dispatch:
1010
inputs:
1111
version:

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ $RECYCLE.BIN/
4848
.vscode/settings.json
4949

5050
# Unrelated Metadata
51-
force-app/main/default/objectTranslations/**
52-
force-app/main/default/profiles/**
51+
source/objectTranslations/**
52+
source/profiles/**
5353

5454
# Agents
5555
CLAUDE.md

packages/managed/sfdx-project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"packageDirectories": [
33
{
4-
"path": "force-app",
4+
"path": "source",
55
"default": true,
66
"package": "apex-database-layer-managed",
77
"versionName": "v3.1.0",

packages/unlocked/sfdx-project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"packageDirectories": [
33
{
4-
"path": "force-app",
4+
"path": "source",
55
"default": true,
66
"package": "apex-database-layer-unlocked",
77
"versionName": "v3.1.0",

sfdx-project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"packageDirectories": [
33
{
4-
"path": "force-app",
4+
"path": "source",
55
"default": true,
66
"versionName": "v3.1.0",
77
"versionNumber": "3.1.0.NEXT"

0 commit comments

Comments
 (0)