Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotate merge commits with GitHub error annotations #14

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

motlin
Copy link
Owner

@motlin motlin commented Jun 22, 2024

Modifies the action to create GitHub error annotations for each merge commit found.

  • Iterates through merge commits: Replaces the previous check for merge commits with a loop that iterates over each merge commit found, using git log --merges --format=%H.
  • Generates error annotations: For each merge commit, echoes a GitHub error annotation in the format ::error::Merge commit found: $COMMIT_HASH, providing direct feedback in the GitHub Actions interface.
  • Removes previous echo statement: The echo statement that previously printed out the merge commits has been removed, streamlining the output to focus on the error annotations.

For more details, open the Copilot Workspace session.

@motlin motlin merged commit ab75405 into main Jun 22, 2024
1 check passed
@motlin motlin deleted the annotate-merge-commits branch June 22, 2024 03:48
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.

1 participant