@aspruyt/xfg 7.0.0 → 7.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- export type { PRMergeOptions, MergeMode, MergeStrategy, BypassActor, StatusCheckConfig, CodeScanningTool, PullRequestRuleParameters, RulesetRule, Ruleset, GitHubRepoSettings, RepoVisibility, SquashMergeCommitTitle, SquashMergeCommitMessage, MergeCommitTitle, MergeCommitMessage, Label, CodeScanningSettings, CodeScanningState, CodeScanningQuerySuite, CodeScanningLanguage, RepoSettings, RawFileConfig, RawRepoFileOverride, RawGroupConfig, SecretConfig, SecretsConfig, RawRootSettings, RawRepoSettings, RawRepoConfig, RawConfig, RawConditionalGroupWhen, RawConditionalGroupConfig, RepoConfig, Config, FileContent, ContentValue, } from "./types.js";
1
+ export type { PRMergeOptions, MergeMode, MergeStrategy, BypassActor, BypassMode, StatusCheckConfig, CodeScanningTool, PullRequestRuleParameters, RulesetRule, Ruleset, GitHubRepoSettings, RepoVisibility, SquashMergeCommitTitle, SquashMergeCommitMessage, MergeCommitTitle, MergeCommitMessage, Label, CodeScanningSettings, CodeScanningState, CodeScanningQuerySuite, CodeScanningLanguage, RepoSettings, RawFileConfig, RawRepoFileOverride, RawGroupConfig, SecretConfig, SecretsConfig, RawRootSettings, RawRepoSettings, RawRepoConfig, RawConfig, RawConditionalGroupWhen, RawConditionalGroupConfig, RepoConfig, Config, FileContent, ContentValue, } from "./types.js";
2
2
  export { RULESET_COMPARABLE_FIELDS } from "./types.js";
3
3
  export { loadRawConfig, loadConfig, normalizeConfig } from "./loader.js";
4
4
  export { convertContentToString } from "./formatter.js";
@@ -12,7 +12,7 @@ export interface PRMergeOptions {
12
12
  export type RulesetTarget = "branch" | "tag";
13
13
  export type RulesetEnforcement = "active" | "disabled" | "evaluate";
14
14
  export type BypassActorType = "Team" | "User" | "Integration";
15
- export type BypassMode = "always" | "pull_request";
15
+ export type BypassMode = "always" | "pull_request" | "exempt";
16
16
  type PatternOperator = "starts_with" | "ends_with" | "contains" | "regex";
17
17
  export type MergeMethod = "merge" | "squash" | "rebase";
18
18
  export type AlertsThreshold = "none" | "errors" | "errors_and_warnings" | "all";
@@ -12,7 +12,11 @@ const VALID_ACTOR_TYPES = validValues([
12
12
  "User",
13
13
  "Integration",
14
14
  ]);
15
- const VALID_BYPASS_MODES = validValues(["always", "pull_request"]);
15
+ const VALID_BYPASS_MODES = validValues([
16
+ "always",
17
+ "pull_request",
18
+ "exempt",
19
+ ]);
16
20
  const VALID_PATTERN_OPERATORS = [
17
21
  "starts_with",
18
22
  "ends_with",
@@ -1,5 +1,5 @@
1
1
  import type { RepoInfo } from "../../repo/index.js";
2
- import type { Ruleset } from "../../config/index.js";
2
+ import type { Ruleset, BypassMode } from "../../config/index.js";
3
3
  import type { GhApiOptions } from "../../shared/gh-api-utils.js";
4
4
  /**
5
5
  * GitHub Ruleset response from API (snake_case).
@@ -18,7 +18,7 @@ export interface GitHubRuleset {
18
18
  export interface GitHubBypassActor {
19
19
  actor_id: number;
20
20
  actor_type: "Team" | "User" | "Integration";
21
- bypass_mode?: "always" | "pull_request";
21
+ bypass_mode?: BypassMode;
22
22
  }
23
23
  export interface GitHubRulesetConditions {
24
24
  ref_name?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aspruyt/xfg",
3
- "version": "7.0.0",
3
+ "version": "7.1.0",
4
4
  "description": "Manage files, settings, and repositories across GitHub, Azure DevOps, and GitLab — declaratively, from a single YAML config",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",