{"id":16813804,"url":"https://github.com/joerick/pr-labels-action","last_synced_at":"2025-03-22T03:31:13.550Z","repository":{"id":54215599,"uuid":"314592356","full_name":"joerick/pr-labels-action","owner":"joerick","description":"A Github action that extracts labels from the PR that this build belongs to, and makes them available to other actions.","archived":false,"fork":false,"pushed_at":"2024-04-15T20:50:07.000Z","size":469,"stargazers_count":29,"open_issues_count":4,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-18T07:32:16.694Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joerick.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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}},"created_at":"2020-11-20T15:24:24.000Z","updated_at":"2025-03-01T11:10:01.000Z","dependencies_parsed_at":"2024-06-19T00:17:49.887Z","dependency_job_id":null,"html_url":"https://github.com/joerick/pr-labels-action","commit_stats":{"total_commits":46,"total_committers":2,"mean_commits":23.0,"dds":"0.021739130434782594","last_synced_commit":"9fa7b5bf6bd806b4daa46f4ddad9d7d308644f8c"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joerick%2Fpr-labels-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joerick%2Fpr-labels-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joerick%2Fpr-labels-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joerick%2Fpr-labels-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joerick","download_url":"https://codeload.github.com/joerick/pr-labels-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244902929,"owners_count":20529114,"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-13T10:27:53.029Z","updated_at":"2025-03-22T03:31:13.100Z","avatar_url":"https://github.com/joerick.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PR Labels Github Action\n\n![Screenshot](screenshot.png)\n\nA Github action that extracts labels from the PR that this build belongs to, and makes them available to other actions. Labels are available as step outputs and environment variables that you can use in later steps in your action.\n\n## Outputs\n\n### `labels`\n\nThe labels on this PR. A string containing tag identifiers surrounded with spaces for easy use with `contains`.\n\n### `labels-object`\n\nThe labels on this PR. A dictionary containing `true` where a label exists.\n\n## Example usage\n\n```yaml\njobs:\n  test:\n    steps:\n      - name: Get PR labels\n        id: pr-labels\n        uses: joerick/pr-labels-action@v1.0.8\n```\n\n## How do I use this?\n\nPerhaps you have a test that you only want to run when PR label `Test Flimbomble` is set. Your workflow should look like this:\n\n```yaml\njobs:\n  test:\n    steps:\n      - name: Get PR labels\n        id: pr-labels\n        uses: joerick/pr-labels-action@v1.0.8\n\n      # GITHUB_PR_LABEL_TEST_FLIMBOMBLE was set by pr-labels-action\n      - run: |\n          bin/run_normal_tests\n          if [ -n \"$GITHUB_PR_LABEL_TEST_FLIMBOMBLE\" ]; then\n            bin/run_flimbomble_tests\n          fi\n\n      # or you can use the action output.\n      # For the label name, use lowercase kebab-case and surround with spaces\n      - run: |\n          bin/publish_flimbomble_test_results\n        if: contains(steps.pr-labels.outputs.labels, ' test-flimbomble ')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoerick%2Fpr-labels-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoerick%2Fpr-labels-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoerick%2Fpr-labels-action/lists"}