{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":672091030,"defaultBranch":"main","name":"variables-github-action-example","ownerLogin":"figma","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2023-07-28T22:50:57.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/5155369?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1714061886.0","currentOid":""},"activityList":{"items":[{"before":"281d7fb474f4f17bb75a794ea6046843b0872a57","after":"92d4e33caa1a7e74fbee3fa3b817654aa14e3a18","ref":"refs/heads/main","pushedAt":"2024-04-25T16:18:06.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"},"commit":{"message":"Bump follow-redirects from 1.15.4 to 1.15.6 (#22)\n\nBumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.\r\n- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)\r\n- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)\r\n\r\n---\r\nupdated-dependencies:\r\n- dependency-name: follow-redirects\r\n dependency-type: indirect\r\n...\r\n\r\nSigned-off-by: dependabot[bot] \r\nCo-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>","shortMessageHtmlLink":"Bump follow-redirects from 1.15.4 to 1.15.6 (#22)"}},{"before":"a728a0dd235d60084efe2de2bd36f4cb32d12a5b","after":null,"ref":"refs/heads/dependabot/npm_and_yarn/follow-redirects-1.15.6","pushedAt":"2024-04-25T16:18:06.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"}},{"before":"c81bbe2361bdd01607cb0028b898a77156574a47","after":null,"ref":"refs/heads/james-yang/fix-remote-aliases","pushedAt":"2024-03-19T15:18:13.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"}},{"before":"e8813038ec7d35dedc3a582b496fb5f60451b20a","after":"281d7fb474f4f17bb75a794ea6046843b0872a57","ref":"refs/heads/main","pushedAt":"2024-03-19T15:18:13.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"},"commit":{"message":"Fix bug where aliases to remote variables could not be updated when syncing tokens to Figma (#23)\n\nFor the `sync_tokens_to_figma.ts` script, if a tokens file has aliases to variables in remote collections, e.g. `\"$value\": \"{name_of_variable}\"`, update those alias references when needed. This issue was brought up in https://github.com/figma/variables-github-action-example/pull/20.\r\n\r\nThe previous behavior was that if a tokens file has aliases to variables in a remote collection, those aliases would cause a 400 response from the `POST /v1/files/:file_key/variables` endpoint, as the script was sending up invalid variable ids inside the alias objects.\r\n\r\nNow, the script will match up token values with remote variable names and update aliases when needed.\r\n\r\nNote: we are limited by the variables API in that we cannot alias variables that aren't already consumed by current file.\r\n\r\nDemo:\r\n\r\nHere is a demo of the `sync_tokens_to_figma.ts` script updating a Figma file that has a Semantic variables collection with aliases to variables published from another file.\r\n\r\nhttps://github.com/figma/variables-github-action-example/assets/250513/592fddbc-38fe-485c-89ca-688b1777b64f\r\n\r\n## Test Plan\r\n\r\n- In one file, create and publish a variable collection\r\n- In another file, create a variable collection with variables that alias to variables from the file above\r\n- Run `npm run sync-figma-to-tokens` to export the variables from the second file into a tokens file\r\n- Run `npm run sync-tokens-to-figma` on the exported tokens file to sync the tokens back to Figma. The result is that we should noop instead of getting a 400 error from the REST API.","shortMessageHtmlLink":"Fix bug where aliases to remote variables could not be updated when s…"}},{"before":"e9798f83009a20ab80209db834c9b7d3548e713d","after":"c81bbe2361bdd01607cb0028b898a77156574a47","ref":"refs/heads/james-yang/fix-remote-aliases","pushedAt":"2024-03-18T11:35:11.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"},"commit":{"message":"Fix comments","shortMessageHtmlLink":"Fix comments"}},{"before":null,"after":"a728a0dd235d60084efe2de2bd36f4cb32d12a5b","ref":"refs/heads/dependabot/npm_and_yarn/follow-redirects-1.15.6","pushedAt":"2024-03-16T23:12:29.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"},"commit":{"message":"Bump follow-redirects from 1.15.4 to 1.15.6\n\nBumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.4 to 1.15.6.\n- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)\n- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.4...v1.15.6)\n\n---\nupdated-dependencies:\n- dependency-name: follow-redirects\n dependency-type: indirect\n...\n\nSigned-off-by: dependabot[bot] ","shortMessageHtmlLink":"Bump follow-redirects from 1.15.4 to 1.15.6"}},{"before":null,"after":"e9798f83009a20ab80209db834c9b7d3548e713d","ref":"refs/heads/james-yang/fix-remote-aliases","pushedAt":"2024-03-14T13:12:48.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"},"commit":{"message":"Fix bug where aliases to remote variables could not be updated when syncing tokens to Figma","shortMessageHtmlLink":"Fix bug where aliases to remote variables could not be updated when s…"}},{"before":"58c1c416a49fd08ea2325e545544a921fd936e94","after":null,"ref":"refs/heads/james-yang/rest-api-spec-types","pushedAt":"2024-02-22T02:07:33.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"}},{"before":"5cec84f7ecc222892eeb9efb92b352e84aab1c20","after":"e8813038ec7d35dedc3a582b496fb5f60451b20a","ref":"refs/heads/main","pushedAt":"2024-02-22T02:07:33.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"},"commit":{"message":"Replace custom REST API types with @figma/rest-api-spec types (#19)\n\nNow that we have official Typescript types for the REST API at @figma/rest-api-spec, use those types instead of the custom types we previously wrote.","shortMessageHtmlLink":"Replace custom REST API types with @figma/rest-api-spec types (#19)"}},{"before":null,"after":"58c1c416a49fd08ea2325e545544a921fd936e94","ref":"refs/heads/james-yang/rest-api-spec-types","pushedAt":"2024-02-16T11:42:20.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"},"commit":{"message":"Update spec version","shortMessageHtmlLink":"Update spec version"}},{"before":"b56eff052c1e3e341005d72ea865285d79ce8d65","after":null,"ref":"refs/heads/dependabot/npm_and_yarn/follow-redirects-1.15.4","pushedAt":"2024-01-17T02:25:26.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"}},{"before":"fc1934a5671240c5f09a4ff01f1c72a0078ba5d0","after":"5cec84f7ecc222892eeb9efb92b352e84aab1c20","ref":"refs/heads/main","pushedAt":"2024-01-17T02:25:25.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"},"commit":{"message":"Bump follow-redirects from 1.15.2 to 1.15.4 (#18)\n\nBumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.4.\r\n- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)\r\n- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.4)\r\n\r\n---\r\nupdated-dependencies:\r\n- dependency-name: follow-redirects\r\n dependency-type: indirect\r\n...\r\n\r\nSigned-off-by: dependabot[bot] \r\nCo-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>","shortMessageHtmlLink":"Bump follow-redirects from 1.15.2 to 1.15.4 (#18)"}},{"before":null,"after":"b56eff052c1e3e341005d72ea865285d79ce8d65","ref":"refs/heads/dependabot/npm_and_yarn/follow-redirects-1.15.4","pushedAt":"2024-01-10T21:50:33.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"},"commit":{"message":"Bump follow-redirects from 1.15.2 to 1.15.4\n\nBumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.4.\n- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)\n- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.4)\n\n---\nupdated-dependencies:\n- dependency-name: follow-redirects\n dependency-type: indirect\n...\n\nSigned-off-by: dependabot[bot] ","shortMessageHtmlLink":"Bump follow-redirects from 1.15.2 to 1.15.4"}},{"before":"aa732e3d831b00148fdf1d58c34ba7b4f8acd04d","after":null,"ref":"refs/heads/shared-font-limitation","pushedAt":"2023-12-01T14:50:10.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"}},{"before":"7e58562ffa3da9b675d981bf785facf96fd76e5f","after":"fc1934a5671240c5f09a4ff01f1c72a0078ba5d0","ref":"refs/heads/main","pushedAt":"2023-12-01T14:50:08.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"},"commit":{"message":"Add note about shared org font limitation (#16)","shortMessageHtmlLink":"Add note about shared org font limitation (#16)"}},{"before":null,"after":"aa732e3d831b00148fdf1d58c34ba7b4f8acd04d","ref":"refs/heads/shared-font-limitation","pushedAt":"2023-11-29T21:43:12.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"},"commit":{"message":"Add note about shared org font limitation","shortMessageHtmlLink":"Add note about shared org font limitation"}},{"before":"2e621136edfa09399ce335be0bd24aaeb8a26c6a","after":null,"ref":"refs/heads/dependabot/npm_and_yarn/babel/traverse-7.23.2","pushedAt":"2023-11-29T21:33:25.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"}},{"before":"dd2cb685e8fab3492a13dbbd87ba89bd6aa55cdb","after":"7e58562ffa3da9b675d981bf785facf96fd76e5f","ref":"refs/heads/main","pushedAt":"2023-11-29T21:33:24.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"},"commit":{"message":"Bump @babel/traverse from 7.22.8 to 7.23.2 (#14)\n\nBumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.8 to 7.23.2.\r\n- [Release notes](https://github.com/babel/babel/releases)\r\n- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)\r\n- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)\r\n\r\n---\r\nupdated-dependencies:\r\n- dependency-name: \"@babel/traverse\"\r\n dependency-type: indirect\r\n...\r\n\r\nSigned-off-by: dependabot[bot] \r\nCo-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>","shortMessageHtmlLink":"Bump @babel/traverse from 7.22.8 to 7.23.2 (#14)"}},{"before":"53007de77002eb213dd5bc14ea69b3cca9baca0c","after":"2e621136edfa09399ce335be0bd24aaeb8a26c6a","ref":"refs/heads/dependabot/npm_and_yarn/babel/traverse-7.23.2","pushedAt":"2023-11-29T21:30:50.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"},"commit":{"message":"Bump @babel/traverse from 7.22.8 to 7.23.2\n\nBumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.8 to 7.23.2.\n- [Release notes](https://github.com/babel/babel/releases)\n- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)\n- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)\n\n---\nupdated-dependencies:\n- dependency-name: \"@babel/traverse\"\n dependency-type: indirect\n...\n\nSigned-off-by: dependabot[bot] ","shortMessageHtmlLink":"Bump @babel/traverse from 7.22.8 to 7.23.2"}},{"before":"0d9b95e0967085fd6244138e8f7b22707032d144","after":null,"ref":"refs/heads/dependabot/npm_and_yarn/axios-1.6.0","pushedAt":"2023-11-29T21:27:03.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"}},{"before":"e16503a2abc8c77e37dc62980773930ec0d2a711","after":"dd2cb685e8fab3492a13dbbd87ba89bd6aa55cdb","ref":"refs/heads/main","pushedAt":"2023-11-29T21:27:01.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"},"commit":{"message":"Bump axios from 1.4.0 to 1.6.0 (#15)\n\nBumps [axios](https://github.com/axios/axios) from 1.4.0 to 1.6.0.\r\n- [Release notes](https://github.com/axios/axios/releases)\r\n- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)\r\n- [Commits](https://github.com/axios/axios/compare/v1.4.0...v1.6.0)\r\n\r\n---\r\nupdated-dependencies:\r\n- dependency-name: axios\r\n dependency-type: direct:production\r\n...\r\n\r\nSigned-off-by: dependabot[bot] \r\nCo-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>","shortMessageHtmlLink":"Bump axios from 1.4.0 to 1.6.0 (#15)"}},{"before":null,"after":"0d9b95e0967085fd6244138e8f7b22707032d144","ref":"refs/heads/dependabot/npm_and_yarn/axios-1.6.0","pushedAt":"2023-11-11T14:10:42.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"},"commit":{"message":"Bump axios from 1.4.0 to 1.6.0\n\nBumps [axios](https://github.com/axios/axios) from 1.4.0 to 1.6.0.\n- [Release notes](https://github.com/axios/axios/releases)\n- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)\n- [Commits](https://github.com/axios/axios/compare/v1.4.0...v1.6.0)\n\n---\nupdated-dependencies:\n- dependency-name: axios\n dependency-type: direct:production\n...\n\nSigned-off-by: dependabot[bot] ","shortMessageHtmlLink":"Bump axios from 1.4.0 to 1.6.0"}},{"before":null,"after":"53007de77002eb213dd5bc14ea69b3cca9baca0c","ref":"refs/heads/dependabot/npm_and_yarn/babel/traverse-7.23.2","pushedAt":"2023-10-19T11:57:35.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"},"commit":{"message":"Bump @babel/traverse from 7.22.8 to 7.23.2\n\nBumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.8 to 7.23.2.\n- [Release notes](https://github.com/babel/babel/releases)\n- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)\n- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)\n\n---\nupdated-dependencies:\n- dependency-name: \"@babel/traverse\"\n dependency-type: indirect\n...\n\nSigned-off-by: dependabot[bot] ","shortMessageHtmlLink":"Bump @babel/traverse from 7.22.8 to 7.23.2"}},{"before":"d1c4b194501a2b77482d99bb935cfa085b24afa0","after":null,"ref":"refs/heads/james-yang/demo","pushedAt":"2023-08-28T19:04:11.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"}},{"before":"51d05d0e2ecbaf1cbf55b9c71037e705d5290851","after":null,"ref":"refs/heads/update-tokens","pushedAt":"2023-08-28T19:04:10.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"}},{"before":null,"after":"51d05d0e2ecbaf1cbf55b9c71037e705d5290851","ref":"refs/heads/update-tokens","pushedAt":"2023-08-28T18:17:23.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Update tokens from Figma","shortMessageHtmlLink":"Update tokens from Figma"}},{"before":"e16503a2abc8c77e37dc62980773930ec0d2a711","after":"d1c4b194501a2b77482d99bb935cfa085b24afa0","ref":"refs/heads/james-yang/demo","pushedAt":"2023-08-28T18:08:19.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"},"commit":{"message":"Update Primitives — Completed.Modern Theme.json","shortMessageHtmlLink":"Update Primitives — Completed.Modern Theme.json"}},{"before":"a86c40cdd8f9dd409f139310cd703358760b05d2","after":null,"ref":"refs/heads/update-tokens","pushedAt":"2023-08-28T16:44:15.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"}},{"before":null,"after":"a86c40cdd8f9dd409f139310cd703358760b05d2","ref":"refs/heads/update-tokens","pushedAt":"2023-08-28T16:43:56.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Update tokens from Figma","shortMessageHtmlLink":"Update tokens from Figma"}},{"before":null,"after":"e16503a2abc8c77e37dc62980773930ec0d2a711","ref":"refs/heads/james-yang/demo","pushedAt":"2023-08-28T16:40:44.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"james04321","name":"James Yang","path":"/james04321","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/250513?s=80&v=4"},"commit":{"message":"Remove color rounding during token import (#11)\n\nRemove color rounding during token import now that we've rolled out the REST API fix for high-precision color values\r\n\r\nAlso handle empty files and add a bunch more tests.\r\n\r\nFixes: https://app.asana.com/0/1203505314277408/1205152183539898/f\r\n\r\n## Testing\r\n\r\nYou can run `npm run sync-tokens-to-figma` locally after making temporary changes to hex values in the tokens files, and check the variables authoring modal in the Figma UI to see that you get the same hex value.","shortMessageHtmlLink":"Remove color rounding during token import (#11)"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEOl7MtQA","startCursor":null,"endCursor":null}},"title":"Activity · figma/variables-github-action-example"}