mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-05-23 06:34:15 -04:00
@@ -0,0 +1,26 @@
|
||||
name: Assign issue to commenter
|
||||
on:
|
||||
issue_comment:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
assign_to_commenter:
|
||||
permissions:
|
||||
issues: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Assign issue to commenter
|
||||
uses: actions/github-script@v3
|
||||
with:
|
||||
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||
script: |
|
||||
const issueComment = context.payload.comment;
|
||||
const issue = context.payload.issue;
|
||||
if (issueComment.body === "/assign") {
|
||||
github.issues.addAssignees({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
issue_number: issue.number,
|
||||
assignees: [issueComment.user.login]
|
||||
});
|
||||
}
|
||||
@@ -31,4 +31,34 @@ jobs:
|
||||
PROGRESS_API_KEY: ${{ secrets.FROGRESS_API_KEY }}
|
||||
run: |
|
||||
./tp progress -f JSON > progress-${{ github.run_id }}.json
|
||||
./tp upload-progress progress-${{ github.run_id }}.json -b https://progress.deco.mp/ -p twilightprincess -v gcn_usa
|
||||
./tp upload-progress progress-${{ github.run_id }}.json -b https://progress.deco.mp/ -p twilightprincess -v gcn_usa
|
||||
- name: Get changed .c, .cpp, .inc files
|
||||
if: github.event_name != 'pull_request'
|
||||
id: changed-files-specific
|
||||
uses: tj-actions/changed-files@v36
|
||||
with:
|
||||
files: |
|
||||
**/*.{c,cpp,inc}
|
||||
- name: Update Status
|
||||
if: github.event_name != 'pull_request' && steps.changed-files-specific.outputs.any_changed == 'true'
|
||||
run: |
|
||||
# Install libclang-16-dev for FunctionChecker
|
||||
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||
sudo add-apt-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-16 main"
|
||||
sudo apt update
|
||||
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"
|
||||
|
||||
# If .inc files are found, assume it's for d_a_alink.cpp for now.
|
||||
# We can come up something better here later if needed.
|
||||
if echo "$FILENAMES" | grep -q ".inc"; then
|
||||
CMD="$CMD --filename src/d/a/d_a_alink.cpp"
|
||||
else
|
||||
for FILE in $FILENAMES; do
|
||||
CMD="$CMD --filename $FILE"
|
||||
done
|
||||
fi
|
||||
|
||||
$CMD
|
||||
|
||||
Reference in New Issue
Block a user