From 4c9371d904d0b7a8c4e399248c305dbaa34c5ef2 Mon Sep 17 00:00:00 2001 From: donpetry-bot <281750570+donpetry-bot@users.noreply.github.com> Date: Fri, 26 Jun 2026 16:14:06 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20implement=20issue=20#329=20=E2=80=94=20?= =?UTF-8?q?Compliance:=20non-stub-feature-ideation.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/feature-ideation.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/feature-ideation.yml b/.github/workflows/feature-ideation.yml index f84f562..58bdb27 100644 --- a/.github/workflows/feature-ideation.yml +++ b/.github/workflows/feature-ideation.yml @@ -64,6 +64,10 @@ on: required: false default: false type: boolean + # Auto-enhance a freshly-created idea: when a new Discussion is opened in the + # Ideas category, the analyst researches and refines it in single-idea mode. + discussion: + types: [created] permissions: {} @@ -73,6 +77,14 @@ concurrency: jobs: ideate: + # On the `discussion` trigger, only run for new ideas in the Ideas category + # and skip the bot's own creations (avoids re-enhancing scheduled output; + # enhancement posts a comment, which does not re-fire `discussion: created`). + # Schedule/dispatch runs are unaffected by this guard. + if: >- + github.event_name != 'discussion' || + (github.event.discussion.category.slug == 'ideas' && + github.event.discussion.user.type != 'Bot') # Permissions cascade from the calling job to the reusable workflow. # The reusable workflow's two jobs (gather-signals + analyze) need: # - contents: read (checkout, file reads) @@ -88,8 +100,12 @@ jobs: discussions: write id-token: write actions: read - uses: petry-projects/.github/.github/workflows/feature-ideation-reusable.yml@419c90fc96666f064bd1fc6880ebc79460eaeb32 # v1 + uses: petry-projects/.github/.github/workflows/feature-ideation-reusable.yml@897e4dede3518cdd7273b9dc63e607d0d05cbdda # v1 with: + # On the `discussion: created` trigger this carries the new Discussion's + # number → the reusable runs single-idea enhancement mode. Empty on + # schedule/dispatch → normal scan. Do not edit this line. + target_discussion: ${{ github.event.discussion.number }} # === CUSTOMISE THIS PER REPO — the only required edit === # Replace this paragraph with a 3-5 sentence description of your project, # its target users, and the competitive landscape. The more specific you