{"id":14985969,"url":"https://github.com/srggrs/assign-one-project-github-action","last_synced_at":"2025-09-25T15:52:09.099Z","repository":{"id":36539481,"uuid":"225862895","full_name":"srggrs/assign-one-project-github-action","owner":"srggrs","description":"Automatically add an issue or pull request to specific GitHub Project(s) when you create and/or label them.","archived":false,"fork":false,"pushed_at":"2021-10-05T09:30:10.000Z","size":55,"stargazers_count":173,"open_issues_count":22,"forks_count":60,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-01T20:31:29.490Z","etag":null,"topics":["action","actions","bash","docker","github-action","github-actions","github-actions-docker","github-projects","management","organisation","project","project-management","projects","utilities","utility"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/srggrs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-04T12:32:44.000Z","updated_at":"2025-03-29T02:11:25.000Z","dependencies_parsed_at":"2023-01-11T20:41:54.802Z","dependency_job_id":null,"html_url":"https://github.com/srggrs/assign-one-project-github-action","commit_stats":{"total_commits":85,"total_committers":10,"mean_commits":8.5,"dds":0.2705882352941177,"last_synced_commit":"4fc2b23bdaaac08e64dcc590a6e138d2f9b8c86e"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srggrs%2Fassign-one-project-github-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srggrs%2Fassign-one-project-github-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srggrs%2Fassign-one-project-github-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srggrs%2Fassign-one-project-github-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srggrs","download_url":"https://codeload.github.com/srggrs/assign-one-project-github-action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247147053,"owners_count":20891615,"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":["action","actions","bash","docker","github-action","github-actions","github-actions-docker","github-projects","management","organisation","project","project-management","projects","utilities","utility"],"created_at":"2024-09-24T14:12:03.664Z","updated_at":"2025-09-25T15:52:04.059Z","avatar_url":"https://github.com/srggrs.png","language":"Shell","readme":"# GitHub Action for Assign to One Project\n\n[![Docker Cloud Automated build](https://img.shields.io/docker/cloud/automated/srggrs/assign-one-project-github-action)][docker]\n[![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/srggrs/assign-one-project-github-action)][docker]\n[![Docker Pulls](https://img.shields.io/docker/pulls/srggrs/assign-one-project-github-action)][docker]\n[![GitHub license](https://img.shields.io/github/license/srggrs/assign-one-project-github-action.svg)][license]\n![Latest Version](https://img.shields.io/github/v/release/srggrs/assign-one-project-github-action?color=orange\u0026label=latest%20release)\n\n[docker]: https://hub.docker.com/r/srggrs/assign-one-project-github-action\n[license]: https://github.com/srggrs/assign-one-project-github-action/blob/master/LICENSE\n\nAutomatically add an issue or pull request to specific [GitHub Project](https://help.github.com/articles/about-project-boards/) when you __create__ and/or __label__ them. By default, the issues are assigned to the __`To do`__ column and the pull requests to the __`In progress`__ one, so make sure you have those columns in your project dashboard. But the workflow __allowed you to specify the column name as input__, so you can assign the issues/PRs based on a set of conditions to a specific column of a specific project.\n\n## Latest features:\n\n* included `issue_comment` as trigger for this action.\n* added project pagination for searching 100+ GitHub projects.\n\n## Acknowledgment \u0026 Motivations\n\nThis action has been modified from the original action from [masutaka](https://github.com/masutaka/github-actions-all-in-one-project). I needed to fix it as the original docker container would not build. Also I think the GitHub Action syntax changed a bit.\n\nI would like to thank @SunRunAway for adding the labelling functionality and custom column input.\n\n## Inputs\n\n### `project`\n\n**Required** The url of the project to be assigned to.\n\n### `column_name`\n\nThe column name of the project, defaults to `'To do'` for issues and `'In progress'` for pull requests.\n\n## Example usage\n\nExamples of action:\n\n### Repository project\n\n```yaml\nname: Auto Assign to Project(s)\n\non:\n  issues:\n    types: [opened, labeled]\n  pull_request:\n    types: [opened, labeled]\n  issue_comment:\n    types: [created]\nenv:\n  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n\njobs:\n  assign_one_project:\n    runs-on: ubuntu-latest\n    name: Assign to One Project\n    steps:\n    - name: Assign NEW issues and NEW pull requests to project 2\n      uses: srggrs/assign-one-project-github-action@1.2.1\n      if: github.event.action == 'opened'\n      with:\n        project: 'https://github.com/srggrs/assign-one-project-github-action/projects/2'\n\n    - name: Assign issues and pull requests with `bug` label to project 3\n      uses: srggrs/assign-one-project-github-action@1.2.1\n      if: |\n        contains(github.event.issue.labels.*.name, 'bug') ||\n        contains(github.event.pull_request.labels.*.name, 'bug')\n      with:\n        project: 'https://github.com/srggrs/assign-one-project-github-action/projects/3'\n        column_name: 'Labeled'\n```\n\n#### __Notes__\nBe careful of using the conditions above (opened and labeled issues/PRs) because in such workflow, if the issue/PR is opened and labeled at the same time, it will be assigned to __both__ projects!\n\n\nYou can use any combination of conditions. For example, to assign new issues or issues labeled with 'mylabel' to a project column, use:\n```yaml\n...\n\nif: |\n  github.event_name == 'issues' \u0026\u0026\n  (\n    github.event.action == 'opened' ||\n    contains(github.event.issue.labels.*.name, 'mylabel')\n  )\n...\n```\n\n### Organisation or User project\n\nGenerate a token from the Organisation settings or User Settings and add it as a secret in the repository secrets as `MY_GITHUB_TOKEN`\n\n```yaml\nname: Auto Assign to Project(s)\n\non:\n  issues:\n    types: [opened, labeled]\n  pull_request_target:\n    types: [opened, labeled]\n  issue_comment:\n    types: [created]\nenv:\n  MY_GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}\n\njobs:\n  assign_one_project:\n    runs-on: ubuntu-latest\n    name: Assign to One Project\n    steps:\n    - name: Assign NEW issues and NEW pull requests to project 2\n      uses: srggrs/assign-one-project-github-action@1.2.1\n      if: github.event.action == 'opened'\n      with:\n        project: 'https://github.com/srggrs/assign-one-project-github-action/projects/2'\n\n    - name: Assign issues and pull requests with `bug` label to project 3\n      uses: srggrs/assign-one-project-github-action@1.2.1\n      if: |\n        contains(github.event.issue.labels.*.name, 'bug') ||\n        contains(github.event.pull_request.labels.*.name, 'bug')\n      with:\n        project: 'https://github.com/srggrs/assign-one-project-github-action/projects/3'\n        column_name: 'Labeled'\n```\n\n## [Change Log](./CHANGELOG.md)\n\nPlease refer to the list of changes [here](./CHANGELOG.md)\n","funding_links":[],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrggrs%2Fassign-one-project-github-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrggrs%2Fassign-one-project-github-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrggrs%2Fassign-one-project-github-action/lists"}