* checkpoint

* finish adding assignee support

* test

* use test command

* use test command

* skip build check

* add state to common options, move version check

* cleanup ok-check

* undo dylink change
This commit is contained in:
Pheenoh
2023-08-11 00:51:32 -06:00
committed by GitHub
parent 380f00f331
commit c8bb857b13
9 changed files with 254 additions and 79 deletions
+11 -4
View File
@@ -8,6 +8,11 @@ on:
branches:
- master
env:
GITHUB_ORG: "zeldaret"
GITHUB_REPO: "tp"
STATE_FILE: "tools/pjstate.yml"
jobs:
build:
runs-on: ubuntu-latest
@@ -39,7 +44,7 @@ jobs:
with:
files: |
**/*.{c,cpp,inc}
- name: Update Status
- name: Update Issue(s)
if: github.event_name != 'pull_request' && steps.changed-files-specific.outputs.any_changed == 'true'
run: |
# Install libclang-16-dev for FunctionChecker
@@ -49,7 +54,7 @@ jobs:
sudo apt install -y libclang-16-dev
FILENAMES="${{ steps.changed-files-specific.outputs.all_changed_files }}"
CMD="./tp github-check-update-status --personal-access-token ${{ secrets.PAT_TOKEN }} --debug"
CMD="./tp github-update-issues --personal-access-token ${{ secrets.PAT_TOKEN }} --debug --owner ${{ env.GITHUB_ORG }} --repo ${{ env.GITHUB_REPO }} --state-file ${{ env.STATE_FILE }}"
IFS=' ' read -ra FILE_ARRAY <<< "$FILENAMES"
INC_FOUND=false
@@ -70,7 +75,9 @@ jobs:
fi
for FILE in "${FILE_ARRAY[@]}"; do
CMD="$CMD --filename $FILE"
AUTHOR=$(git log -1 --pretty=format:'%an' -- $FILE)
CMD="$CMD --filename $FILE --author $AUTHOR"
done
$CMD
# Update the status and assignees for every issue identified
$CMD