Skip to content

Commit d92fc62

Browse files
committed
Change issue titles for library support
Add owners to .github/
1 parent ffd72c9 commit d92fc62

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
* @oracle/graalvm-reachability-maintainer
22
tests/tck-build-logic/src/main/resources/allowed-docker-images/* @matneu @matteoldani
33
library-and-framework-list.json @fniephaus
4+
.github/* @vjovanov

.github/workflows/check-new-library-versions-in-batch.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: "Check new libraries versions"
22

33
on:
44
schedule:
5-
- cron: '0 0 * * 7'
5+
- cron: '0 0 * * 0'
66
workflow_dispatch:
77

88
permissions:
@@ -59,6 +59,8 @@ jobs:
5959
permissions: write-all
6060
env:
6161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
ISSUE_TITLE_PREFIX: "[Automation] Testing failed for library: "
63+
ISSUE_BODY_PREFIX: "First failing version: "
6264
strategy:
6365
fail-fast: false
6466
matrix:
@@ -91,8 +93,8 @@ jobs:
9193
readarray -t VERSIONS < <(echo '${{ toJson(matrix.item.versions) }}' | jq -r '.[]')
9294
FIRST_TESTING_VERSION="${VERSIONS[0]}"
9395
94-
TITLE="Failure detected for $GROUP_ID:$ARTIFACT_ID"
95-
BODY="First failing version $GROUP_ID:$ARTIFACT_ID:$FIRST_TESTING_VERSION"
96+
TITLE="${{ env.ISSUE_TITLE_PREFIX }}$GROUP_ID:$ARTIFACT_ID"
97+
BODY="${{ env.ISSUE_BODY_PREFIX }}$GROUP_ID:$ARTIFACT_ID:$FIRST_TESTING_VERSION"
9698
9799
ISSUE_NUMBER=$(gh issue list --repo "${{ github.repository }}" --state open --search "$TITLE" --json number,title,body --jq \
98100
'.[] | select(.title == "'"$TITLE"'") | select(.body == "'"$BODY"'") | .number')
@@ -142,7 +144,7 @@ jobs:
142144
FAILED_VERSION=$(grep "^FAILED:" test_results.txt | sed 's/FAILED://g')
143145
echo "failed_version=$FAILED_VERSION" >> $GITHUB_OUTPUT
144146
145-
- name: "✔️ New library is supported"
147+
- name: "✔️ New library versions are supported"
146148
if: steps.runtests.outputs.successful_versions != ''
147149
run: |
148150
git config --local user.email "[email protected]"
@@ -160,16 +162,16 @@ jobs:
160162
git commit -m "Update tested versions for ${{ matrix.item.name }}"
161163
git push origin ${{ needs.get-all-libraries.outputs.branch }}
162164
163-
- name: "❗ New library is not supported"
165+
- name: "❗ New library version is not supported"
164166
if: steps.runtests.outputs.failed_version != ''
165167
run: |
166168
git config --local user.email "[email protected]"
167169
git config --local user.name "Github Actions"
168170
169171
FAILED_VERSION="${{ steps.runtests.outputs.failed_version }}"
170172
REPO="${{ github.repository }}"
171-
TITLE="Failure detected for ${{ matrix.item.name }}"
172-
BODY="First failing version ${{ matrix.item.name }}:$FAILED_VERSION"
173+
TITLE="${{ env.ISSUE_TITLE_PREFIX }}${{ matrix.item.name }}"
174+
BODY="${{ env.ISSUE_BODY_PREFIX }}${{ matrix.item.name }}:$FAILED_VERSION"
173175
174176
ISSUE_NUMBER=$(gh issue list --repo "$REPO" --state open --search "$TITLE" --json number,title --jq '.[] | select(.title == "'"$TITLE"'") | .number')
175177
if [ -n "$ISSUE_NUMBER" ]; then

0 commit comments

Comments
 (0)