From 5fe7c4407b28084ea98c1c747bd5c5b72bfffcf1 Mon Sep 17 00:00:00 2001 From: Ayaz Salikhov Date: Tue, 5 May 2026 14:21:36 +0100 Subject: [PATCH] ci: Use XRPLF/create-issue (#3066) --- .github/actions/create-issue/action.yml | 46 --------------------- .github/dependabot.yml | 13 ------ .github/workflows/build.yml | 1 - .github/workflows/check-libxrpl.yml | 8 ++-- .github/workflows/clang-tidy.yml | 18 ++++---- .github/workflows/nightly.yml | 11 ++--- .github/workflows/pre-commit-autoupdate.yml | 2 +- .github/workflows/reusable-test.yml | 12 ++---- .github/workflows/sanitizers.yml | 1 - 9 files changed, 21 insertions(+), 91 deletions(-) delete mode 100644 .github/actions/create-issue/action.yml diff --git a/.github/actions/create-issue/action.yml b/.github/actions/create-issue/action.yml deleted file mode 100644 index 325058007..000000000 --- a/.github/actions/create-issue/action.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Create an issue -description: Create an issue - -inputs: - title: - description: Issue title - required: true - body: - description: Issue body - required: true - labels: - description: Comma-separated list of labels - required: true - default: "bug" - assignees: - description: Comma-separated list of assignees - required: true - default: "godexsoft,kuznetsss,PeterChen13579,mathbunnyru" - -outputs: - created_issue_id: - description: Created issue id - value: ${{ steps.create_issue.outputs.created_issue }} - -runs: - using: composite - steps: - - name: Create an issue - id: create_issue - shell: bash - env: - ISSUE_BODY: ${{ inputs.body }} - ISSUE_ASSIGNEES: ${{ inputs.assignees }} - ISSUE_LABELS: ${{ inputs.labels }} - ISSUE_TITLE: ${{ inputs.title }} - run: | - echo -e "${ISSUE_BODY}" > issue.md - gh issue create \ - --assignee "${ISSUE_ASSIGNEES}" \ - --label "${ISSUE_LABELS}" \ - --title "${ISSUE_TITLE}" \ - --body-file ./issue.md \ - > create_issue.log - created_issue="$(sed 's|.*/||' create_issue.log)" - echo "created_issue=$created_issue" >> $GITHUB_OUTPUT - rm create_issue.log issue.md diff --git a/.github/dependabot.yml b/.github/dependabot.yml index a7fe15d47..6f8e2ae1c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -78,19 +78,6 @@ updates: prefix: "ci: [DEPENDABOT] " target-branch: develop - - package-ecosystem: github-actions - directory: .github/actions/create-issue/ - schedule: - interval: weekly - day: monday - time: "04:00" - timezone: Etc/GMT - reviewers: - - XRPLF/clio-dev-team - commit-message: - prefix: "ci: [DEPENDABOT] " - target-branch: develop - - package-ecosystem: github-actions directory: .github/actions/git-common-ancestor/ schedule: diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 56eaa300d..6e0a8c3e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,6 @@ on: - ".github/actions/**" - "!.github/actions/build-docker-image/**" - - "!.github/actions/create-issue/**" - CMakeLists.txt - conanfile.py diff --git a/.github/workflows/check-libxrpl.yml b/.github/workflows/check-libxrpl.yml index 9f6ee630b..b85e53adb 100644 --- a/.github/workflows/check-libxrpl.yml +++ b/.github/workflows/check-libxrpl.yml @@ -98,14 +98,12 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Create an issue - uses: ./.github/actions/create-issue - env: - GH_TOKEN: ${{ github.token }} + uses: XRPLF/actions/create-issue@fbcc16eb7f20dc3199eaf1aed0d3523a5ba9008c with: - labels: "compatibility,bug" title: "Proposed libXRPL check failed" body: > Clio build or tests failed against `libXRPL ${{ github.event.client_payload.conan_ref }}`. PR: ${{ github.event.client_payload.pr_url }} - Workflow run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/ + labels: "compatibility,bug" + assignees: "godexsoft,kuznetsss,mathbunnyru" diff --git a/.github/workflows/clang-tidy.yml b/.github/workflows/clang-tidy.yml index 0062b70eb..8944176b0 100644 --- a/.github/workflows/clang-tidy.yml +++ b/.github/workflows/clang-tidy.yml @@ -103,15 +103,12 @@ jobs: - name: Create an issue if: ${{ (steps.clang_tidy.outcome != 'success' || steps.files_changed.outcome != 'success') && github.event_name != 'pull_request' }} id: create_issue - uses: ./.github/actions/create-issue - env: - GH_TOKEN: ${{ github.token }} + uses: XRPLF/actions/create-issue@fbcc16eb7f20dc3199eaf1aed0d3523a5ba9008c with: title: "Clang-tidy found bugs in code 🐛" - body: > - Clang-tidy found issues in the code: - - List of the issues found: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/ + body: Clang-tidy found issues in the code. + labels: "bug" + assignees: "godexsoft,kuznetsss,mathbunnyru" - uses: crazy-max/ghaction-import-gpg@2dc316deee8e90f13e1a351ab510b4d5bc0c82cd # v7.0.0 if: ${{ steps.files_changed.outcome != 'success' && github.event_name != 'pull_request' }} @@ -134,8 +131,11 @@ jobs: branch-suffix: timestamp delete-branch: true title: "style: clang-tidy auto fixes" - body: "Fixes #${{ steps.create_issue.outputs.created_issue_id }}. Please review and commit clang-tidy fixes." - reviewers: "godexsoft,kuznetsss,PeterChen13579,mathbunnyru" + body: > + Fixes #${{ steps.create_issue.outputs.issue_number }}. + + Please review and commit clang-tidy fixes. + reviewers: "godexsoft,kuznetsss,mathbunnyru" - name: Fail the job if: ${{ steps.clang_tidy.outcome != 'success' || steps.files_changed.outcome != 'success' }} diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index dc78813f2..fc104ec5d 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -172,12 +172,9 @@ jobs: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Create an issue - uses: ./.github/actions/create-issue - env: - GH_TOKEN: ${{ github.token }} + uses: XRPLF/actions/create-issue@fbcc16eb7f20dc3199eaf1aed0d3523a5ba9008c with: title: "Nightly release failed 🌙" - body: > - Nightly release failed: - - Workflow: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/ + body: "" + labels: "bug" + assignees: "godexsoft,kuznetsss,mathbunnyru" diff --git a/.github/workflows/pre-commit-autoupdate.yml b/.github/workflows/pre-commit-autoupdate.yml index 1d053aa9b..5d79fec76 100644 --- a/.github/workflows/pre-commit-autoupdate.yml +++ b/.github/workflows/pre-commit-autoupdate.yml @@ -16,7 +16,7 @@ jobs: with: sign_commit: true committer: "Clio CI " - reviewers: "godexsoft,kuznetsss,PeterChen13579,mathbunnyru" + reviewers: "godexsoft,kuznetsss,mathbunnyru" secrets: GPG_PRIVATE_KEY: ${{ secrets.ACTIONS_GPG_PRIVATE_KEY }} GPG_PASSPHRASE: ${{ secrets.ACTIONS_GPG_PASSPHRASE }} diff --git a/.github/workflows/reusable-test.yml b/.github/workflows/reusable-test.yml index 31b3a30fe..f635d59ad 100644 --- a/.github/workflows/reusable-test.yml +++ b/.github/workflows/reusable-test.yml @@ -68,16 +68,12 @@ jobs: - name: Create an issue if: ${{ steps.run_clio_tests.outcome == 'failure' && endsWith(inputs.conan_profile, 'san') }} - uses: ./.github/actions/create-issue - env: - GH_TOKEN: ${{ github.token }} + uses: XRPLF/actions/create-issue@fbcc16eb7f20dc3199eaf1aed0d3523a5ba9008c with: - labels: "bug" title: "[${{ inputs.conan_profile }}] reported issues" - body: > - Clio tests failed one or more sanitizer checks when built with `${{ inputs.conan_profile }}`. - - Workflow: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/ + body: "Clio tests failed one or more sanitizer checks when built with `${{ inputs.conan_profile }}`." + labels: "bug" + assignees: "godexsoft,kuznetsss,mathbunnyru" - name: Fail the job if clio_tests failed if: ${{ steps.run_clio_tests.outcome == 'failure' }} diff --git a/.github/workflows/sanitizers.yml b/.github/workflows/sanitizers.yml index 3f795b730..2e9a05216 100644 --- a/.github/workflows/sanitizers.yml +++ b/.github/workflows/sanitizers.yml @@ -14,7 +14,6 @@ on: - ".github/actions/**" - "!.github/actions/build-docker-image/**" - - "!.github/actions/create-issue/**" - CMakeLists.txt - conanfile.py