Skip to content

chore(release): 0.2.2#10

Merged
rhuanbarreto merged 1 commit into
mainfrom
release
Feb 23, 2026
Merged

chore(release): 0.2.2#10
rhuanbarreto merged 1 commit into
mainfrom
release

Conversation

@archgatebot

@archgatebot archgatebot Bot commented Feb 23, 2026

Copy link
Copy Markdown
Contributor

archgate

0.2.2 (2026-02-23)

Bug Fixes

  • use NPM_TOKEN for registry auth alongside --provenance (8fcd418)

This PR was generated with simple-release.

📄 Cheatsheet

You can configure the bot's behavior through a pull request comment using the !simple-release/set-options command.

Command Format

!simple-release/set-options

```json
{
  "bump": {},
  "publish": {}
}
```

Useful Parameters

Bump

Parameter Type Description
version string Force set specific version
as 'major' | 'minor' | 'patch' | 'prerelease' Release type
prerelease string Pre-release identifier (e.g., "alpha", "beta")
firstRelease boolean Whether this is the first release
skip boolean Skip version bump
byProject Record<string, object> Per-project bump options for monorepos

Publish

Parameter Type Description
skip boolean Skip publishing
access 'public' | 'restricted' Package access level
tag string Tag for npm publication

Usage Examples

Force specific version

!simple-release/set-options

```json
{
  "bump": {
    "version": "2.0.0"
  }
}
```

Force major bump

!simple-release/set-options

```json
{
  "bump": {
    "as": "major"
  }
}
```

Create alpha pre-release

!simple-release/set-options

```json
{
  "bump": {
    "prerelease": "alpha"
  }
}
```

Publish with specific access and tag

!simple-release/set-options

```json
{
  "bump": {
    "prerelease": "beta"
  },
  "publish": {
    "access": "public",
    "tag": "beta"
  }
}
```

Access Restrictions

The command can only be used by users with permissions:

  • repository owner
  • organization member
  • collaborator

Notes

  • The last comment with !simple-release/set-options command takes priority
  • JSON must be valid, otherwise the command will be ignored
  • Parameters apply only to the current release execution
  • The command can be updated by editing the comment or adding a new one

@rhuanbarreto rhuanbarreto merged commit 1847cbb into main Feb 23, 2026
2 checks passed
rhuanbarreto pushed a commit that referenced this pull request Feb 28, 2026
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
rhuanbarreto pushed a commit that referenced this pull request Mar 3, 2026
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
rhuanbarreto pushed a commit that referenced this pull request Mar 4, 2026
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
rhuanbarreto added a commit that referenced this pull request May 18, 2026
Renovate PR #284 re-pinned the SLSA generator to a SHA digest,
breaking provenance generation on the v0.37.0 release. The SLSA
generator's generate-builder.sh rejects non-tag refs.

