{"id":31397553,"url":"https://github.com/rollbar/autofix-action","last_synced_at":"2026-02-17T19:01:29.160Z","repository":{"id":315975187,"uuid":"1055182756","full_name":"rollbar/autofix-action","owner":"rollbar","description":"Rollbar Autofix GitHub Action","archived":false,"fork":false,"pushed_at":"2025-10-20T22:43:16.000Z","size":12220,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-30T00:44:45.830Z","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/rollbar.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-09-11T22:30:16.000Z","updated_at":"2025-10-20T22:43:12.000Z","dependencies_parsed_at":"2025-09-22T00:49:24.972Z","dependency_job_id":"7ff6e7bb-046a-4f02-87bf-86be3a6f6587","html_url":"https://github.com/rollbar/autofix-action","commit_stats":null,"previous_names":["rollbar/autofix-action"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rollbar/autofix-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollbar%2Fautofix-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollbar%2Fautofix-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollbar%2Fautofix-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollbar%2Fautofix-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rollbar","download_url":"https://codeload.github.com/rollbar/autofix-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rollbar%2Fautofix-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29554377,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T18:16:07.221Z","status":"ssl_error","status_checked_at":"2026-02-17T18:16:04.782Z","response_time":100,"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":"2025-09-29T13:51:31.052Z","updated_at":"2026-02-17T19:01:29.136Z","avatar_url":"https://github.com/rollbar.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rollbar Autofix\n\nAutomatically opens PRs to fix Rollbar errors using Codex and the Rollbar MCP server.\n\n## Usage\n\nCreate the following workflow as `.github/workflows/rollbar-autofix.yml`:\n\n```yaml\nname: Rollbar Autofix\nrun-name: \"${{ github.event_name == 'workflow_dispatch' \u0026\u0026 format('Fix Rollbar Item #{0}', github.event.inputs.item_counter) || github.event.client_payload.item_counter \u0026\u0026 format('Fix Rollbar Item #{0}', github.event.client_payload.item_counter) || github.head_ref \u0026\u0026 format('Fix Rollbar Item {0}', github.head_ref) || format('Fix Rollbar Item #{0}', github.run_number) }}\"\n\n\non:\n  repository_dispatch:\n    types: [rollbar-autofix]\n  workflow_dispatch:\n    inputs:\n      item_counter:\n        description: \"Rollbar item counter (e.g., 123456)\"\n        required: true\n        type: string\n  pull_request_review:\n    types: [submitted]\n  issue_comment:\n    types: [created]\n\npermissions:\n  contents: write\n\njobs:\n  autofix:\n    # Only gate PR-review triggered runs; other triggers always run\n    if: |\n      (github.event_name != 'pull_request_review' \u0026\u0026 github.event_name != 'issue_comment') ||\n      (\n        github.event_name == 'pull_request_review' \u0026\u0026\n        github.event.action == 'submitted' \u0026\u0026\n        github.event.review.state == 'changes_requested' \u0026\u0026\n        startsWith(github.event.pull_request.head.ref, 'autofix/rollbar-item-')\n      ) || (\n        github.event_name == 'issue_comment' \u0026\u0026\n        github.event.action == 'created' \u0026\u0026\n        github.event.issue.pull_request != null \u0026\u0026\n        contains(github.event.comment.body, '/autofix')\n      )\n    permissions:\n      contents: write\n      pull-requests: write\n      issues: write\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v4\n        with:\n          fetch-depth: 0\n\n      - name: Run AutoFix Agent\n        id: autofix\n        uses: rollbar/autofix-action@v0.1\n        with:\n          rollbar_access_token: ${{ secrets.ROLLBAR_AUTOFIX_ACCESS_TOKEN }}\n          github_token: ${{ secrets.ROLLBAR_AUTOFIX_GITHUB_TOKEN }}\n          openai_api_key: ${{ secrets.OPENAI_API_KEY }}\n          item_counter: ${{ github.event_name == 'workflow_dispatch' \u0026\u0026 github.event.inputs.item_counter || github.event.client_payload.item_counter }}\n          environment: production\n          language: python 3.10, node 16\n          test_command: npm test --silent\n          lint_command: npm run -s lint\n          max_iterations: 2\n          pr_base: master\n```\n\n## Inputs\n\n- `openai_api_key` (required): API key for Codex.\n- `rollbar_access_token` (required): Rollbar project access token (read/write) for MCP tools.\n- `github_token` (optional): Token used to open the PR. Use a PAT to allow PR-triggered workflows; omit to use `GITHUB_TOKEN`.\n- `item_counter` (required): Rollbar item counter (e.g., `123456`).\n- `environment` (optional): Rollbar environment; default `unknown`.\n- `language` (optional): Project language hint; default `unknown`.\n- `test_command` (optional): Command to run tests.\n- `lint_command` (optional): Command to run lints.\n- `max_iterations` (optional): Max fix iterations; default `1`.\n- `pr_base` (optional): Base branch for PR; default `main`.\n\n## Outputs\n\n- `summary`: Markdown summary of what the agent did.\n- `branch_name`: Suggested branch name for the PR.\n- `pr_title`: Pull request title emitted by the agent (or fallback).\n- `pr_body`: Pull request body emitted by the agent with the repro script appended.\n\n## Permissions\n\n- Requires `contents: write` and `pull-requests: write`.\n\n## Templates and Overrides\n\nThis action bundles Markdown templates for the Codex prompt and PR body and allows host repositories to override them without changing the action code.\n\nDefaults (bundled in this repo):\n\n- `${{ github.action_path }}/templates/prompt.md`\n- `${{ github.action_path }}/templates/pr-template.md`\n\nHost-level overrides (optional):\n\n- `.github/rollbar-autofix/prompt.md`\n- `.github/rollbar-autofix/pr-template.md`\n\nPlaceholders supported in both templates:\n\n- `{{ITEM_COUNTER}}`, `{{ENVIRONMENT}}`, `{{LANGUAGE}}`, `{{TEST_COMMAND}}`, `{{LINT_COMMAND}}`, `{{MAX_ITERATIONS}}`\n- In the PR template, `{{ISSUE_DESCRIPTION}}` is replaced with the extracted issue description block produced by Codex.\n\nNote: The prompt template must retain the exact `=== ISSUE DESCRIPTION START ===` / `=== ISSUE DESCRIPTION END ===` markers so the workflow can extract the Issue Description.\n\n## Versioning\n\nUse semver tags and a major alias once published. Recommended usage in workflows: `rollbar/autofix-action@v1`.\n\n## Development\n\n- Run `npm install` to install dependencies.\n- Make changes under `src/` and update the bundled files with `npm run build`.\n- Commit the generated `dist/` artifacts alongside source changes.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frollbar%2Fautofix-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frollbar%2Fautofix-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frollbar%2Fautofix-action/lists"}