コンテンツにスキップ

ファクトの型

このページは、エンジンのバージョン 0.16.0 のコードから生成しています。リリースとリリースの間は main のコードを表示するため、次のバージョンの変更がすでに入っていることがあります。

ファクトとは、Pointsman 自身が調べるデータです。たとえば、ある場所が浸水想定区域に入るか、プルリクエストが変更したファイルの数などです。ファクトを AI が推測することはありません。プロファイルでは、このページの型を指定してファクトを定義し、ルールからその型のフィールドを読みます。

コードから取り込んだ説明文は英語のままです。

表の「意味」の列では、プロファイルでファクトに付けた名前を name と書いています。

共通のファクト型(ケイパビリティ)はエンジンが定義します。答えるのはモジュールで、自分のレイヤーにだけ答えるモジュールもあります。

Inside an area of a layer.

答えるモジュール: @pointsman/facts-gsi(レイヤー gsi-flood-max)

フィールド種類意味
insideはい・いいえtrue のとき: 場所がnameの範囲内
rank数値nameのランク
class文字列nameの区分

プロファイルで name・type・at のほかに書ける設定です。

設定型必須説明
layerstringはいLayer id for inside and nearest, configured per deployment (source, licence, attribution).

at の位置に値がないときは no_location(リクエストに位置がない)として欠けます。3 秒で調べるのをやめます。

The nearest feature of a layer.

答えるモジュール: @pointsman/facts-gsi(レイヤー gsi-shelters-flood)

フィールド種類意味
foundはい・いいえtrue のとき: 最寄りのnameが見つかった
distance_m数値最寄りのnameまでの距離 (m)
name文字列最寄りのnameの名前

プロファイルで name・type・at のほかに書ける設定です。

設定型必須説明
layerstringはいLayer id for inside and nearest, configured per deployment (source, licence, attribution).

at の位置に値がないときは no_location(リクエストに位置がない)として欠けます。3 秒で調べるのをやめます。

Extra metres around a closed section (needs a LineString).

答えるモジュール: @pointsman/facts-valhalla

フィールド種類意味
possibleはい・いいえtrue のとき: 迂回路(name)がある
extra_m数値迂回路(name)で遠回りになる距離 (m)
route文字列人と地図のための値です。ルールでは使えません。

プロファイルで name・type・at のほかに書ける設定です。

設定型必須説明
mode“drive” | “walk”いいえFor detour: by car (drive, the default) or on foot (walk).
routebooleanいいえFor detour: also return the way around (route, an encoded polyline). Default false: the route starts and ends at the section, so it is stored with each decision.

at の位置に値がないときは no_location(リクエストに位置がない)として欠けます。8 秒で調べるのをやめます。

モジュール @pointsman/github のファクト型です。このモジュールが読むデプロイの設定: FACTS_GITHUB, FACTS_GITHUB_TOKEN, FACTS_GITHUB_APP_ID, FACTS_GITHUB_APP_PRIVATE_KEY, FACTS_GITHUB_IGNORE_CHECK

A pull request.

フィールド種類意味
openはい・いいえtrue のとき: プルリクエストnameがオープン
mergedはい・いいえtrue のとき: プルリクエストnameがマージ済み
draftはい・いいえtrue のとき: プルリクエストnameがドラフト
wip_titleはい・いいえtrue のとき: nameのタイトルに WIP とある
files数値nameの変更ファイル数
changed_lines数値nameの変更行数
base_is_defaultはい・いいえtrue のとき: nameがデフォルトブランチ向け
author_memberはい・いいえtrue のとき: nameの作成者がオーナーのメンバー
author_dependabotはい・いいえtrue のとき: nameが Dependabot によるもの
forkはい・いいえtrue のとき: nameがフォークから
all_commits_verifiedはい・いいえtrue のとき: nameのすべてのコミットに検証済みの署名がある
pushed_by_author文字列「nameのすべてのコミットを作成者が push したか」の答え
author_sole_code_ownerはい・いいえtrue のとき: nameの作成者が変更ファイルすべての唯一のコードオーナー

at の位置に値がないときは no_pr(リクエストにプルリクエストがない)として欠けます。5 秒で調べるのをやめます。

Changed files that match paths.

フィールド種類意味
anyはい・いいえtrue のとき: nameに合う変更ファイルがある
allはい・いいえtrue のとき: すべての変更ファイルがnameに合う
count数値nameに合う変更ファイルの数

プロファイルで name・type・at のほかに書ける設定です。

設定型必須説明
pathsstring[]はいFor github_paths: the files that count, as globs from the top of the repository (*, ** and ? only), for example docs/**.
exceptstring[]いいえFor github_paths: files that never count, even when they match paths.

at の位置に値がないときは no_pr(リクエストにプルリクエストがない)として欠けます。5 秒で調べるのをやめます。

Required checks on the head commit.

フィールド種類意味
required数値必須チェック(name)の数
greenはい・いいえtrue のとき: 必須チェック(name)がすべて通った
pendingはい・いいえtrue のとき: 必須チェック(name)に終わっていないものがある
failedはい・いいえtrue のとき: 必須チェック(name)に失敗したものがある

at の位置に値がないときは no_pr(リクエストにプルリクエストがない)として欠けます。5 秒で調べるのをやめます。

A repository custom property.

フィールド種類意味
value文字列nameの値

プロファイルで name・type・at のほかに書ける設定です。

設定型必須説明
propertystringはいFor github_property: the name of a repository custom property.

at の位置に値がないときは no_pr(リクエストにプルリクエストがない)として欠けます。5 秒で調べるのをやめます。

The GitHub Actions files it changes.

フィールド種類意味
changed数値nameで変わったファイル(ワークフロー、ローカルアクション、スキャナーの設定)の数
removed数値nameで消えたファイル(ワークフロー、ローカルアクション、スキャナーの設定)の数
unparsed数値nameで安全に読めないワークフローと action.yml の数
bytes数値nameで変わったファイルの大きさ(バイト)
privileged数値nameで変わった、ベースリポジトリのトークンで動くワークフローの数
privileged_new数値nameが加えるそのようなトリガーの数
head_checkout数値nameで別のコードをチェックアウトしうる特権ジョブの数
pwn_request数値nameでチェックアウトしたコードを実行しうる特権ジョブの数
artifact_in_privileged数値nameで別の実行のアーティファクトを取り込む特権ジョブの数
remote_reusable数値nameで特権ワークフローから別リポジトリの再利用ワークフローを呼ぶか、すべてのシークレットを渡すジョブの数
secrets_new数値nameでジョブが新しく読むシークレットの数
injection数値nameのスクリプト内の信頼できない式の数
permissions_missing数値nameで permissions のないジョブの数
write_all数値nameの広い書き込み権限の数
write_new数値nameが加える書き込み権限の数
persisted数値nameでトークンをディスクに残すチェックアウトの数
unpinned数値nameでコミットやダイジェストに固定されていないアクションとイメージの数
suppressions_new数値nameが加えるスキャナーの例外の数
local_unresolved数値nameで人が読む必要のあるローカルアクションと再利用ワークフローの数
detail文字列人と地図のための値です。ルールでは使えません。

プロファイルで name・type・at のほかに書ける設定です。

設定型必須説明
privileged_triggersstring[]いいえFor github_workflows: more triggers that run in the base repository’s context, added to the defaults.
inert_actionsstring[]いいえFor github_workflows: more actions (owner/repo or owner/*) known not to run workspace content, added to the defaults (actions/checkout, actions/upload-artifact).
safe_contextsstring[]いいえFor github_workflows: more github.* paths that are safe in a script (numbers, ids, commit ids), added to the defaults. Exact paths in lower case.
base_refsstring[]いいえFor github_workflows: more expressions that name the base in a checkout’s ref, added to the defaults (github.sha, github.ref).
git_actionsstring[]いいえFor github_workflows: actions (owner/repo or owner/*) that need the git credentials of a checkout.
pin_exemptstring[]いいえFor github_workflows: actions (owner/repo or owner/*) that need not be pinned to a commit.

at の位置に値がないときは no_pr(リクエストにプルリクエストがない)として欠けます。5 秒で調べるのをやめます。

Copilot code review on the pull request.

フィールド種類意味
requestedはい・いいえtrue のとき: nameの Copilot レビューが依頼されている
reviewed_headはい・いいえtrue のとき: Copilot がnameの head コミットをレビューした
approved_headはい・いいえtrue のとき: Copilot がnameの head コミットを承認した
reviews数値nameの Copilot レビューの数

at の位置に値がないときは no_pr(リクエストにプルリクエストがない)として欠けます。5 秒で調べるのをやめます。

Whether a GitHub App approved the pull request.

フィールド種類意味
approved_headはい・いいえtrue のとき: nameのアプリが head コミットを承認した
approved_anyはい・いいえtrue のとき: nameのアプリの承認が有効
reviews数値nameのアプリのレビューの数

プロファイルで name・type・at のほかに書ける設定です。

設定型必須説明
appstringはいFor github_app_approval: the GitHub App’s slug; its bot account is “[bot]”.
bot_idintegerいいえFor github_app_approval: the account id of the app’s bot (GET /users/[bot]); when given, it must match too.

at の位置に値がないときは no_pr(リクエストにプルリクエストがない)として欠けます。5 秒で調べるのをやめます。

Whether the pull request only changes a version (and the changelog).

フィールド種類意味
version_onlyはい・いいえtrue のとき: nameがバージョン(と変更履歴)だけを変える
from文字列nameの変更前のバージョン
to文字列nameの変更後のバージョン
level文字列nameのバージョンの上げ方(major・minor・patch・none)

プロファイルで name・type・at のほかに書ける設定です。

設定型必須説明
version_filesstring[]はいFor github_release: the files where a line that sets the version may change (globs), for example package.json or src/version.ts: a key such as version, VERSION or ENGINE_VERSION with the version as its value; in a package.json only its “version” line.
version_text_filesstring[]いいえFor github_release: files where any line may carry the version, for docs that name it (globs). Never files that run.
changelogsstring[]いいえFor github_release: changelog files (globs), which may only get lines added; default CHANGELOG.md.

at の位置に値がないときは no_pr(リクエストにプルリクエストがない)として欠けます。5 秒で調べるのをやめます。

Whether the pull request only bumps npm dependency versions.

フィールド種類意味
appliesはい・いいえtrue のとき: nameが npm の依存の更新
only_manifestsはい・いいえtrue のとき: nameが package.json とロックファイルだけを変える
version_onlyはい・いいえtrue のとき: nameが依存のバージョンだけを変える
semver文字列nameの最大のバージョンの上げ方(major・minor・patch・none)
dev_onlyはい・いいえtrue のとき: nameが開発用の依存だけを上げる
registry_changedはい・いいえtrue のとき: nameがパッケージの取得元を変えうる
manifest_lines数値nameの package.json の変更行数
release_age_days数値nameが上げる先のいちばん新しいリリースの公開からの日数 (日)

at の位置に値がないときは no_pr(リクエストにプルリクエストがない)として欠けます。10 秒で調べるのをやめます。

モジュール @pointsman/coderabbit のファクト型です。このモジュールが読むデプロイの設定: FACTS_CODERABBIT, FACTS_GITHUB, FACTS_GITHUB_TOKEN, FACTS_GITHUB_APP_ID, FACTS_GITHUB_APP_PRIVATE_KEY

CodeRabbit reviews of the pull request.

フィールド種類意味
installedはい・いいえtrue のとき: nameのリポジトリで CodeRabbit が動いている
ignoredはい・いいえtrue のとき: nameの説明が CodeRabbit を止めている
reviewed_anyはい・いいえtrue のとき: CodeRabbit がnameのコミットをレビューした
reviewed_headはい・いいえtrue のとき: CodeRabbit がnameの head コミットをレビューした
in_progressはい・いいえtrue のとき: nameの CodeRabbit レビューが動いている
approved_headはい・いいえtrue のとき: CodeRabbit がnameの head コミットを承認した
rebase_onlyはい・いいえtrue のとき: nameの head が CodeRabbit の承認したコミットと同じ変更
changes_requestedはい・いいえtrue のとき: CodeRabbit がnameに変更を求めている
unresolved_threads数値nameの未解決の CodeRabbit スレッドの数
outside_diff_findingsはい・いいえtrue のとき: CodeRabbit のnameへの最新レビューに差分外の指摘がある
billable_files数値nameの CodeRabbit レビューで課金されるファイルの数
price_statedはい・いいえtrue のとき: CodeRabbit がnameの head の課金ファイル数を示した

プロファイルで name・type・at のほかに書ける設定です。

設定型必須説明
not_reviewedstring[]いいえFor coderabbit and coderabbit_spend: files CodeRabbit does not review (globs, for example **/pnpm-lock.yaml), left out of the billable count Pointsman makes when CodeRabbit stated none.

at の位置に値がないときは no_pr(リクエストにプルリクエストがない)として欠けます。5 秒で調べるのをやめます。

The pull request author’s CodeRabbit review budget.

フィールド種類意味
knownはい・いいえtrue のとき: nameが分かっている
asked_minutes_ago数値作成者がnameを尋ねてからの分数
available数値nameの無料レビューの数
wait_statedはい・いいえtrue のとき: CodeRabbit がnameの待ち時間を示した
wait_minutes数値nameで次の無料レビューまでの分数
allowance_per_hour数値nameの 1 時間あたりのレビュー数
observed_minutes_ago数値nameを読んでからの分数
taken_by_other_prはい・いいえtrue のとき: nameを読んだ後に作成者の他のプルリクエストが無料レビューを使った
author文字列nameの作成者 人と地図のための値です。ルールでは使えません。
pull_request文字列nameのプルリクエスト 人と地図のための値です。ルールでは使えません。

プロファイルで name・type・at のほかに書ける設定です。

設定型必須説明
review_actionsstring[]いいえFor coderabbit_budget and coderabbit_queue: decision actions that use a free review (default: review).

at の位置に値がないときは no_pr(リクエストにプルリクエストがない)として欠けます。5 秒で調べるのをやめます。

The author’s pull requests waiting for a CodeRabbit review ahead of this one.

フィールド種類意味
ahead数値nameで先に待っているプルリクエストの数
wait_minutes数値nameでの待ち時間(分)
author文字列nameの作成者 人と地図のための値です。ルールでは使えません。
pull_request文字列nameのプルリクエスト 人と地図のための値です。ルールでは使えません。

プロファイルで name・type・at のほかに書ける設定です。

設定型必須説明
waitingstring[]はいFor coderabbit_queue: decision actions that mean a pull request waits for a free review (for example wait, queue). A pull request whose latest decision of this profile has one of them waits.
review_actionsstring[]いいえFor coderabbit_budget and coderabbit_queue: decision actions that use a free review (default: review).
max_age_minutesintegerいいえFor coderabbit_queue: a waiting decision older than this many minutes no longer counts (default 120, at most 1440).

at の位置に値がないときは no_pr(リクエストにプルリクエストがない)として欠けます。5 秒で調べるのをやめます。

The spend on paid CodeRabbit reviews.

フィールド種類意味
price_usd数値nameのレビューの価格(米ドル)
per_pr_usd_after数値nameのレビュー後のプルリクエストあたりの支出(米ドル)
per_window_usd_after数値nameのレビュー後の時間枠あたりの支出(米ドル)
paid_for_headはい・いいえtrue のとき: nameの head の有料レビューが依頼され始まった
author文字列nameの作成者 人と地図のための値です。ルールでは使えません。
pull_request文字列nameのプルリクエスト 人と地図のための値です。ルールでは使えません。
head文字列nameの head コミット 人と地図のための値です。ルールでは使えません。

プロファイルで name・type・at のほかに書ける設定です。

設定型必須説明
pay_actionsstring[]はいFor coderabbit_spend: decision actions that pay for a review (for example pay). Every logged decision with one of them counts at its price, once per head, until shown otherwise.
usd_per_filenumberはいFor coderabbit_spend: the price per billable file, in US dollars, when CodeRabbit stated no price for the head.
window_hoursintegerいいえFor coderabbit_spend: the time window of per_window_usd_after, in hours (default 5, at most 24).
pr_hoursintegerいいえFor coderabbit_spend: how far back per_pr_usd_after counts payments of the pull request, in hours (default 48, at most 168).
payer_appsinteger[]いいえFor coderabbit_spend: GitHub Apps, by id, whose paid review comments count for paid_for_head (besides the author and organization owners and members).
not_reviewedstring[]いいえFor coderabbit and coderabbit_spend: files CodeRabbit does not review (globs, for example **/pnpm-lock.yaml), left out of the billable count Pointsman makes when CodeRabbit stated none.

at の位置に値がないときは no_pr(リクエストにプルリクエストがない)として欠けます。5 秒で調べるのをやめます。

値のないファクトは「欠けた」ファクトです。フィールド missing が true になり、reason に理由が入ります。ルールではどちらも使えます。

理由意味対象
unavailableデータが使えないすべてのファクト
timeout調べるのに時間がかかりすぎたすべてのファクト
errorエラーすべてのファクト
no_locationリクエストに位置がないinside, nearest, detour
no_prリクエストにプルリクエストがないgithub_pr, github_paths, github_checks, github_property, github_workflows, github_copilot, github_app_approval, github_release, github_bump, coderabbit, coderabbit_budget, coderabbit_queue, coderabbit_spend
staleプルリクエストに新しいコミットがある@pointsman/coderabbit
no_log読める判定ログがない(テストトークン、または判定の外での参照)@pointsman/coderabbit

Geolonia のオープンソースプロジェクト · このサイトについて