Skip to content

Commit 27b4ca4

Browse files
committed
Merge branch 'master' of github.com:getsentry/sentry-docs into smi/quick-start/sveltekit-manual
2 parents 00b2c3e + 8af147d commit 27b4ca4

File tree

106 files changed

+1535
-156
lines changed

Some content is hidden

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

106 files changed

+1535
-156
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ contact_links:
77
url: https://github.com/getsentry/self-hosted/issues/new
88
about: Please use the `self-hosted` repo for questions about self-hosted Sentry.
99
- name: An issue with one of the SDKs
10-
url: https://github.com/search?q=topic%3Acrash-reporting+org%3Agetsentry+fork%3Atrue
10+
url: https://github.com/search?q=topic%3Asdk+org%3Agetsentry&type=repositories
1111
about: Please use the relevant SDK repository to report any issues.

.github/ISSUE_TEMPLATE/issue-content-01-sdks.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: '📝 SDK Documentation'
2-
labels: ['Type: Content', 'SDKs']
2+
labels: ['Docs', 'SDKs']
33
description: Missing, incorrect, or unclear documentation of SDKs.
4-
type: Improvement
54
body:
65
- type: markdown
76
attributes:

.github/ISSUE_TEMPLATE/issue-content-02-product.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: '📝 Product Documentation'
2-
labels: ['Type: Content', 'Product']
2+
labels: ['Docs', 'Product']
33
description: Missing, incorrect, or unclear documentation of product features.
4-
type: Improvement
54
body:
65
- type: markdown
76
attributes:

.github/ISSUE_TEMPLATE/issue-content-03-develop.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: '📝 Documentation on develop.sentry.dev'
2-
labels: ['Type: Content', 'Develop']
2+
labels: ['Docs', 'Develop']
33
description: Missing, incorrect, or unclear developer documentation.
4-
type: Improvement
54
body:
65
- type: markdown
76
attributes:

.github/ISSUE_TEMPLATE/issue-platform-404.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: '💻 Docs Platform: 🔗 404 Error'
2-
labels: 'Type: Platform,404'
2+
labels: ['Docs Platform', 'Bug', '404']
33
description: Broken links, missing pages, and other 404 errors.
4-
type: Bug
54
body:
65
- type: textarea
76
id: url

.github/ISSUE_TEMPLATE/issue-platform-bug.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: '💻 Docs Platform: 🐞 Bug'
2-
labels: 'Type: Platform'
3-
type: Bug
2+
labels: ['Docs Platform', 'Bug']
43
description: Problems with the technical platform of our docs.
54
body:
65
- type: textarea

