• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

samsmithnz / RepoAutomation / 3895898324

pending completion
3895898324

push

github

GitHub
Merge pull request #212 from samsmithnz/FixToLanguageTest

333 of 474 branches covered (70.25%)

Branch coverage included in aggregate %.

795 of 893 relevant lines covered (89.03%)

6.27 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/src/RepoAutomation.Core/Helpers/GitHubDependabot.cs
1
using GitHubActionsDotNet.Helpers;
2
using System.Text;
3

4
namespace RepoAutomation.Core.Helpers
5
{
6
    public static class GitHubDependabot
7
    {
8
        public static string SetupDependabotFile(string workingDirectory, string owner)
9
        {
2✔
10
            StringBuilder log = new();
2✔
11

12
            log.Append("Scanning repo for dependabot dependencies");
2✔
13
            List<string> files = FileSearch.GetFilesForDirectory(workingDirectory);
2✔
14

15
            log.Append("Generating dependabot configuration");
2✔
16
            string yaml = GitHubActionsDotNet.Serialization.DependabotSerialization.Serialize(workingDirectory, files,
2✔
17
                "daily",
2✔
18
                "06:00",
2✔
19
                "America/New_York",
2✔
20
                new() { owner },
2✔
21
                10,
2✔
22
                true);
2✔
23

24
            log.Append("Writing dependabot configuration to file: " + workingDirectory + "\\.github\\dependabot.yml");
2✔
25
            File.WriteAllText(workingDirectory + "\\.github\\dependabot.yml", yaml);
2✔
26

27
            return log.ToString();
2✔
28
        }
2✔
29

30
    }
31
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc