{"id":42026086,"url":"https://github.com/pleaseai/config","last_synced_at":"2026-01-26T04:09:11.141Z","repository":{"id":321169540,"uuid":"1084762963","full_name":"pleaseai/config","owner":"pleaseai","description":"PleaseAI configuration schema and utilities","archived":false,"fork":false,"pushed_at":"2025-12-16T13:40:05.000Z","size":82,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-20T03:51:23.716Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pleaseai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-28T05:57:40.000Z","updated_at":"2025-12-16T13:40:09.000Z","dependencies_parsed_at":"2025-10-28T08:14:05.183Z","dependency_job_id":"508f5d2a-a5fc-4dd1-9ff8-cb431c0fef9c","html_url":"https://github.com/pleaseai/config","commit_stats":null,"previous_names":["pleaseai/config"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pleaseai/config","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleaseai%2Fconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleaseai%2Fconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleaseai%2Fconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleaseai%2Fconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pleaseai","download_url":"https://codeload.github.com/pleaseai/config/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pleaseai%2Fconfig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28766485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T03:54:34.369Z","status":"ssl_error","status_checked_at":"2026-01-26T03:54:33.031Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-26T04:09:10.570Z","updated_at":"2026-01-26T04:09:11.135Z","avatar_url":"https://github.com/pleaseai.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @pleaseai/config\n\nPleaseAI configuration schema, loader, and generator.\n\n## Overview\n\nThis package provides:\n- **Type-safe schema** using Zod for validation\n- **Config loading** from local files or GitHub\n- **Config generation** with customizable options\n- **Helper functions** for config inspection\n\n## Installation\n\n```bash\nbun add @pleaseai/config\n```\n\n## Usage\n\n### Load Config from File\n\n```typescript\nimport { loadConfig } from '@pleaseai/config'\n\nconst config = await loadConfig('/path/to/repo')\n// Returns validated Config object or DEFAULT_CONFIG if file doesn't exist\n```\n\n### Load Config from GitHub\n\n```typescript\nimport { loadConfigFromGitHub } from '@pleaseai/config'\n\nconst config = await loadConfigFromGitHub(\n  octokit,\n  'owner',\n  'repo',\n  'main' // optional ref\n)\n// Fetches .please/config.yml from repository\n```\n\n### Generate Config\n\n```typescript\nimport { generateConfig, generateConfigYAML } from '@pleaseai/config'\n\n// Generate config object with defaults\nconst config = generateConfig({\n  language: 'en',\n  enableCodeReview: true,\n  enableIssueWorkflow: true,\n})\n\n// Generate YAML string\nconst yaml = generateConfigYAML({ language: 'ko' })\n```\n\n### Use Helper Functions\n\n```typescript\nimport {\n  isCodeReviewDisabled,\n  shouldReviewPR,\n  isAutoTriageEnabled,\n  isInvestigateEnabled,\n  isFixEnabled,\n  getLanguage,\n} from '@pleaseai/config'\n\nif (isCodeReviewDisabled(config)) {\n  // Skip code review\n}\n\nif (shouldReviewPR(config, isDraft)) {\n  // Perform review\n}\n\nconst language = getLanguage(config) // 'ko' | 'en'\n```\n\n## Config Schema\n\n### code_review\n\n```yaml\ncode_review:\n  disable: false\n  comment_severity_threshold: MEDIUM # LOW | MEDIUM | HIGH\n  max_review_comments: -1 # -1 for unlimited\n  pull_request_opened:\n    help: false\n    summary: true\n    code_review: true\n    include_drafts: true\n```\n\n### issue_workflow\n\n```yaml\nissue_workflow:\n  disable: false\n  triage:\n    auto: true\n    manual: true\n    update_issue_type: true\n  investigate:\n    enabled: true\n    org_members_only: true\n    auto_on_bug_label: false\n  fix:\n    enabled: true\n    org_members_only: true\n    require_investigation: false\n    auto_create_pr: true\n    auto_run_tests: true\n```\n\n### General Settings\n\n```yaml\nignore_patterns: []\nlanguage: ko # ko | en\n```\n\n## Types\n\n```typescript\nimport type {\n  Config,\n  Language,\n  SeverityLevel,\n  CodeReviewConfig,\n  IssueWorkflowConfig,\n  PullRequestOpenedConfig,\n  GenerateConfigOptions,\n} from '@pleaseai/config'\n```\n\n## Testing\n\n```bash\nbun test\n```\n\nAll functions have comprehensive test coverage with Red → Green → Refactor TDD methodology.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpleaseai%2Fconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpleaseai%2Fconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpleaseai%2Fconfig/lists"}