{"id":15704287,"url":"https://github.com/nicklegan/github-repo-self-approve-action","last_synced_at":"2025-05-12T16:43:31.112Z","repository":{"id":60551029,"uuid":"499488505","full_name":"nicklegan/github-repo-self-approve-action","owner":"nicklegan","description":"A GitHub Action to automatically approve your own pull request for a protected branch using a GitHub App.","archived":false,"fork":false,"pushed_at":"2025-03-01T01:41:34.000Z","size":256,"stargazers_count":7,"open_issues_count":4,"forks_count":4,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-24T23:37:56.083Z","etag":null,"topics":["actions","code-review","pull-requests"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/nicklegan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":".github/code_of_conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/security.md","support":null}},"created_at":"2022-06-03T11:38:03.000Z","updated_at":"2025-01-17T17:11:18.000Z","dependencies_parsed_at":"2023-02-17T00:31:04.667Z","dependency_job_id":null,"html_url":"https://github.com/nicklegan/github-repo-self-approve-action","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"86495ef73587b7ebbda94ec221f814ddde1677ba"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklegan%2Fgithub-repo-self-approve-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklegan%2Fgithub-repo-self-approve-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklegan%2Fgithub-repo-self-approve-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicklegan%2Fgithub-repo-self-approve-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicklegan","download_url":"https://codeload.github.com/nicklegan/github-repo-self-approve-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253778408,"owners_count":21962862,"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":["actions","code-review","pull-requests"],"created_at":"2024-10-03T20:11:09.210Z","updated_at":"2025-05-12T16:43:31.023Z","avatar_url":"https://github.com/nicklegan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Repository Self-Approve Action\n\n\u003e A GitHub Action to automatically approve your own pull request for a protected branch using a GitHub App.\n\n## Usage\n\n```yaml\nname: Self-Approve Action\n\non:\n  pull_request:\n\njobs:\n  self-approve-action:\n    runs-on: ubuntu-latest\n\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v3\n\n      - name: Self-Approve Action\n        uses: nicklegan/github-repo-self-approve-action@v1.0.1\n        if: github.actor == 'your-username'\n        with:\n          appid: ${{ secrets.APPID }}\n          privatekey: ${{ secrets.PRIVATEKEY }}\n          installationid: ${{ secrets.INSTALLATIONID }}\n```\n\n## GitHub App\n\n[Register](https://docs.github.com/developers/apps/building-github-apps/creating-a-github-app) a new organization or personal owned GitHub App with the below permissions:\n\n| GitHub App Permission                  | Access         |\n| :------------------------------------- | :------------- |\n| `Repository Permissions:Contents`      | read and write |\n| `Repository Permissions:Pull requests` | read and write |\n\nAfter registration install the GitHub App to your organization. Store the below App values as secrets.\n\n## GitHub secrets\n\n| Name             | Value                             | Required |\n| :--------------- | :-------------------------------- | :------- |\n| `APPID`          | GitHub App ID number              | `true`   |\n| `PRIVATEKEY`     | Content of private key .pem file  | `true`   |\n| `INSTALLATIONID` | GitHub App installation ID number | `true`   |\n\nFinally set your GitHub username as the `github.actor` conditional value within the workflow file.\n\n:bulb: The GitHub App name will be used as the name for the approving reviewer.\n\n## Action inputs\n\n| Name           | Description                                         | Default | Options        | Required |\n| :------------- | :-------------------------------------------------- | :------ | :------------- | :------- |\n| `github.actor` | Approve pull requests created by the user specified |         | [workflow.yml] | `false`  |\n\n[workflow.yml]: #Usage 'Usage'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicklegan%2Fgithub-repo-self-approve-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicklegan%2Fgithub-repo-self-approve-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicklegan%2Fgithub-repo-self-approve-action/lists"}