{"id":13530218,"url":"https://github.com/maxkomarychev/octions","last_synced_at":"2025-07-14T04:40:31.282Z","repository":{"id":38538259,"uuid":"229137592","full_name":"maxkomarychev/octions","owner":"maxkomarychev","description":"Collection of GitHub Actions that wrap GitHub REST API","archived":false,"fork":false,"pushed_at":"2023-01-05T16:23:04.000Z","size":26683,"stargazers_count":38,"open_issues_count":17,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-18T08:49:10.595Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/maxkomarychev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-19T20:57:53.000Z","updated_at":"2024-10-22T04:38:55.000Z","dependencies_parsed_at":"2023-02-04T07:32:31.394Z","dependency_job_id":null,"html_url":"https://github.com/maxkomarychev/octions","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkomarychev%2Foctions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkomarychev%2Foctions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkomarychev%2Foctions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxkomarychev%2Foctions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxkomarychev","download_url":"https://codeload.github.com/maxkomarychev/octions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244912800,"owners_count":20530764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":"2024-08-01T07:00:46.021Z","updated_at":"2025-03-22T05:31:35.731Z","avatar_url":"https://github.com/maxkomarychev.png","language":"JavaScript","funding_links":[],"categories":["Community Resources","JavaScript"],"sub_categories":["Collection of Actions"],"readme":"# Octions\n\n## What is an _oction_?\n\n**O**ctokit + A**ction** = **Oction** - it is a [GitHub Action](https://github.com/features/actions) that exposes single REST API call from [@octokit/routes](https://github.com/octokit/routes)\n\n## API\n\nExplore [catalog](#catalog) for API relevant for every specific oction.\n\nCommon API are listed below:\n\n### Common inputs\n\n| Name           | Type             | Description                                                                                                                              |\n| -------------- | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |\n| token          | string           | Valid token to authorize API calls                                                                                                       |\n| file_output    | string           | Store result of the action in specified file                                                                                             |\n| custom_outputs | multiline string | Custom outputs to create for step. This has to be YAML multiline string literal `custom_outputs: |\u003cnewline\u003e output_name:path.in.result`\" |\n\n#### Read input from file\n\nIf value of the input beings with `FILE::` the rest of the string is treated as\npath and oction will use data of that file as value of the input.\n\nExample. This will pust output of `cloc` as a comment in a pr:\n\n```yaml\non:\n  pull_request:\n    types:\n      - opened\n      - synchronize\n\njobs:\n  cloc:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v1\n      - run: npx cloc . \u003e cloc.txt\n      - uses: maxkomarychev/octions/octions/issues/create-comment@master\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          issue_number: ${{ github.event.pull_request.number }}\n          body: FILE::cloc.txt\n```\n\n### Common outputs\n\n| Name   | Description                                |\n| ------ | ------------------------------------------ |\n| id     | `id` field of the response (if exists)     |\n| number | `number` field of the response (if exists) |\n| status | HTTP status of underlying API call         |\n\n## Catalog\n\n[Catalog](CATALOG.md)\n\n## Examples\n\n### Close every issue immediatelly once it is opened\n\n```yaml\non:\n  issues:\n    types:\n      - opened\n\njobs:\n  close-issue:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v1\n      - run: echo \"${{ toJson(github.event) }}\"\n      - uses: maxkomarychev/octions/octions/issues/update@master\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          issue_number: ${{ github.event.issue.number }}\n          state: closed\n          custom_outputs: |\n            user:data.user.login\n      - uses: maxkomarychev/octions/octions/issues/create-comment@master\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }}\n          issue_number: ${{ github.event.issue.number }}\n          body: You can't create issues here!\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxkomarychev%2Foctions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxkomarychev%2Foctions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxkomarychev%2Foctions/lists"}