@@ -9,6 +9,7 @@ import { getEnvValue } from '#env/rewire'
99 * GITHUB_API_URL environment variable.
1010 * GitHub API URL (e.g., https://api.github.com).
1111 */
12+ /*@__NO_SIDE_EFFECTS__ */
1213export function getGithubApiUrl ( ) : string | undefined {
1314 return getEnvValue ( 'GITHUB_API_URL' )
1415}
@@ -17,6 +18,7 @@ export function getGithubApiUrl(): string | undefined {
1718 * GITHUB_BASE_REF environment variable.
1819 * GitHub pull request base branch.
1920 */
21+ /*@__NO_SIDE_EFFECTS__ */
2022export function getGithubBaseRef ( ) : string | undefined {
2123 return getEnvValue ( 'GITHUB_BASE_REF' )
2224}
@@ -25,6 +27,7 @@ export function getGithubBaseRef(): string | undefined {
2527 * GITHUB_REF_NAME environment variable.
2628 * GitHub branch or tag name.
2729 */
30+ /*@__NO_SIDE_EFFECTS__ */
2831export function getGithubRefName ( ) : string | undefined {
2932 return getEnvValue ( 'GITHUB_REF_NAME' )
3033}
@@ -33,6 +36,7 @@ export function getGithubRefName(): string | undefined {
3336 * GITHUB_REF_TYPE environment variable.
3437 * GitHub ref type (branch or tag).
3538 */
39+ /*@__NO_SIDE_EFFECTS__ */
3640export function getGithubRefType ( ) : string | undefined {
3741 return getEnvValue ( 'GITHUB_REF_TYPE' )
3842}
@@ -41,6 +45,7 @@ export function getGithubRefType(): string | undefined {
4145 * GITHUB_REPOSITORY environment variable.
4246 * GitHub repository name in owner/repo format.
4347 */
48+ /*@__NO_SIDE_EFFECTS__ */
4449export function getGithubRepository ( ) : string | undefined {
4550 return getEnvValue ( 'GITHUB_REPOSITORY' )
4651}
@@ -49,6 +54,7 @@ export function getGithubRepository(): string | undefined {
4954 * GITHUB_SERVER_URL environment variable.
5055 * GitHub server URL (e.g., https://github.com).
5156 */
57+ /*@__NO_SIDE_EFFECTS__ */
5258export function getGithubServerUrl ( ) : string | undefined {
5359 return getEnvValue ( 'GITHUB_SERVER_URL' )
5460}
@@ -57,6 +63,7 @@ export function getGithubServerUrl(): string | undefined {
5763 * GITHUB_TOKEN environment variable.
5864 * GitHub authentication token for API access.
5965 */
66+ /*@__NO_SIDE_EFFECTS__ */
6067export function getGithubToken ( ) : string | undefined {
6168 return getEnvValue ( 'GITHUB_TOKEN' )
6269}
@@ -65,6 +72,7 @@ export function getGithubToken(): string | undefined {
6572 * GH_TOKEN environment variable.
6673 * Alternative GitHub authentication token for API access (used by GitHub CLI).
6774 */
75+ /*@__NO_SIDE_EFFECTS__ */
6876export function getGhToken ( ) : string | undefined {
6977 return getEnvValue ( 'GH_TOKEN' )
7078}
0 commit comments