Skip to content

Add workflow for label sync#2

Merged
bfatemi merged 1 commit intomainfrom
bfatemi-patch-2
Sep 20, 2025
Merged

Add workflow for label sync#2
bfatemi merged 1 commit intomainfrom
bfatemi-patch-2

Conversation

@bfatemi
Copy link
Contributor

@bfatemi bfatemi commented Sep 20, 2025

This GitHub Actions workflow syncs labels across repositories using manage-your-labels and runs daily and on manual trigger.

This GitHub Actions workflow syncs labels across repositories using manage-your-labels and runs daily and on manual trigger.
Copilot AI review requested due to automatic review settings September 20, 2025 05:08
Copy link

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 a GitHub Actions workflow to automatically sync labels across repositories using the manage-your-labels action. The workflow runs daily at 9 AM UTC and can also be triggered manually.

  • Adds automated label synchronization across organization repositories
  • Configures daily scheduled execution and manual trigger capability
  • Uses organization-level token for cross-repository access

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

schedule:
- cron: '0 9 * * *'

jobs:
Copy link

Copilot AI Sep 20, 2025

Choose a reason for hiding this comment

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

The YAML indentation is incorrect. The 'jobs' key should be at the root level (no indentation), and 'sync' should be indented under 'jobs'.

Suggested change
jobs:
jobs:

Copilot uses AI. Check for mistakes.
name: Manage org labels
on:
workflow_dispatch:
schedule:
Copy link

Copilot AI Sep 20, 2025

Choose a reason for hiding this comment

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

The 'schedule' key should be indented to align with 'workflow_dispatch' at the same level under 'on'.

Suggested change
schedule:
schedule:

Copilot uses AI. Check for mistakes.
@bfatemi bfatemi merged commit 1033d19 into main Sep 20, 2025
1 check passed
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

Codex Review: Here are some suggestions.


[P0] Fix misindented workflow structure

The workflow YAML currently indents jobs (and the sync job) under the on block, so the file parses as events named jobs/sync instead of a job definition. GitHub rejects such a workflow at load time, meaning the label sync never runs. Align jobs with name/on at the root and indent sync beneath it so that the job is actually executed.

About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback".

@bfatemi bfatemi deleted the bfatemi-patch-2 branch December 18, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants