diff --git a/.github/workflows/test_ci.yaml b/.github/workflows/test_ci.yaml new file mode 100644 index 0000000..4ae09b1 --- /dev/null +++ b/.github/workflows/test_ci.yaml @@ -0,0 +1,24 @@ +--- +name: Test CI + +on: + pull_request: + paths: [.github/workflows/test_ci.yaml, action.yml] + +jobs: + ci: + runs-on: ubuntu-24.04 + + permissions: + contents: read # Required to checkout repository. + + steps: + - name: Checkout repository + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + fetch-depth: 0 + persist-credentials: false + + - name: Changed diff-tree + id: changed + uses: ./ diff --git a/README.md b/README.md index a7e9ee4..35471f2 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,13 @@ -[![GitHub license](https://img.shields.io/github/license/op5dev/diff-tree?logo=apache&label=License)](LICENSE "Apache License 2.0.") -[![GitHub release tag](https://img.shields.io/github/v/release/op5dev/diff-tree?logo=semanticrelease&label=Release)](https://github.com/op5dev/diff-tree/releases "View all releases.") +[![GitHub license](https://img.shields.io/github/license/op5dev/changed-diff-tree?logo=apache&label=License)](LICENSE "Apache License 2.0.") +[![GitHub release tag](https://img.shields.io/github/v/release/op5dev/changed-diff-tree?logo=semanticrelease&label=Release)](https://github.com/op5dev/changed-diff-tree/releases "View all releases.") * -[![GitHub repository stargazers](https://img.shields.io/github/stars/op5dev/diff-tree)](https://github.com/op5dev/diff-tree "Become a stargazer.") +[![GitHub repository stargazers](https://img.shields.io/github/stars/op5dev/changed-diff-tree)](https://github.com/op5dev/changed-diff-tree "Become a stargazer.") -# Diff-Tree +# Changed Diff-Tree ± -Git diff-tree for a list of changed files or directories between commits for GitHub Action event triggers. +Changed diff-tree for a list of changed files or directories between branches with GitHub Action event triggers + +TODO: https://github.com/orgs/community/discussions/25950 ## Parameters @@ -33,21 +35,21 @@ View [security policy and reporting instructions](SECURITY.md). ## Changelog -View [all notable changes](https://github.com/op5dev/diff-tree/releases "Releases.") to this project in [Keep a Changelog](https://keepachangelog.com "Keep a Changelog.") format, which adheres to [Semantic Versioning](https://semver.org "Semantic Versioning."). +View [all notable changes](https://github.com/op5dev/changed-diff-tree/releases "Releases.") to this project in [Keep a Changelog](https://keepachangelog.com "Keep a Changelog.") format, which adheres to [Semantic Versioning](https://semver.org "Semantic Versioning."). > [!TIP] > > All forms of **contribution are very welcome** and deeply appreciated for fostering open-source projects. > -> - [Create a PR](https://github.com/op5dev/diff-tree/pulls "Create a pull request.") to contribute changes you'd like to see. -> - [Raise an issue](https://github.com/op5dev/diff-tree/issues "Raise an issue.") to propose changes or report unexpected behavior. -> - [Open a discussion](https://github.com/op5dev/diff-tree/discussions "Open a discussion.") to discuss broader topics or questions. -> - [Become a stargazer](https://github.com/op5dev/diff-tree/stargazers "Become a stargazer.") if you find this project useful. +> - [Create a PR](https://github.com/op5dev/changed-diff-tree/pulls "Create a pull request.") to contribute changes you'd like to see. +> - [Raise an issue](https://github.com/op5dev/changed-diff-tree/issues "Raise an issue.") to propose changes or report unexpected behavior. +> - [Open a discussion](https://github.com/op5dev/changed-diff-tree/discussions "Open a discussion.") to discuss broader topics or questions. +> - [Become a stargazer](https://github.com/op5dev/changed-diff-tree/stargazers "Become a stargazer.") if you find this project useful.
## License - This project is licensed under the permissive [Apache License 2.0](LICENSE "Apache License 2.0."). -- All works herein are my own, shared of my own volition, and [contributors](https://github.com/op5dev/diff-tree/graphs/contributors "Contributors."). +- All works herein are my own, shared of my own volition, and [contributors](https://github.com/op5dev/changed-diff-tree/graphs/contributors "Contributors."). - Copyright 2016-present [Rishav Dhar](https://github.com/rdhar "Rishav Dhar's GitHub profile.") — All wrongs reserved. diff --git a/SECURITY.md b/SECURITY.md index bc7ac54..9ab5818 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -11,4 +11,4 @@ Integrating security in your CI/CD pipeline is critical to practicing DevSecOps. ## Reporting a Vulnerability -You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead, sensitive bugs must be sent by email to or reported via [Security Advisory](https://github.com/op5dev/diff-tree/security/advisories/new "Create a new security advisory."). +You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead, sensitive bugs must be sent by email to or reported via [Security Advisory](https://github.com/op5dev/changed-diff-tree/security/advisories/new "Create a new security advisory."). diff --git a/action.yml b/action.yml index c9827aa..f052c0b 100644 --- a/action.yml +++ b/action.yml @@ -1,7 +1,7 @@ --- -name: Git Diff-Tree for Changed Files or Directories +name: Changed Diff-Tree for Files or Directories author: Rishav Dhar (@rdhar) -description: Git diff-tree for a list of changed files or directories between commits for GitHub Action event triggers. +description: Changed diff-tree for a list of changed files or directories between branches with GitHub Action event triggers. runs: using: composite @@ -28,10 +28,23 @@ outputs: value: placeholder inputs: + source_ref: + default: "" + description: "Source branch or commit SHA to compare from." + required: false + target_ref: + default: "" + description: "Target branch or commit SHA to compare against." + required: false + format: + default: "raw" + description: "Format output as: 'raw', 'json', or 'matrix'." + required: false token: - required: true + default: ${{ github.token }} description: "GitHub access token with 'read:org' scope (e.g., secrets.CI_PAT)." + required: true branding: - color: green - icon: user-check + color: gray-dark + icon: file-plus