Skip to content

Commit 12ac68e

Browse files
authored
Add pre-commit checks to the copilot instructions (#7462)
1 parent c361acc commit 12ac68e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
## Pull Request Guidelines
1818
- Never touch the yarn.lock file.
19+
- Run `yarn run lint` and also `npm run hygiene` and fix any errors or warnings before submitting a PR.
1920

2021
---
2122
_Last updated: 2025-06-20_

webviews/common/context.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,10 @@ export class PRContext {
293293

294294
public openSessionLog = (link: SessionLinkInfo) => this.postMessage({ command: 'pr.open-session-log', args: { link } });
295295

296-
public openCommitChanges = (commitSha: string) => this.postMessage({ command: 'pr.openCommitChanges', args: { commitSha } as OpenCommitChangesArgs });
296+
public openCommitChanges = (commitSha: string) => {
297+
const args: OpenCommitChangesArgs = { commitSha };
298+
return this.postMessage({ command: 'pr.openCommitChanges', args });
299+
};
297300

298301
setPR = (pr: PullRequest | undefined) => {
299302
this.pr = pr;

0 commit comments

Comments
 (0)