This is the same fix as #250. A Renovate exclusion rule has been
added to archgate/renovate-config (PR #10) to prevent recurrence.

Ref: slsa-framework/slsa-github-generator#150

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
@archgatebot archgatebot Bot mentioned this pull request May 18, 2026
rhuanbarreto added a commit that referenced this pull request May 19, 2026
* fix(ci): revert SLSA reusable workflow to tag pin

Renovate PR #284 re-pinned the SLSA generator to a SHA digest,
breaking provenance generation on the v0.37.0 release. The SLSA
generator's generate-builder.sh rejects non-tag refs.

This is the same fix as #250. A Renovate exclusion rule has been
added to archgate/renovate-config (PR #10) to prevent recurrence.

Ref: slsa-framework/slsa-github-generator#150
Signed-off-by: Rhuan Barreto <rhuan@barreto.work>

* test: improve code coverage from 63% to 74% (+179 tests)

Add comprehensive tests across 21 files covering previously untested
command action handlers, helper functions, and engine logic. Tests
follow existing conventions: bun:test, temp dirs, spyOn mocking,
globalThis.fetch replacement, and SPDX headers.

Phase 1 - Pure logic:
- rule-scanner: scanImportedRuleSource() AST analysis
- registry: detectTarget() and resolveSource() edge cases
- update-check: cache-miss write path and semver edge cases
- pack-recommend: recommendPacks() with mocked shallowClone

Phase 2 - Command integration:
- New: telemetry command (status/enable/disable)
- New: doctor command (--json, formatted output, WSL, errors)
- session-context: error paths for all 4 editors
- review-context: error handling and option forwarding
- login: status/logout/login action handlers
- adr/create: --files, --rules, --json non-interactive paths

Phase 3 - Helpers with I/O mocking:
- telemetry: CI detection, shell detection, track* functions
- platform: WSL paths return null on non-WSL, resolveCommand

Phase 4 - Complex commands:
- adr/sync: --check, --yes, --json, diff detection, source filter
- adr/import: --list, --dry-run, --yes, ID remapping, rules copy
- upgrade: formatBytes, already-up-to-date, fetch failure paths
- plugin/url: all --editor variants

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>

* fix(test): sort import test assertions to avoid filesystem ordering differences

The --dry-run --json and --yes --json tests assumed ADR files would be
read in alphabetical order, but Linux readdir returns them in a different
order than Windows. Sort the parsed arrays by ID before asserting.

Also compact comment blocks to stay under the 500-line oxlint limit.

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>

* test: add WSL detection tests via env-var mocking on Linux CI

On the Linux CI runner, set WSL_DISTRO_NAME/WSL_INTEROP env vars to
exercise the WSL detection branches in platform.ts without needing a
real WSL environment. The wslpath/cmd.exe calls fail gracefully
(returning null), which covers the error paths too.

Also test the vscode-settings WSL fallback path: when WSL is detected
but cmd.exe is unavailable, getVscodeUserSettingsPath falls through
to the standard Linux ~/.config path.

Tests are gated with test.skipIf(!isNativeLinux) so they only run on
the Linux CI runner and are skipped on Windows/macOS.

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>

* test: add remaining coverage improvements (Phases 3+4)

Add tests for 11 more files covering helpers with I/O mocking,
complex commands, and previously never-loaded modules.

Phase 3 - Helpers with I/O mocking:
- credential-store: gitCredentialFill timeout, clearCredentials
- telemetry-config: showFirstRunNoticeIfNeeded all branches
- install-info: getProjectContext edge cases, cache behavior
- vscode-settings: addMarketplaceToUserSettings, WSL fallback
- init-project: configureEditorSettings all editors, tryInstallPlugin
- binary-upgrade: checksum verify/mismatch, zip extraction, replaceBinary

Phase 4 - Complex commands and never-loaded files:
- plugin-install: URL builders, CLI checks, install/download functions
- plugin/install cmd: auth guard, editor paths, failure handling
- login-flow: full device flow, signup, TLS errors (all mocked)
- check cmd: registration + action handler via temp project fixtures
- formats/rules: RuleSet/RuleResult schema validation

Also fix mock.module cross-test pollution in plugin/install.test.ts
by converting findProjectRoot mock from mock.module to spyOn.

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>

* fix(test): fix CI failures in credential-store and vscode-settings tests

- credential-store: gate saveCredentials tests that depend on OS
  credential helper behavior with test.skipIf(platform !== "win32").
  Fix round-trip test to set GIT_CONFIG_GLOBAL to point at the custom
  gitconfig with the store helper.
- vscode-settings: use a fresh nested subdir for the "creates directory
  structure" test so it doesn't fail when ~/.config/Code/ already exists
  on the CI runner.
- Re-add WSL fallback test that was lost during agent merge.

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>

* fix(test): fix remaining CI failures on Linux

- vscode-settings: remove pre-condition assertion that settings dir
  doesn't exist (homedir() on Linux may not reflect HOME override,
  and ~/.config/Code/ may already exist on CI runner)
- credential-store: skip round-trip test entirely — git credential
  store helper interaction differs across platforms due to Bun.env
  snapshot timing. Remove unused isWindows import.

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>

---------

Signed-off-by: Rhuan Barreto <rhuan@barreto.work>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant