summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorPheenoh <pheenoh@gmail.com>2023-08-11 00:51:32 -0600
committerGitHub <noreply@github.com>2023-08-11 00:51:32 -0600
commitc8bb857b13dbc4d1ec0c3a7a0929e7859420a317 (patch)
tree5cc047ccc22e1ad0ecd2119e410ce4d01f9999d0 /.github
parent380f00f3319ae8ee0352f7d008a3851550a59550 (diff)
Assignees (#1876)
* 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
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ok-check.yml15
1 files changed, 11 insertions, 4 deletions
diff --git a/.github/workflows/ok-check.yml b/.github/workflows/ok-check.yml
index 0e2267c775..320c20362b 100644
--- a/.github/workflows/ok-check.yml
+++ b/.github/workflows/ok-check.yml
@@ -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 \ No newline at end of file