{"id":15532109,"url":"https://github.com/endbug/project-fields","last_synced_at":"2025-04-23T13:19:04.159Z","repository":{"id":162961727,"uuid":"638212479","full_name":"EndBug/project-fields","owner":"EndBug","description":":octocat: A GitHub Action to interact with project fields","archived":false,"fork":false,"pushed_at":"2025-02-19T22:32:44.000Z","size":836,"stargazers_count":8,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T13:18:47.239Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/EndBug.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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},"funding":{"github":["endbug"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2023-05-09T10:11:25.000Z","updated_at":"2025-02-19T22:32:46.000Z","dependencies_parsed_at":"2023-10-04T17:53:15.522Z","dependency_job_id":"3699892b-ec0b-4d42-90f9-6676c3476b6d","html_url":"https://github.com/EndBug/project-fields","commit_stats":{"total_commits":103,"total_committers":5,"mean_commits":20.6,"dds":"0.41747572815533984","last_synced_commit":"a843f1eac1a2772a9d475cfd4bb32d68225c558c"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndBug%2Fproject-fields","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndBug%2Fproject-fields/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndBug%2Fproject-fields/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EndBug%2Fproject-fields/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EndBug","download_url":"https://codeload.github.com/EndBug/project-fields/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250439295,"owners_count":21430824,"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-10-02T11:29:11.762Z","updated_at":"2025-04-23T13:19:04.127Z","avatar_url":"https://github.com/EndBug.png","language":"TypeScript","readme":"# Project Fields\n\nA GitHub actions to get and set GitHub project fields.\n\n## Table of Contents\n\n- [Inputs](#inputs)\n- [Outputs](#outputs)\n- [FAQ](#faq)\n  - [Supported field types](#supported-field-types)\n  - [Tokens](#tokens)\n- [Examples](#examples)\n- [Contributors](#contributors-)\n- [License](#license)\n\n## Inputs\n\nHere's the complete list of inputs for this action, also available in the [action.yml](action.yml) file.  \nFor a minimal/typical usage, check out the [examples](#examples) section.\n\n```yml\n- uses: EndBug/project-fields@v2\n  with:\n    # ⬇️ Required inputs ⬇️\n\n    # The type of field operation. Valid options are \"get\", \"set\", \"clear\"\n    operation: get\n\n    # A comma-separated list of fields to get or set\n    # See the FAQ section for a list of supported field types\n    fields: text,number,date,select\n\n    # The GitHub token to use for authentication\n    # This token should have write access to the project, and read access\n    # to the issue/PR you're referencing (see the FAQ section for more info)\n    github_token: ${{ secrets.PROJECT_PAT }}\n\n    # The URL of the project\n    project_url: https://github.com/users/OWNER/projects/123\n\n    # ⬇️ Optional inputs ⬇️\n\n    # The URL of the issue/PR to reference\n    # Default: the issue/PR that triggered the workflow run\n    resource_url: https://github.com/OWNER/REPO/issues/123\n\n    # A comma-separated list of values to update the fields with\n    # The list must have the same length as the fields one, since they have to match up\n    # Default: ''\n    values: abc,123,2000-10-30,option\n```\n\n## Outputs\n\nThe action provides only one output:\n\n- `values`: a comma-separated list of the current values of the fields\n\n## FAQ\n\n### Supported field types\n\nThe action supports the following field data types:\n\n|  Field Type   |   GraphQL Type   |                      Description                   |\n| :-----------: | :--------------: | :------------------------------------------------: |\n|     Text      | [String][String] |            The literal string in the field         |\n|    Number     |  [Float][Float]  |         The string representation of a number      |\n|     Date      |   [Date][Date]   |           The date in the YYYY-MM-DD format        |\n| Single Select | [String][String] |   The name of the option (must be an exact match)  |\n|   Iteration   | [String][String] | The name of the iteration (must be an exact match) |\n\n[String]: https://docs.github.com/en/graphql/reference/scalars#string\n[Float]: https://docs.github.com/en/graphql/reference/scalars#float\n[Date]: https://docs.github.com/en/graphql/reference/scalars#date\n\n### Tokens\n\nYour token **has to be a classic PAT**: the new fine-grained tokens do not work with the GraphQL API yet.\n\nThe token should have the following scopes:\n\n- `repo`: needed read issues and PRs from private repositories. If you're using the action on a public repository, you can just use `public_repo` instead.\n- `project`: needed to update project fields. If you're only using the action to get the fields, you can just use `read:project` instead.\n\n## Examples\n\n### Get field values\n\n```yml\non: [issues, pull_request]\n\n# ...\n\n- uses: EndBug/project-fields@v2\n  id: fields\n  with:\n    operation: get\n    fields: text,number,date,select\n    github_token: ${{ secrets.PROJECT_PAT }}\n    project_url: https://github.com/OWNER/REPO/issues/123\n\n- run: echo ${{ steps.fields.outputs.values }}\n```\n\n### Update field values\n\n```yml\non: [issues, pull_request]\n\n# ...\n\n- name: Set outputs A and B\n  id: script\n  run: # ...\n\n- uses: EndBug/project-fields@v2\n  with:\n    operation: set\n    fields: first,second\n    github_token: ${{ secrets.PROJECT_PAT }}\n    project_url: https://github.com/OWNER/REPO/issues/123\n    values: ${{ steps.script.outputs.a }},${{ steps.script.outputs.b }}\n```\n\n### Clear fields\n\n```yml\non: [issues, pull_request]\n\n# ...\n\n- uses: EndBug/project-fields@v2\n  with:\n    operation: clear\n    fields: first,second\n    github_token: ${{ secrets.PROJECT_PAT }}\n    project_url: https://github.com/OWNER/REPO/issues/123\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/EndBug\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/26386270?v=4?s=100\" width=\"100px;\" alt=\"Federico Grandi\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eFederico Grandi\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/EndBug/project-fields/commits?author=EndBug\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/ben-v\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/8211835?v=4?s=100\" width=\"100px;\" alt=\"Ben\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eBen\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/EndBug/project-fields/commits?author=ben-v\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://yarosz.com\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/3142961?v=4?s=100\" width=\"100px;\" alt=\"Nicolas Yarosz\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eNicolas Yarosz\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#maintenance-yarosz\" title=\"Maintenance\"\u003e🚧\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/kjswartz\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/9609631?v=4?s=100\" width=\"100px;\" alt=\"Kyle Swartz\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eKyle Swartz\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/EndBug/project-fields/commits?author=kjswartz\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n  \u003ctfoot\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" size=\"13px\" colspan=\"7\"\u003e\n        \u003cimg src=\"https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg\"\u003e\n          \u003ca href=\"https://all-contributors.js.org/docs/en/bot/usage\"\u003eAdd your contributions\u003c/a\u003e\n        \u003c/img\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tfoot\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n\n### Additional credits\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\" width=\"200px\" height=\"150px\"\u003e\n      \u003cimg width=100 src=\"https://avatars.githubusercontent.com/u/21289761?\u0026v=4\"\u003e\n    \u003c/td\u003e\n    \u003ctd align=\"center\" width=\"450px\"\u003e\n      This project has started thanks to the input of the\u003cbr\u003e\u003ca href=\"https://githubcampus.expert\" style=\"white-space: nowrap;\"\u003eGitHub Campus Experts Program 🚩\u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## License\n\nThis project is distributed under the MIT License, check the [license file](LICENSE) for more info.\n","funding_links":["https://github.com/sponsors/endbug"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendbug%2Fproject-fields","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fendbug%2Fproject-fields","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fendbug%2Fproject-fields/lists"}