Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The => is SOOO NICE! Why do you disrespect the arrow!!!!

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:
- "*"
''';