mirror of
https://github.com/zeldaret/tp
synced 2026-05-23 06:54:28 -04:00
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
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user