-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into isabellaenriquez/add-source-link-to-frame
- Loading branch information
Showing
617 changed files
with
7,765 additions
and
1,301 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: pre-commit | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
# Cancel in progress workflows on pull_requests. | ||
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
# the default default is: | ||
# bash --noprofile --norc -eo pipefail {0} | ||
shell: bash --noprofile --norc -eo pipefail -ux {0} | ||
|
||
# hack for https://github.com/actions/cache/issues/810#issuecomment-1222550359 | ||
env: | ||
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 3 | ||
|
||
jobs: | ||
lint: | ||
name: pre-commit lint | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: getsentry/action-github-app-token@97c9e23528286821f97fba885c1b1123284b29cc # v2.0.0 | ||
id: token | ||
with: | ||
app_id: ${{ vars.SENTRY_INTERNAL_APP_ID }} | ||
private_key: ${{ secrets.SENTRY_INTERNAL_APP_PRIVATE_KEY }} | ||
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 | ||
- name: Get changed files | ||
id: changes | ||
uses: getsentry/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1 | ||
with: | ||
token: ${{ steps.token.outputs.token }} | ||
|
||
# Enable listing of files matching each filter. | ||
# Paths to files will be available in `${FILTER_NAME}_files` output variable. | ||
list-files: json | ||
|
||
# It doesn't make sense to lint deleted files. | ||
# Therefore we specify we are only interested in added or modified files. | ||
filters: | | ||
all: | ||
- added|modified: '**/*' | ||
- uses: getsentry/action-setup-venv@9e3bbae3836b1b6f129955bf55a19e1d99a61c67 # v1.0.5 | ||
with: | ||
python-version: 3.8.16 | ||
cache-dependency-path: | | ||
requirements-dev.txt | ||
requirements-dev-frozen.txt | ||
install-cmd: pip install -r requirements-dev.txt -c requirements-dev-frozen.txt | ||
- uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # v3.0.11 | ||
with: | ||
path: ~/.cache/pre-commit | ||
key: cache-epoch-1|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} | ||
- name: Setup pre-commit | ||
# We don't use make setup-git because we're only interested in installing | ||
# requirements-dev.txt as a fast path. | ||
# We don't need pre-commit install --install-hooks since we're just interested | ||
# in running the hooks. | ||
run: | | ||
pre-commit install-hooks | ||
- name: Run pre-commit on PR commits | ||
run: | | ||
jq '.[]' --raw-output <<< '${{steps.changes.outputs.all_files}}' | | ||
# Run pre-commit to lint and format check files that were changed (but not deleted) compared to master. | ||
xargs pre-commit run --files | ||
- name: Apply any pre-commit fixed files | ||
if: startsWith(github.ref, 'refs/pull') | ||
uses: getsentry/action-github-commit@748c31dd78cffe76f51bef49a0be856b6effeda7 # v1.1.0 | ||
with: | ||
github-token: ${{ steps.token.outputs.token }} | ||
message: ':hammer_and_wrench: apply pre-commit fixes' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
[ | ||
{ | ||
"model": "sentry.user", | ||
"pk": 1, | ||
"fields": { | ||
"password": "pbkdf2_sha256$150000$iEvdIknqYjTr$+QsGn0tfIJ1FZLxQI37mVU1gL2KbL/wqjMtG/dFhsMA=", | ||
"last_login": null, | ||
"username": "testing@example.com", | ||
"name": "", | ||
"email": "testing@example.com", | ||
"is_staff": true, | ||
"is_active": true, | ||
"is_superuser": true, | ||
"is_managed": false, | ||
"is_sentry_app": null, | ||
"is_password_expired": false, | ||
"last_password_change": "2023-06-22T22:59:57.023Z", | ||
"flags": "0", | ||
"session_nonce": null, | ||
"date_joined": "2023-06-22T22:59:55.488Z", | ||
"last_active": "2023-06-22T22:59:55.489Z", | ||
"avatar_type": 0, | ||
"avatar_url": null | ||
} | ||
}, | ||
{ | ||
"model": "sentry.authenticator", | ||
"pk": 1, | ||
"fields": { | ||
"user": 1, | ||
"created_at": "2023-07-27T16:30:53.325Z", | ||
"last_used_at": null, | ||
"type": 1, | ||
"config": "\"\"" | ||
} | ||
}, | ||
{ | ||
"model": "sentry.useremail", | ||
"pk": 1, | ||
"fields": { | ||
"user": 1, | ||
"email": "testing@example.com", | ||
"validation_hash": "mCnWesSVvYQcq7qXQ36AZHwosAd6cghE", | ||
"date_hash_added": "2023-06-22T22:59:55.521Z", | ||
"is_verified": true | ||
} | ||
}, | ||
{ | ||
"model": "sentry.userip", | ||
"pk": 1, | ||
"fields": { | ||
"user": 1, | ||
"ip_address": "127.0.0.2", | ||
"country_code": null, | ||
"region_code": null, | ||
"first_seen": "2012-04-05T03:29:45.000Z", | ||
"last_seen": "2012-04-05T03:29:45.000Z" | ||
} | ||
}, | ||
{ | ||
"model": "sentry.useroption", | ||
"pk": 1, | ||
"fields": { | ||
"user": 1, | ||
"project_id": null, | ||
"organization_id": null, | ||
"key": "timezone", | ||
"value": "\"Europe/Vienna\"" | ||
} | ||
}, | ||
{ | ||
"model": "sentry.userpermission", | ||
"pk": 1, | ||
"fields": { | ||
"user": 1, | ||
"permission": "users.admin" | ||
} | ||
}, | ||
{ | ||
"model": "sentry.userrole", | ||
"pk": 1, | ||
"fields": { | ||
"date_updated": "2023-06-22T23:00:00.123Z", | ||
"date_added": "2023-06-22T22:54:27.960Z", | ||
"name": "Super Admin", | ||
"permissions": "['broadcasts.admin', 'users.admin', 'options.admin']" | ||
} | ||
}, | ||
{ | ||
"model": "sentry.userroleuser", | ||
"pk": 1, | ||
"fields": { | ||
"date_updated": "2023-06-22T23:00:00.123Z", | ||
"date_added": "2023-06-22T22:59:57.000Z", | ||
"user": 1, | ||
"role": 1 | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
[ | ||
{ | ||
"model": "sentry.user", | ||
"pk": 1, | ||
"fields": { | ||
"password": "pbkdf2_sha256$150000$iEvdIknqYjTr$+QsGn0tfIJ1FZLxQI37mVU1gL2KbL/wqjMtG/dFhsMA=", | ||
"last_login": null, | ||
"username": "testing@example.com", | ||
"name": "", | ||
"email": "testing@example.com", | ||
"is_staff": false, | ||
"is_active": true, | ||
"is_superuser": false, | ||
"is_managed": false, | ||
"is_sentry_app": null, | ||
"is_password_expired": false, | ||
"last_password_change": "2023-06-22T22:59:57.023Z", | ||
"flags": "0", | ||
"session_nonce": null, | ||
"date_joined": "2023-06-22T22:59:55.488Z", | ||
"last_active": "2023-06-22T22:59:55.489Z", | ||
"avatar_type": 0, | ||
"avatar_url": null | ||
} | ||
}, | ||
{ | ||
"model": "sentry.authenticator", | ||
"pk": 1, | ||
"fields": { | ||
"user": 1, | ||
"created_at": "2023-07-27T16:30:53.325Z", | ||
"last_used_at": null, | ||
"type": 1, | ||
"config": "\"\"" | ||
} | ||
}, | ||
{ | ||
"model": "sentry.useremail", | ||
"pk": 1, | ||
"fields": { | ||
"user": 1, | ||
"email": "testing@example.com", | ||
"validation_hash": "mCnWesSVvYQcq7qXQ36AZHwosAd6cghE", | ||
"date_hash_added": "2023-06-22T22:59:55.521Z", | ||
"is_verified": true | ||
} | ||
}, | ||
{ | ||
"model": "sentry.userip", | ||
"pk": 1, | ||
"fields": { | ||
"user": 1, | ||
"ip_address": "127.0.0.2", | ||
"country_code": null, | ||
"region_code": null, | ||
"first_seen": "2012-04-05T03:29:45.000Z", | ||
"last_seen": "2012-04-05T03:29:45.000Z" | ||
} | ||
}, | ||
{ | ||
"model": "sentry.useroption", | ||
"pk": 1, | ||
"fields": { | ||
"user": 1, | ||
"project_id": null, | ||
"organization_id": null, | ||
"key": "timezone", | ||
"value": "\"Europe/Vienna\"" | ||
} | ||
} | ||
] |
Oops, something went wrong.