Skip to content

Commit 3be6cb9

Browse files
committed
Fix reusable template expansion in Dependabot Actions examples
1 parent 0b9fe8d commit 3be6cb9

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

content/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions.md

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ Most automation requires you to know information about the contents of the pull
5050

5151
Example:
5252

53-
{% raw %}
54-
5553
```yaml copy
5654
{% data reusables.actions.actions-not-certified-by-github-comment %}
5755
name: Dependabot fetch metadata
@@ -77,8 +75,6 @@ jobs:
7775
# - steps.metadata.outputs.update-type
7876
```
7977

80-
{% endraw %}
81-
8278
For more information, see the [`dependabot/fetch-metadata`](https://github.com/dependabot/fetch-metadata) repository.
8379

8480
## Labeling a pull request
@@ -87,8 +83,6 @@ If you have other automation or triage workflows based on {% data variables.prod
8783

8884
Example that flags all production dependency updates with a label:
8985

90-
{% raw %}
91-
9286
```yaml copy
9387
{% data reusables.actions.actions-not-certified-by-github-comment %}
9488
name: Dependabot auto-label
@@ -115,16 +109,12 @@ jobs:
115109
PR_URL: ${{github.event.pull_request.html_url}}
116110
```
117111
118-
{% endraw %}
119-
120112
## Automatically approving a pull request
121113
122114
You can automatically approve {% data variables.product.prodname_dependabot %} pull requests by using the {% data variables.product.prodname_cli %} in a workflow.
123115
124116
Example:
125117
126-
{% raw %}
127-
128118
```yaml copy
129119
{% data reusables.actions.actions-not-certified-by-github-comment %}
130120
name: Dependabot auto-approve
@@ -150,8 +140,6 @@ jobs:
150140
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
151141
```
152142
153-
{% endraw %}
154-
155143
## Enabling automerge on a pull request
156144
157145
If you want to allow maintainers to mark certain pull requests for automerge, you can use {% data variables.product.prodname_dotcom %}'s automerge functionality. This enables the pull request to be merged when any tests and approvals required by the branch protection rules are successfully met.
@@ -160,8 +148,6 @@ For more information, see [AUTOTITLE](/pull-requests/collaborating-with-pull-req
160148
161149
You can instead use {% data variables.product.prodname_actions %} and the {% data variables.product.prodname_cli %}. Here is an example that automerges all patch updates to `my-dependency`:
162150

163-
{% raw %}
164-
165151
```yaml copy
166152
{% data reusables.actions.actions-not-certified-by-github-comment %}
167153
name: Dependabot auto-merge
@@ -189,8 +175,6 @@ jobs:
189175
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
190176
```
191177

192-
{% endraw %}
193-
194178
> [!NOTE]
195179
> If you use status checks to test pull requests, you should enable **Require status checks to pass before merging** for the target branch for {% data variables.product.prodname_dependabot %} pull requests. This branch protection rule ensures that pull requests are not merged unless **all the required status checks pass**. For more information, see [AUTOTITLE](/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/managing-a-branch-protection-rule).
196180

0 commit comments

Comments
 (0)