Skip to content

Commit

Permalink
Merge pull request #589 from KhronosGroup/cts-issue-automation
Browse files Browse the repository at this point in the history
Add workflow to automatically open CTS issue on spec changes
  • Loading branch information
tomdeakin authored Jul 25, 2024
2 parents fdac511 + 2214060 commit 840e3d4
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/open_cts_issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Open CTS issue for spec changes
on: pull_request
jobs:
create-issue:
runs-on: ubuntu-latest
# Skip if this is a purely editorial PR
if: ${{ !contains(github.event.pull_request.labels.*.name, 'editorial') }}
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.SYCL_ISSUE_BOT_APP_ID }}
private-key: ${{ secrets.SYCL_ISSUE_BOT_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: "SYCL-CTS"
- name: Create Issue
uses: dacbd/create-issue-action@v2.0.0
with:
token: ${{ steps.app-token.outputs.token }}
owner: ${{ github.repository_owner }}
repo: SYCL-CTS
title: |
[Spec change] ${{ github.event.pull_request.title }}
# Assign person who opened PR
assignees: ${{ github.triggering_actor }}
body: |
Please review whether ${{ github.event.pull_request.html_url }} by @${{ github.triggering_actor }} requires any changes to the CTS.
**If changes are required**: Open a new PR addressing the changes and link it to this issue.
**If no changes are required**: Close this issue and proceed with the spec PR.

0 comments on commit 840e3d4

Please sign in to comment.