Skip to content

Latest commit

 

History

History
62 lines (51 loc) · 2.75 KB

need-fix-to-issue.md

File metadata and controls

62 lines (51 loc) · 2.75 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.

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

jobs:
  main:
    uses: hoverkraft-tech/ci-github-common/.github/workflows/[email protected]
    with:
      manual-commit-ref: ${{ inputs.manual-commit-ref }}
      manual-base-ref: ${{ inputs.manual-base-ref }}
Input Description Default 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"] false
manual-commit-ref The SHA of the commit to get the diff for. 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. false