Skip to content

Commit

Permalink
Merge pull request #171 from JoshuaKGoldberg/precommit-build-release
Browse files Browse the repository at this point in the history
chore: run build:release in .husky/pre-commit
  • Loading branch information
JoshuaKGoldberg committed Jan 4, 2024
2 parents ff06351 + d956a96 commit 46788b2
Show file tree
Hide file tree
Showing 15 changed files with 61,848 additions and 45,590 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/prepare
- run: pnpm build:release

name: Build (Release)

on:
pull_request: ~
push:
branches:
- main
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged
pnpm build:release
4 changes: 2 additions & 2 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"infile",
"knip",
"lcov",
"outro",
"packagejson",
"quickstart",
"wontfix",
"outro"
"wontfix"
]
}
6 changes: 3 additions & 3 deletions dist/dataIsRepoFile.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interface RepoFile {
content: string;
encoding: "base64";
type: "file";
content: string;
encoding: "base64";
type: "file";
}
export declare function dataIsRepoFile(data: unknown): data is RepoFile;
export {};
213 changes: 96 additions & 117 deletions dist/doesPullAlreadyHaveComment.d.ts
Original file line number Diff line number Diff line change
@@ -1,118 +1,97 @@
import { Locator, Octokit } from "./types.js";
export declare function doesPullAlreadyHaveComment(
octokit: Octokit,
locator: Locator,
id: number
): Promise<
| {
id: number;
node_id: string;
url: string;
body?: string | undefined;
body_text?: string | undefined;
body_html?: string | undefined;
html_url: string;
user: {
name?: string | null | undefined;
email?: string | null | undefined;
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string | null;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
starred_at?: string | undefined;
} | null;
created_at: string;
updated_at: string;
issue_url: string;
author_association:
| "COLLABORATOR"
| "CONTRIBUTOR"
| "FIRST_TIMER"
| "FIRST_TIME_CONTRIBUTOR"
| "MANNEQUIN"
| "MEMBER"
| "NONE"
| "OWNER";
performed_via_github_app?:
| {
id: number;
slug?: string | undefined;
node_id: string;
owner: {
name?: string | null | undefined;
email?: string | null | undefined;
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string | null;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
starred_at?: string | undefined;
} | null;
name: string;
description: string | null;
external_url: string;
html_url: string;
created_at: string;
updated_at: string;
permissions: {
issues?: string | undefined;
checks?: string | undefined;
metadata?: string | undefined;
contents?: string | undefined;
deployments?: string | undefined;
} & {
[key: string]: string;
};
events: string[];
installations_count?: number | undefined;
client_id?: string | undefined;
client_secret?: string | undefined;
webhook_secret?: string | null | undefined;
pem?: string | undefined;
}
| null
| undefined;
reactions?:
| {
url: string;
total_count: number;
"+1": number;
"-1": number;
laugh: number;
confused: number;
heart: number;
hooray: number;
eyes: number;
rocket: number;
}
| undefined;
}
| undefined
>;
export declare function doesPullAlreadyHaveComment(octokit: Octokit, locator: Locator, id: number): Promise<{
id: number;
node_id: string;
url: string;
body?: string | undefined;
body_text?: string | undefined;
body_html?: string | undefined;
html_url: string;
user: {
name?: string | null | undefined;
email?: string | null | undefined;
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string | null;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
starred_at?: string | undefined;
} | null;
created_at: string;
updated_at: string;
issue_url: string;
author_association: "COLLABORATOR" | "CONTRIBUTOR" | "FIRST_TIMER" | "FIRST_TIME_CONTRIBUTOR" | "MANNEQUIN" | "MEMBER" | "NONE" | "OWNER";
performed_via_github_app?: {
id: number;
slug?: string | undefined;
node_id: string;
owner: {
name?: string | null | undefined;
email?: string | null | undefined;
login: string;
id: number;
node_id: string;
avatar_url: string;
gravatar_id: string | null;
url: string;
html_url: string;
followers_url: string;
following_url: string;
gists_url: string;
starred_url: string;
subscriptions_url: string;
organizations_url: string;
repos_url: string;
events_url: string;
received_events_url: string;
type: string;
site_admin: boolean;
starred_at?: string | undefined;
} | null;
name: string;
description: string | null;
external_url: string;
html_url: string;
created_at: string;
updated_at: string;
permissions: {
[key: string]: string | undefined;
issues?: string | undefined;
checks?: string | undefined;
metadata?: string | undefined;
contents?: string | undefined;
deployments?: string | undefined;
};
events: string[];
installations_count?: number | undefined;
client_id?: string | undefined;
client_secret?: string | undefined;
webhook_secret?: string | null | undefined;
pem?: string | undefined;
} | null | undefined;
reactions?: {
url: string;
total_count: number;
"+1": number;
"-1": number;
laugh: number;
confused: number;
heart: number;
hooray: number;
eyes: number;
rocket: number;
} | undefined;
} | undefined>;
2 changes: 1 addition & 1 deletion dist/doesPullAlreadyHaveComment.d.ts.map

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

1 change: 1 addition & 0 deletions dist/doesPullAlreadyHaveComment.test.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export {};
1 change: 1 addition & 0 deletions dist/doesPullAlreadyHaveComment.test.d.ts.map

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

5 changes: 1 addition & 4 deletions dist/getExistingContributors.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import { Locator, Octokit } from "./types.js";
export type ExistingContributions = Record<string, Set<string> | undefined>;
export declare function getExistingContributors(
octokit: Octokit,
locator: Locator
): Promise<ExistingContributions>;
export declare function getExistingContributors(octokit: Octokit, locator: Locator): Promise<ExistingContributions>;
2 changes: 1 addition & 1 deletion dist/getExistingContributors.d.ts.map

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

6 changes: 1 addition & 5 deletions dist/getMissingContributions.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
import { ContributorContributions } from "all-contributors-for-repository";
import { ExistingContributions } from "./getExistingContributors.js";
export declare function getMissingContributions(
contributor: string,
contributions: ContributorContributions,
existingContributors: ExistingContributions
): ContributorContributions;
export declare function getMissingContributions(contributor: string, contributions: ContributorContributions, existingContributors: ExistingContributions): ContributorContributions;
Loading

0 comments on commit 46788b2

Please sign in to comment.