Skip to content

styling - should really do this in the GA to avoid this situation #101

styling - should really do this in the GA to avoid this situation

styling - should really do this in the GA to avoid this situation #101

### NOTE: Disabled for now, since we are not paying for the MongoDB Atlas cluster -
### probably should just self-host it but not really necessary at the moment for just this repo
name: "Run TODO to Issue"
on: ["push"]
jobs:
build:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: "TODO to Issue"
uses: "alstr/todo-to-issue-action@v5"
with:
INSERT_ISSUE_URLS: "true"
CLOSE_ISSUES: "true"
- name: Set Git 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 Changes
run: |
git add -A
if [[ `git status --porcelain` ]]; then
git commit -m "Automatically added GitHub issue links to TODOs"
git push
else
echo "No changes to commit"
fi