Skip to content

Conversation

@tcheeric
Copy link
Owner

Why now?

Automatically label workflow-created issues with codex.
Related issue: #0

What changed?

  • add github-script step to apply codex label when workflow runs as GitHub Actions bot

BREAKING

  • n/a

Review focus

  • workflow logic

Checklist

  • Scope ≤ 300 lines (or split/stack)
  • Title is verb + object (e.g., “Refactor auth middleware to async”)
  • Description links the issue and answers “why now?”
  • BREAKING flagged if needed
  • Tests/docs updated (if relevant)

https://chatgpt.com/codex/tasks/task_b_68a723e2c99883318087e8358a49dabf

@tcheeric tcheeric changed the base branch from main to develop August 21, 2025 13:59
@codecov-commenter
Copy link

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@tcheeric tcheeric requested a review from Copilot August 21, 2025 14:00
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds automatic labeling functionality to the GitHub issue labeler workflow to apply a "codex" label when the workflow is triggered by the GitHub Actions bot.

  • Adds conditional step that applies "codex" label when github.actor is github-actions[bot]

configuration-path: .github/labeler.yml
include-title: 1
repo-token: ${{ github.token }}
- if: github.actor == 'github-actions[bot]'
Copy link

Copilot AI Aug 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The condition should use ${{ }} syntax for GitHub Actions expressions. Change to if: ${{ github.actor == 'github-actions[bot]' }}

Suggested change
- if: github.actor == 'github-actions[bot]'
- if: ${{ github.actor == 'github-actions[bot]' }}

Copilot uses AI. Check for mistakes.
include-title: 1
repo-token: ${{ github.token }}
- if: github.actor == 'github-actions[bot]'
uses: actions/github-script@v7
Copy link

Copilot AI Aug 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider pinning the action to a specific commit hash instead of using a tag version for better security and reproducibility. For example: uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1

Suggested change
uses: actions/github-script@v7
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1

Copilot uses AI. Check for mistakes.
@tcheeric tcheeric merged commit ad3e4c7 into develop Aug 21, 2025
3 of 4 checks passed
@tcheeric tcheeric deleted the codex/add-label-to-issues-in-workflow branch August 31, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants