{"id":15461463,"url":"https://github.com/ibnesayeed/repo-attrs","last_synced_at":"2025-09-01T18:33:22.130Z","repository":{"id":65160142,"uuid":"275635534","full_name":"ibnesayeed/repo-attrs","owner":"ibnesayeed","description":"A GitHub Action to make various attributes of a repository available as variables","archived":false,"fork":false,"pushed_at":"2020-07-08T15:14:22.000Z","size":39,"stargazers_count":4,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-05-28T21:59:10.230Z","etag":null,"topics":["actions","cicd","github-workflow","release","repo-attrs"],"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/ibnesayeed.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":"2020-06-28T17:32:31.000Z","updated_at":"2021-09-26T20:47:25.000Z","dependencies_parsed_at":"2023-01-13T15:43:45.834Z","dependency_job_id":null,"html_url":"https://github.com/ibnesayeed/repo-attrs","commit_stats":{"total_commits":25,"total_committers":2,"mean_commits":12.5,"dds":0.07999999999999996,"last_synced_commit":"26b8384fe72cfecbd0cb56ed99643cfc85a92302"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibnesayeed%2Frepo-attrs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibnesayeed%2Frepo-attrs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibnesayeed%2Frepo-attrs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ibnesayeed%2Frepo-attrs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ibnesayeed","download_url":"https://codeload.github.com/ibnesayeed/repo-attrs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231404212,"owners_count":18371741,"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":["actions","cicd","github-workflow","release","repo-attrs"],"created_at":"2024-10-01T23:42:03.148Z","updated_at":"2024-12-26T19:42:21.141Z","avatar_url":"https://github.com/ibnesayeed.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Repository Attributes Action\n\nA GitHub Action to make various attributes of a repository available as output variables.\nIt is intended to be used with other actions such as [Create a Release](https://github.com/marketplace/actions/create-a-release) to suppliment them with information like contributors, files changed, pull requests, and commits.\n\n\n## Inputs\n\nMany attributes are extracted from the range of Git history `$tail..$head`.\n\n### `head`\n\nMost recent repo reference (empty default infers `HEAD` or a tag pointing to the head).\n\n### `tail`\n\nA prior repo reference to check for changes from (empty default infers the previous tag or the initial commit).\n\n## Outputs\n\nThe action sets up various output variables to be utilized in any succeeding steps.\n\n### `head`\n\nEvaluated most recent repo reference.\n\n### `tail`\n\nEvaluated previous reference.\n\n### `commits`\n\nList of commits (hash and message).\n\n### `prs`\n\nList of pull requests (number and title).\n\n### `files`\n\nSummary of changed files.\n\n### `contributors`\n\nList of contributors (name and number of commits).\n\n\n## Example Usage\n\n```yml\non:\n  push:\n    tags:\n      - '*'\n\nname: Create Release\n\njobs:\n  build:\n    name: Create Release\n    runs-on: ubuntu-latest\n    steps:\n      - name: Checkout Code\n        uses: actions/checkout@v2\n        with:\n          fetch-depth: 0 # This is important for the Git history\n      - name: Extract Repo Attributes\n        id: attrs # This is important for future referencing\n        uses: ibnesayeed/repo-attrs@master\n      - name: Create Release\n        id: create_release\n        uses: actions/create-release@v1\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n        with:\n          tag_name: ${{ github.ref }}\n          release_name: Release ${{ github.ref }}\n          # Utilize extracted attributes from the previous step\n          body: |\n            ## Changes in this Release\n\n            History from `${{ steps.attrs.outputs.tail }}` to `${{ steps.attrs.outputs.head }}`\n\n            ### Commits\n\n            ${{ steps.attrs.outputs.commits }}\n\n            ### Pull Requests\n\n            ${{ steps.attrs.outputs.prs }}\n\n            ### Contributors\n\n            ${{ steps.attrs.outputs.contributors }}\n\n            ### Files\n\n            ```\n            ${{ steps.attrs.outputs.files }}\n            ```\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibnesayeed%2Frepo-attrs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fibnesayeed%2Frepo-attrs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fibnesayeed%2Frepo-attrs/lists"}