Skip to content

Commit cc04962

Browse files
Merge pull request #41 from vk-or/doc/branch-protection-status-check
Tune formatting
2 parents 75f7685 + 3e3feda commit cc04962

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

website/docs/r/branch_protection.html.markdown

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ resource "github_team_repository" "example" {
8787
}
8888
```
8989

90-
## Example Usage - Status Check with job_name and/or job_id
90+
### Example Usage - Status Check with job_name and/or job_id
9191

9292
Given the following workflow:
9393

@@ -122,7 +122,7 @@ resource "github_branch_protection" "example" {
122122
}
123123
}
124124
```
125-
## Example Usage - Status Check with Matrix Jobs
125+
### Example Usage - Status Check with Matrix Jobs
126126
For example, given the following workflow:
127127
```yaml
128128
...
@@ -160,7 +160,7 @@ resource "github_branch_protection" "example" {
160160
}
161161
```
162162

163-
## Example Usage - Status Check with Matrix Jobs (No Job Name)
163+
### Example Usage - Status Check with Matrix Jobs (No Job Name)
164164

165165
If the workflow does **not** have a `name` attribute:
166166
```yaml
@@ -198,7 +198,7 @@ resource "github_branch_protection" "example" {
198198
}
199199
```
200200

201-
## Example Usage - Status Check with Reusable Workflows
201+
### Example Usage - Status Check with Reusable Workflows
202202

203203
When using reusable workflows, the status check context follows the pattern: `<calling_workflow_job> / <called_workflow_job>`.
204204
If the caller or called workflow job has a `name` attribute, use the job name. If it doesn't have a `name` attribute, use the `job_id`.
@@ -240,7 +240,7 @@ resource "github_branch_protection" "example" {
240240
}
241241
```
242242

243-
## Example Usage - Status Check with Reusable Workflows (No Job Names)
243+
### Example Usage - Status Check with Reusable Workflows (No Job Names)
244244

245245
If the workflows do **not** have `name` attributes:
246246

0 commit comments

Comments
 (0)