-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bb12e6
commit 7b11aee
Showing
2 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,34 +16,33 @@ | |
|
||
name: "Run TODO to Issue" | ||
on: | ||
pull_request: | ||
branches: [ "master" ] | ||
# TODO: Replace with push to master | ||
pull_request: | ||
branches: [ "master" ] | ||
# push: | ||
# branches: | ||
# - main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "TODO to Issue" | ||
uses: alstr/[email protected] | ||
with: | ||
AUTO_ASSIGN: "true" | ||
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 origin main | ||
else | ||
echo "No changes to commit" | ||
fi | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: "TODO to Issue" | ||
uses: alstr/[email protected] | ||
with: | ||
AUTO_ASSIGN: "true" | ||
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 origin main | ||
else | ||
echo "No changes to commit" | ||
fi |
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