.github/ISSUE_TEMPLATE/issue-platform-improvement.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: '💻 Docs Platform: ✨ Improvement'
2-
labels: 'Type: Platform'
2+
labels: ['Docs Platform', 'Improvement']
33
description: Ideas on how we can improve the technical capabilities of our docs platform.
4-
type: Improvement
54
body:
65
- type: textarea
76
id: problem
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
name: Codeowner assignment
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
codeowner_assignment:
7+
name: Codeowner assignment
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: write
11+
pull-requests: write
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: actions/[email protected]
17+
id: token
18+
with:
19+
app-id: ${{ vars.CODEOWNER_ASSIGNMENT_GITHUB_APP_ID }}
20+
private-key: ${{ secrets.CODEOWNER_ASSIGNMENT_PRI_KEY }}
21+
owner: ${{ github.repository_owner }}
22+
repositories: |
23+
sentry-docs
24+
25+
- name: Parse CODEOWNERS and assign reviewers
26+
id: assign-reviewers
27+
env:
28+
PR_NUMBER: ${{ github.event.number }}
29+
GH_TOKEN: ${{ steps.token.outputs.token }}
30+
run: |
31+
# locate CODEOWNERS file exists
32+
if [[ -f .github/CODEOWNERS ]]; then
33+
codeowner_path=".github/CODEOWNERS"
34+
elif [[ -f CODEOWNERS ]]; then
35+
codeowner_path="CODEOWNERS"
36+
else
37+
echo "CODEOWNERS file not found, skipping."
38+
exit 0
39+
fi
40+
41+
# Get changed files in the PR
42+
git fetch origin ${{ github.event.pull_request.base.ref }} \
43+
${{ github.event.pull_request.head.ref }}
44+
CHANGED_FILES=$(git diff --name-only origin/${{ github.event.pull_request.base.ref }} \
45+
origin/${{ github.event.pull_request.head.ref }})
46+
47+
echo "----------------------------------------"
48+
echo "Changed files:"
49+
echo "$CHANGED_FILES" | tr ' ' '\n' | sed 's/^/- /'
50+
echo "----------------------------------------"
51+
52+
# Parse CODEOWNERS and find commented lines
53+
# Add newline to the end of the file if it doesn't have one, otherwise sed will not read the last line
54+
sed -i -e '$a\' $codeowner_path
55+
56+
while read -r LINE; do
57+
# Skip lines that are not commented, GitHub will take care of un-commented lines
58+
if [[ ! "$LINE" =~ ^# ]]; then continue; fi
59+
60+
# Extract pattern and reviewer from the commented line
61+
PATTERN=$(echo "$LINE" | sed -E 's/^#\s*([^@]+).*$/\1/' | xargs)
62+
# Capture both individual users and GitHub teams reviewers that have "/" in the name
63+
REVIEWERS=$(echo "$LINE" | grep -o "@[a-zA-Z0-9_-]\+\(/[a-zA-Z0-9_-]\+\)\?" | tr '\n' ' ' | xargs)
64+
65+
# Skip if no reviewers found
66+
if [[ -z "$REVIEWERS" ]]; then
67+
continue
68+
fi
69+
70+
# Convert pattern to a regex for matching
71+
REGEX_PATTERN=$(echo "$PATTERN" | sed -e 's/\./\\./g' -e 's/\*/.*/g' -e 's/\?/./g' -e 's|^/||')
72+
73+
# Match changed files to the pattern
74+
for FILE in $CHANGED_FILES; do
75+
# For glob patterns(e.g. "**/"), use a different matching approach
76+
if [[ "$PATTERN" == *"*"* ]]; then
77+
# Special handling for **/ pattern
78+
if [[ "$PATTERN" == "**/"* ]]; then
79+
# Get the filename part after **/
80+
FILENAME=${PATTERN#**/}
81+
# Match either the filename directly or with any path prefix
82+
if [[ "$FILE" == "$FILENAME" ]] || [[ "$FILE" == */"$FILENAME" ]]; then
83+
echo "File $FILE matches glob pattern $PATTERN"
84+
# Assign each reviewer
85+
for REVIEWER in $REVIEWERS; do
86+
# Remove @ symbol from reviewer name
87+
REVIEWER_NAME=${REVIEWER#@}
88+
echo " - Assigning $REVIEWER_NAME to review changes in $FILE"
89+
gh pr edit $PR_NUMBER --add-reviewer "$REVIEWER_NAME"
90+
done
91+
fi
92+
else
93+
# Convert other glob patterns to regex for matching
94+
GLOB_PATTERN=$(echo "$PATTERN" | sed -e 's/\./\\./g' -e 's/\*/.*/g' -e 's/\?/./g')
95+
if [[ "$FILE" =~ $GLOB_PATTERN ]]; then
96+
echo "File $FILE matches glob pattern $PATTERN"
97+
# Assign each reviewer
98+
for REVIEWER in $REVIEWERS; do
99+
# Remove @ symbol from reviewer name
100+
REVIEWER_NAME=${REVIEWER#@}
101+
echo " - Assigning $REVIEWER_NAME to review changes in $FILE"
102+
gh pr edit $PR_NUMBER --add-reviewer "$REVIEWER_NAME"
103+
done
104+
fi
105+
fi
106+
else
107+
# Original directory matching logic
108+
if [[ "$FILE" == ${REGEX_PATTERN}* ]]; then
109+
echo "File $FILE matches pattern $PATTERN"
110+
# Assign each reviewer
111+
for REVIEWER in $REVIEWERS; do
112+
# Remove @ symbol from reviewer name
113+
REVIEWER_NAME=${REVIEWER#@}
114+
echo " - Assigning $REVIEWER_NAME to review changes in $FILE"
115+
gh pr edit $PR_NUMBER --add-reviewer "$REVIEWER_NAME"
116+
done
117+
fi
118+
fi
119+
done
120+
done < $codeowner_path
121+

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Logs
2-
logs
32
*.log
43
npm-debug.log*
54
yarn-debug.log*

develop-docs/application-architecture/feedback-architecture.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ This feature is available if you enable the following feature flags.
264264

265265
- `organizations:user-feedback-ingest`
266266
- `organizations:user-feedback-ui`
267-
- `organizations:user-feedback-replay-clip` (v24.7.1+)
267+
- `organizations:user-feedback-replay-clip` (from v24.7.1 through to v25.3.0)
268268

269269
Auto-registered flags for issue platform, for versions \<= v24.10.0 only:
270270

0 commit comments

Comments
 (0)