Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
with:
fetch-depth: 0

- uses: Conalh/ScopeTrail@v0.1.6
- uses: Conalh/ScopeTrail@v0.1.7
with:
fail-on: none
```
Expand Down
2 changes: 1 addition & 1 deletion docs/PILOT.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
fetch-depth: 0

- uses: Conalh/ScopeTrail@v0.1.6
- uses: Conalh/ScopeTrail@v0.1.7
with:
fail-on: none
```
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scopetrail",
"version": "0.1.6",
"version": "0.1.7",
"description": "Code review for AI agent permission drift.",
"type": "module",
"bin": {
Expand Down
9 changes: 6 additions & 3 deletions test/action-metadata.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ test('GitHub Action metadata exposes PR drift inputs', async () => {
assert.match(action, /--format github/);
});

test('README Action install tag matches package version', async () => {
test('public Action install tags match package version', async () => {
const readme = await readFile(join(packageRoot, 'README.md'), 'utf8');
const pilotGuide = await readFile(join(packageRoot, 'docs', 'PILOT.md'), 'utf8');
const packageJson = JSON.parse(await readFile(join(packageRoot, 'package.json'), 'utf8'));
const version = packageJson.version;
const installTagPattern = new RegExp(`Conalh/ScopeTrail@v${version.replaceAll('.', '\\.')}`);

assert.equal(version, '0.1.6');
assert.match(readme, new RegExp(`Conalh/ScopeTrail@v${version.replaceAll('.', '\\.')}`));
assert.equal(version, '0.1.7');
assert.match(readme, installTagPattern);
assert.match(pilotGuide, installTagPattern);
});
4 changes: 3 additions & 1 deletion test/public-docs.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ test('pilot guide gives external maintainers a complete advisory trial path', as
const readme = await readProjectFile('README.md');
const adoption = await readProjectFile('docs', 'ADOPTION.md');
const pilot = await readProjectFile('docs', 'PILOT.md');
const packageJson = JSON.parse(await readProjectFile('package.json'));
const installTagPattern = new RegExp(`Conalh/ScopeTrail@v${packageJson.version.replaceAll('.', '\\.')}`);

assert.match(readme, /\[Pilot guide\]\(docs\/PILOT\.md\)/);
assert.match(adoption, /\[Pilot guide\]\(PILOT\.md\)/);
assert.match(pilot, /Conalh\/ScopeTrail@v0\.1\.6/);
assert.match(pilot, installTagPattern);
assert.match(pilot, /fail-on:\s*none/);
assert.match(pilot, /3-5 pull requests/i);
assert.match(pilot, /https:\/\/github\.com\/Conalh\/ScopeTrail\/issues\/18/);
Expand Down