-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #431 from linear-b/dependency-integrations
Snyk and Renovate integration pages and improvements to Dependabot integration
- Loading branch information
Showing
12 changed files
with
222 additions
and
18 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
35 changes: 35 additions & 0 deletions
35
docs/automations/integrations/renovate/approve-renovate/README.md
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,35 @@ | ||
--- | ||
title: gitStream Automation - Approve and Merge Renovate Changes | ||
description: Automatically approve and merge Renovate PRs. | ||
--- | ||
# Approve and Merge Renovate Changes | ||
|
||
<!-- --8<-- [start:example]--> | ||
Approve PRs from Renovate | ||
|
||
![Approve and Merge Renovate Changes](/automations/integrations/renovate/approve-renovate/approve-renovate.png) | ||
|
||
!!! info "Configuration Description" | ||
|
||
**Conditions (all must be true):** | ||
|
||
* The PR author is Mend Renovate. | ||
|
||
**Automation Actions:** | ||
|
||
* Approve the PR | ||
* Apply an `approved-renovate` label to the PR | ||
* Merge the PR if all status checks pass. | ||
|
||
<div class="automationExample" markdown="1"> | ||
!!! example "Approve Renovate" | ||
```yaml+jinja | ||
--8<-- "docs/downloads/automation-library/integrations/renovate/approve-renovate/approve_renovate.cm" | ||
``` | ||
<div class="result" markdown> | ||
<span> | ||
[:octicons-download-24: Download this example as a CM file.](/downloads/automation-library/integrations/renovate/approve-renovate/approve_renovate.cm){ .md-button } | ||
</span> | ||
</div> | ||
<!-- --8<-- [end:example]--> | ||
|
Binary file added
BIN
+33.5 KB
docs/automations/integrations/renovate/approve-renovate/approve-renovate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,35 @@ | ||
--- | ||
title: gitStream Automation - Approve and Merge Snyk Changes | ||
description: Automatically approve and merge Snyk PRs. | ||
--- | ||
# Approve and Merge Snyk Changes | ||
|
||
<!-- --8<-- [start:example]--> | ||
Approve PRs from Snyk | ||
|
||
![Approve and Merge Snyk Changes](/automations/integrations/snyk/approve-snyk/approve-snyk.png) | ||
|
||
!!! info "Configuration Description" | ||
|
||
**Conditions (all must be true):** | ||
|
||
* The PR author is Snyk. | ||
|
||
**Automation Actions:** | ||
|
||
* Approve the PR | ||
* Apply an `approved-snyk` label to the PR | ||
* Merge the PR if all status checks pass. | ||
|
||
<div class="automationExample" markdown="1"> | ||
!!! example "Approve Snyk" | ||
```yaml+jinja | ||
--8<-- "docs/downloads/automation-library/integrations/snyk/approve-snyk/approve_snyk.cm" | ||
``` | ||
<div class="result" markdown> | ||
<span> | ||
[:octicons-download-24: Download this example as a CM file.](/downloads/automation-library/integrations/snyk/approve-snyk/approve_snyk.cm){ .md-button } | ||
</span> | ||
</div> | ||
<!-- --8<-- [end:example]--> | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions
29
docs/downloads/automation-library/integrations/dependabot/approve_dependabot_minor.cm
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,29 @@ | ||
manifest: | ||
version: 1.0 | ||
|
||
automations: | ||
merge_dependabot_minor: | ||
if: | ||
- {{ bump == 'minor' }} | ||
- {{ branch.name | includes(term="dependabot") }} | ||
- {{ branch.author | includes(term="dependabot") }} | ||
run: | ||
- action: approve@v1 | ||
- action: add-comment@v1 | ||
args: | ||
comment: | | ||
Dependabot `minor` version bumps are approved automatically. | ||
merge_dependabot_minor_patch: | ||
if: | ||
- {{ bump == 'patch' }} | ||
- {{ branch.name | includes(term="dependabot") }} | ||
- {{ branch.author | includes(term="dependabot") }} | ||
run: | ||
- action: approve@v1 | ||
- action: merge@v1 | ||
- action: add-comment@v1 | ||
args: | ||
comment: | | ||
Dependabot `patch` version bumps are approved and merged automatically. | ||
|
||
bump: {{ pr.description | extractDependabotVersionBump | compareSemver }} |
18 changes: 18 additions & 0 deletions
18
docs/downloads/automation-library/integrations/renovate/approve-renovate/approve_renovate.cm
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,18 @@ | ||
# -*- mode: yaml -*- | ||
|
||
manifest: | ||
version: 1.0 | ||
|
||
automations: | ||
approve_renovate: | ||
if: | ||
- {{ branch.author | includes(term="renovate") }} | ||
run: | ||
- action: approve@v1 | ||
- action: add-label@v1 | ||
args: | ||
label: "approved-renovate" | ||
- action: merge@v1 | ||
args: | ||
wait_for_all_checks: true | ||
squash_on_merge: true |
18 changes: 18 additions & 0 deletions
18
docs/downloads/automation-library/integrations/snyk/approve-snyk/approve_snyk.cm
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,18 @@ | ||
# -*- mode: yaml -*- | ||
|
||
manifest: | ||
version: 1.0 | ||
|
||
automations: | ||
approve_snyk: | ||
if: | ||
- {{ branch.author | includes(term="snyk") }} | ||
run: | ||
- action: approve@v1 | ||
- action: add-label@v1 | ||
args: | ||
label: "approved-snyk" | ||
- action: merge@v1 | ||
args: | ||
wait_for_all_checks: true | ||
squash_on_merge: true |
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
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,9 @@ | ||
--- | ||
title: Integrate gitStream with Mend Renovate | ||
description: Implement workflow automations for Mend Renovate. | ||
--- | ||
# Integrate gitStream with Mend Renovate | ||
|
||
<a name="approve-renovate"></a> | ||
## Auto-Merge Renovate Dependency Updates | ||
--8<-- "docs/automations/integrations/renovate/approve-renovate/README.md:example" |
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,9 @@ | ||
--- | ||
title: Integrate gitStream with Snyk | ||
description: Implement workflow automations for Snyk. | ||
--- | ||
# Integrate gitStream with Snyk | ||
|
||
<a name="approve-snyk"></a> | ||
## Auto-Merge Snyk Dependency Updates | ||
--8<-- "docs/automations/integrations/snyk/approve-snyk/README.md:example" |