{"id":13473855,"url":"https://github.com/alex-page/add-new-pulls-project","last_synced_at":"2025-03-26T19:34:49.174Z","repository":{"id":57173190,"uuid":"181225083","full_name":"alex-page/add-new-pulls-project","owner":"alex-page","description":"✨ GitHub action to magically add new pull requests to projects","archived":true,"fork":false,"pushed_at":"2019-08-31T21:05:38.000Z","size":44,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-10-30T06:33:35.384Z","etag":null,"topics":["github-actions","github-projects","pull-requests"],"latest_commit_sha":null,"homepage":"","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/alex-page.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}},"created_at":"2019-04-13T20:26:48.000Z","updated_at":"2023-01-28T17:22:56.000Z","dependencies_parsed_at":"2022-08-24T13:31:06.483Z","dependency_job_id":null,"html_url":"https://github.com/alex-page/add-new-pulls-project","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-page%2Fadd-new-pulls-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-page%2Fadd-new-pulls-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-page%2Fadd-new-pulls-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alex-page%2Fadd-new-pulls-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alex-page","download_url":"https://codeload.github.com/alex-page/add-new-pulls-project/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245722962,"owners_count":20661856,"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":["github-actions","github-projects","pull-requests"],"created_at":"2024-07-31T16:01:07.519Z","updated_at":"2025-03-26T19:34:48.820Z","avatar_url":"https://github.com/alex-page.png","language":"JavaScript","funding_links":[],"categories":["Community Resources"],"sub_categories":["GitHub Tools and Management"],"readme":"# ‼️This is no longer supported ‼️\n\nPlease use [`GitHub Project Automation+`](https://github.com/marketplace/actions/github-project-automation) instead. The following snippet adds all new pull requests to a project column using GitHub Project Automation+:\n\n```yml\nname: Automate project columns\n\non: [pull_request]\n\njobs:\n  automate-project-columns:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Move new pull requests into Triage\n        if: github.event_name == 'pull_request' \u0026\u0026 github.event.action == 'opened'\n        uses: alex-page/automate-project-columns@master\n        with:\n          project: Backlog\n          column: Triage\n          repo-token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n---\n\n\n# Add new pull requests to project\n\n\u003e ✨ GitHub action to automagically add new pull requests to projects.\n\n\n## How to use\n\nTo use this action we need the project name and the name of the column for the new pull requests will go into. The project and column names will be used to get a column ID for automation.\n\nIn your project create a new workflow file `.github/main.workflow`:\n```\nworkflow \"✨Add new pull requests to projects\" {\n  resolves = [\"alex-page/add-new-pulls-project\"]\n  on = \"pull_request\"\n}\n\naction \"alex-page/add-new-pulls-project\" {\n  uses = \"alex-page/add-new-pulls-project@master\"\n  args = [ \"🎒 Backlog\", \"To do\"]\n  secrets = [\"GITHUB_TOKEN\"]\n}\n```\n\n\u003e Note: Replace `🎒 Backlog` with your project name and `To do` with your project column.\n\n\n## Private repositories\n\nIn some cases you may want to do add this functionality for a private repository or one you do not have admin rights to. You will likely get an error like:\n```shell\nGraphqlError: Resource not accessible by integration\n```\n\nWhen this happens you will need to provide a [personal access token](https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line). To do this you will need to create a new secret called `GH_PAT` with your secret. You will then need to change the `.github/main.workflow` secrets to include that token:\n```\nsecrets = [\"GH_PAT\"]\n```\n\n\n## Release history\n\n- v0.0.5 - Deprecated\n- v0.0.4 - Fix incorrect documentation\n- v0.0.3 - Add optional personal access token for private repos\n- v0.0.2 - End in a neutral state for unsupported pull request action\n- v0.0.1 - First release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-page%2Fadd-new-pulls-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falex-page%2Fadd-new-pulls-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falex-page%2Fadd-new-pulls-project/lists"}