FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
sentry-java/scripts/commit-formatted-code.sh at main · getsentry/sentry-java · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
getsentry
/
sentry-java
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
474
Star
1.3k
Code
Issues
268
Pull requests
83
Discussions
Actions
Projects
Security and quality
1
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
sentry-java
/
scripts
/
commit-formatted-code.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
16 lines (14 loc) · 483 Bytes
Breadcrumbs
sentry-java
/
scripts
/
commit-formatted-code.sh
Copy path
File metadata and controls
executable file
·
16 lines (14 loc) · 483 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!
/bin/bash
set
-euo pipefail
GITHUB_BRANCH=
"
${1}
"
if
[[
$(
git status
)
==
*
"
nothing to commit
"
*
]]
;
then
echo
"
Nothing to commit. All code formatted correctly.
"
else
echo
"
Formatted some code. Going to push the changes.
"
git config --global user.name
'
Sentry Github Bot
'
git config --global user.email
'
bot+github-bot@sentry.io
'
git fetch
git checkout
${GITHUB_BRANCH}
git commit -am
"
Format code
"
git push --set-upstream origin
${GITHUB_BRANCH}
fi
Back
|
FazBrowse Home
|
New Git URL