flake.lock: Update #28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "TODO to issue" | |
on: | |
push: | |
workflow_dispatch: | |
inputs: | |
MANUAL_COMMIT_REF: | |
description: "The hash 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 hash here" | |
required: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Convert TODO to Issue" | |
uses: alstr/todo-to-issue-action@v5 | |
with: | |
INSERT_ISSUE_URLS: true | |
CLOSE_ISSUES: false | |
- name: Set user | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
- name: Commit and push | |
run: | | |
git add -A | |
if [[ `git status --porcelain` ]]; then | |
git commit -m "Link TODO's to issues" | |
git push origin master | |
else | |
echo "No changes to commit" | |
fi |