# git-resolve-ref **Repository Path**: mirrors_adobe/git-resolve-ref ## Basic Information - **Project Name**: git-resolve-ref - **Description**: Serverless Node.js action which resolves a git ref (branch or tag) to the corresponding commit sha. - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-09-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Status [![codecov](https://img.shields.io/codecov/c/github/adobe/git-resolve-ref.svg)](https://codecov.io/gh/adobe/git-resolve-ref) [![CircleCI](https://img.shields.io/circleci/project/github/adobe/git-resolve-ref.svg)](https://circleci.com/gh/adobe/git-resolve-ref) [![GitHub license](https://img.shields.io/github/license/adobe/git-resolve-ref.svg)](https://github.com/adobe/git-resolve-ref/blob/master/LICENSE.txt) [![GitHub issues](https://img.shields.io/github/issues/adobe/git-resolve-ref.svg)](https://github.com/adobe/git-resolve-ref/issues) [![LGTM Code Quality Grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/adobe/git-resolve-ref.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/adobe/git-resolve-ref) # git-resolve-ref A Serverless Node.js Web action with zero dependencies. Resolves a Git reference (branch or tag) to the corresponding commit sha. ## Deploy action ```bash wsk action create git-resolve-ref main.js --web true ``` ## Invoke action Parameters: - `org`: GitHub organization or owner (e.g. `"adobe"`) - `repo`: GitHub repository name (e.g. `"helix-cli"`) - `ref`: branch or tag name, either short (e.g `"v0.1.2"`) or full name (e.g.`"refs/tags/v0.1.2"`) (optional, default: `"master"`) ```bash wsk action invoke git-resolve-ref --param org "adobe" --param repo "helix-cli" --param ref "master" --result ``` Result: ```json { "sha": "5222277edc96fe1cf6adc8f117f747ab62f28cd1", "fqRef": "refs/heads/master" } ``` ## Development ### Build ```bash npm install ``` ### Test ```bash npm test ``` ### Lint ```bash npm run lint ```