Skip to content

Commit ec68cf9

Browse files
committed
include instructions for creating rulesets
1 parent 3a06a43 commit ec68cf9

File tree

2 files changed

+52
-5
lines changed

2 files changed

+52
-5
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "Default",
3+
"target": "branch",
4+
"source_type": "Repository",
5+
"enforcement": "active",
6+
"conditions": {
7+
"ref_name": {
8+
"exclude": [],
9+
"include": [
10+
"~DEFAULT_BRANCH"
11+
]
12+
}
13+
},
14+
"rules": [
15+
{
16+
"type": "pull_request",
17+
"parameters": {
18+
"required_approving_review_count": 1,
19+
"dismiss_stale_reviews_on_push": false,
20+
"require_code_owner_review": true,
21+
"require_last_push_approval": false,
22+
"required_review_thread_resolution": false,
23+
"automatic_copilot_code_review_enabled": false
24+
}
25+
},
26+
{
27+
"type": "deletion"
28+
},
29+
{
30+
"type": "non_fast_forward"
31+
}
32+
],
33+
"bypass_actors": [
34+
{
35+
"actor_id": 988504,
36+
"actor_type": "Integration",
37+
"bypass_mode": "always"
38+
}
39+
]
40+
}

develop-docs/sdk/processes/releases.mdx

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,16 @@ jobs:
105105
runs-on: ubuntu-latest
106106
name: "Release a new version"
107107
steps:
108-
- uses: actions/checkout@v3
109-
with:
110-
token: ${{ secrets.GH_RELEASE_PAT }}
111-
fetch-depth: 0
112108
- name: Get auth token
113109
id: token
114110
uses: actions/create-github-app-token@3378cda945da322a8db4b193e19d46352ebe2de5 #v.1.10.4
115111
with:
116112
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
117113
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
114+
- uses: actions/checkout@v3
115+
with:
116+
token: ${{ steps.token.outputs.token }}
117+
fetch-depth: 0
118118
- name: Prepare release
119119
uses: getsentry/action-prepare-release@v1
120120
env:
@@ -138,11 +138,18 @@ Here's [an example PR] and the [follow-up to fix `fetch-depth`].
138138
Give the following teams access to your repository:
139139

140140
- `engineering` -> `write`
141-
- `release-bot` -> `elevated bot`
142141

143142
You can do this self-service via the settings page of your repository:
144143
`https://github.com/getsentry/REPONAME_HERE/settings/access`
145144

145+
## Create ruleset for the repo
146+
147+
Download the [default ruleset template]:/Default_ruleset.json , and save it as a JSON file.
148+
149+
Go to the ruleset setting page of your repository: `https://github.com/getsentry/REPONAME_HERE/settings/rules`, click on the green `New ruleset` button and choose `Import a ruleset`, select the JSON file that you just downloaded. You can tweak the ruleset settings as you need, but make sure not to remove the App in Bypass List.
150+
151+
Remember to click save before you leave the page.
152+
146153
## Making Your First Release!
147154

148155
Navigate to the actions tab of your repository, locate the release workflow,

0 commit comments

Comments
 (0)