forked from ChilliCream/graphql-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.GitHub.cs
35 lines (27 loc) · 1.08 KB
/
Build.GitHub.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using System;
using Nuke.Common;
partial class Build
{
[Parameter] readonly string GitHubToken;
[Parameter] readonly string CodeCovToken;
/// <summary>
/// ChilliCream/hotchocolate
/// </summary>
[Parameter] readonly string GitHubRepository = Environment.GetEnvironmentVariable("GITHUB_REPOSITORY");
/// <summary>
/// Unique identifier of your PR. Must correspond to the key of the PR in GitHub.
/// E.G.: sonar.pullrequest.key=5
/// </summary>
[Parameter] readonly string GitHubPRNumber = Environment.GetEnvironmentVariable("HC_GITHUB_PR_NR");
/// <summary>
/// The name of your PR
/// Ex: sonar.pullrequest.branch=feature/my-new-feature
/// </summary>
[Parameter] readonly string GitHubHeadRef = Environment.GetEnvironmentVariable("HC_GITHUB_HEAD_REF");
/// <summary>
/// The long-lived branch into which the PR will be merged.
/// Default: master
/// E.G.: sonar.pullrequest.base=master
/// </summary>
[Parameter] readonly string GitHubBaseRef = Environment.GetEnvironmentVariable("HC_GITHUB_BASE_REF");
}