-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP - create GH issue listing packages to deprecate
- Loading branch information
1 parent
0c3c3ee
commit c9e42b3
Showing
8 changed files
with
214 additions
and
59 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace NugetVersionDeprecator; | ||
|
||
internal class AgentRelease | ||
{ | ||
[JsonProperty("eolDate")] | ||
public DateTime EolDate { get; set; } | ||
[JsonProperty("version")] | ||
public string Version { get; set; } | ||
} |
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,11 @@ | ||
// Copyright 2023 New Relic, Inc. All rights reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
namespace NugetVersionDeprecator | ||
{ | ||
public class Configuration | ||
{ | ||
[YamlDotNet.Serialization.YamlMember(Alias = "nuget-packages")] | ||
public List<string> Packages { get; set; } | ||
} | ||
} |
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,12 @@ | ||
// Copyright 2023 New Relic, Inc. All rights reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
namespace NugetVersionDeprecator; | ||
|
||
public enum ExitCode : int | ||
{ | ||
Success = 0, | ||
Error = 1, | ||
FileNotFound = 2, | ||
BadArguments = 160 | ||
} |
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,18 @@ | ||
// Copyright 2023 New Relic, Inc. All rights reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
using CommandLine; | ||
|
||
namespace NugetVersionDeprecator; | ||
|
||
public class Options | ||
{ | ||
[Option('t', "test-mode", Required = true, HelpText = "Test mode, report deprecated packages but don't create GH Issue")] | ||
public bool TestMode { get; set; } | ||
|
||
[Option('c', "config", Default = "config.yml", Required = false, HelpText = "Path to the configuration file.")] | ||
public required string ConfigurationPath { get; set; } | ||
|
||
[Option('g', "github-token", Required = true, HelpText = "The Github token to use when creating new issues")] | ||
public string GithubToken { get; set; } | ||
} |
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,5 @@ | ||
public class PackageDeprecationInfo | ||
{ | ||
public string PackageName { get; set; } | ||
public string PackageVersion { get; set; } | ||
} |
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,12 @@ | ||
# Copyright 2023 New Relic, Inc. All rights reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# NuGetPackages | ||
# A list of NuGet package names to validate | ||
nuget-packages: | ||
- NewRelic.Agent | ||
- NewRelic.Agent.Api | ||
- NewRelic.Azure.Websites | ||
- NewRelic.Azure.Websites.x64 | ||
- NewRelicWindowsAzure | ||
|