Skip to content

Commit 4f3fa07

Browse files
committed
Initial updates from PR review
1 parent e2bf89a commit 4f3fa07

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/actions/file/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ inputs:
1414
cached_filings:
1515
description: "Cached filings from previous runs, as stringified JSON. Without this, duplicate issues may be filed."
1616
required: false
17-
screenshot_repo:
17+
screenshot_repository:
1818
description: "Repository (with owner) where screenshots are stored on the gh-cache branch. Defaults to the 'repository' input if not set. Required if issues are open in a different repo to construct proper screenshot URLs."
1919
required: false
2020

.github/actions/file/src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,15 @@ export default async function () {
2020
);
2121
const repoWithOwner = core.getInput("repository", { required: true });
2222
const token = core.getInput("token", { required: true });
23-
const screenshotRepo = core.getInput("screenshot_repo", { required: false }) || repoWithOwner;
23+
const screenshotRepo =
24+
core.getInput("screenshot_repository", { required: false }) ||
25+
repoWithOwner;
2426
const cachedFilings: (ResolvedFiling | RepeatedFiling)[] = JSON.parse(
2527
core.getInput("cached_filings", { required: false }) || "[]"
2628
);
2729
core.debug(`Input: 'findings: ${JSON.stringify(findings)}'`);
2830
core.debug(`Input: 'repository: ${repoWithOwner}'`);
29-
core.debug(`Input: 'screenshot_repo: ${screenshotRepo}'`);
31+
core.debug(`Input: 'screenshot_repository: ${screenshotRepo}'`);
3032
core.debug(`Input: 'cached_filings: ${JSON.stringify(cachedFilings)}'`);
3133

3234
const octokit = new OctokitWithThrottling({

.github/actions/find/src/findForUrl.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export async function findForUrl(
3939
if (!fs.existsSync(SCREENSHOT_DIR)) {
4040
fs.mkdirSync(SCREENSHOT_DIR, { recursive: true });
4141
console.log(`Created screenshot directory: ${SCREENSHOT_DIR}`);
42+
} else {
43+
console.log(`Using existing screenshot directory ${SCREENSHOT_DIR}`);
4244
}
4345

4446
try {

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ runs:
9393
repository: ${{ inputs.repository }}
9494
token: ${{ inputs.token }}
9595
cached_filings: ${{ steps.normalize_cache.outputs.value }}
96-
screenshot_repo: ${{ github.repository }}
96+
screenshot_repository: ${{ github.repository }}
9797
- if: ${{ steps.file.outputs.filings }}
9898
name: Get issues from filings
9999
id: get_issues_from_filings

0 commit comments

Comments
 (0)