Skip to content

Commit

Permalink
update dependabot config; update related blast tweak (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew authored May 3, 2024
1 parent 678fe95 commit bbb5c08
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 13 deletions.
8 changes: 3 additions & 5 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ updates:
labels:
- autosubmit
groups:
dependencies:
patterns: ["*"]
ignore:
- dependency-name: "*"
update-types: ["version-update:semver-patch"]
dependencies:
patterns:
- "*"
19 changes: 13 additions & 6 deletions pkgs/blast_repo/lib/src/tweaks/dependabot_tweak.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,16 @@ Iterable<Object> _allowedActionValues() =>

const _packageEcosystemKey = 'package-ecosystem';

Map<String, Object> _githubActionValue(String frequency) => {
_packageEcosystemKey: 'github-actions',
'directory': '/',
'schedule': {'interval': frequency},
'labels': ['autosubmit'],
};
Map<String, Object> _githubActionValue(String frequency) {
return {
_packageEcosystemKey: 'github-actions',
'directory': '/',
'schedule': {'interval': frequency},
'labels': ['autosubmit'],
'groups': {
'dependencies': {
'patterns': ['*']
}
},
};
}
16 changes: 14 additions & 2 deletions pkgs/blast_repo/test/dependabot_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ updates: "bob"
final result = doDependabotFix(r'''
#some comment
version: 2
enable-beta-ecosystems: true
updates:
- package-ecosystem: "pub"
directory: "/"
Expand All @@ -43,7 +43,7 @@ updates:
expect(result, r'''
#some comment
version: 2
enable-beta-ecosystems: true
updates:
- package-ecosystem: "pub"
directory: "/"
Expand All @@ -55,6 +55,10 @@ updates:
interval: monthly
labels:
- autosubmit
groups:
dependencies:
patterns:
- "*"
''');
});

Expand All @@ -74,6 +78,10 @@ updates:
interval: "$frequency"
labels:
- autosubmit
groups:
dependencies:
patterns:
- "*"
''';
final result = doDependabotFix(input);

Expand Down Expand Up @@ -104,4 +112,8 @@ updates:
interval: monthly
labels:
- autosubmit
groups:
dependencies:
patterns:
- "*"
''';

0 comments on commit bbb5c08

Please sign in to comment.