Skip to content

Latest commit

 

History

History
72 lines (56 loc) · 2.62 KB

File metadata and controls

72 lines (56 loc) · 2.62 KB

GitHub Reusable Workflow: Need fix to Issue

Reusable workflow to convert comments requiring fixes (todo, FIXME) to issues. Mainly using Todo to Issue Action, with some opinionated defaults.

Usage

name: Need fix to Issue

on:
  push:
    branches:
      - main
  workflow_dispatch:
    inputs:
      #checkov:skip=CKV_GHA_7: required
      manual-commit-ref:
        description: "The SHA of the commit to get the diff for."
        required: true
      manual-base-ref:
        description: "By default, the commit entered above is compared to the one directly before it; to go back further, enter an earlier SHA here."
        required: false

permissions:
  contents: read
  issues: write

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  main:
    uses: hoverkraft-tech/ci-github-common/.github/workflows/need-fix-to-issue.yml@0.25.0
    with:
      manual-commit-ref: ${{ inputs.manual-commit-ref }}
      manual-base-ref: ${{ inputs.manual-base-ref }}

Inputs

Input Description Default Type Required
runs-on JSON array of runner(s) to use. See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job. ["ubuntu-latest"] string false
manual-commit-ref The SHA of the commit to get the diff for. string false
manual-base-ref By default, the commit entered above is compared to the one directly before it; to go back further, enter an earlier SHA here for. string false