Skip to content

ci: update of files from global .github repo#1721

Merged
asyncapi-bot merged 1 commit intomasterfrom
bot/update-files-from-global-repo
Sep 17, 2025
Merged

ci: update of files from global .github repo#1721
asyncapi-bot merged 1 commit intomasterfrom
bot/update-files-from-global-repo

Conversation

@asyncapi-bot
Copy link
Contributor

@asyncapi-bot asyncapi-bot commented Sep 15, 2025

Summary by CodeRabbit

  • Bug Fixes

    • Ensures correct user mentions in PR/issue/help comments.
    • Improves reliability of issue transfer by handling whitespace and using explicit variables.
    • Reduces formatting errors in release announcement messages.
  • Refactor

    • Standardizes workflows to use environment variables for actors, titles, URLs, and bodies.
    • Refines release type detection and author extraction for more robust outputs.
  • Chores

    • Enhances Slack and Twitter release notifications with consistent formatting.
    • Aligns issue/PR/discussion Slack messages to a unified markdown structure.
    • Tweaks automerge label comment for clearer attribution.

@changeset-bot
Copy link

changeset-bot bot commented Sep 15, 2025

⚠️ No Changeset found

Latest commit: 34126b8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link

coderabbitai bot commented Sep 15, 2025

Walkthrough

Refactors multiple GitHub Actions workflows to route context values (e.g., github.actor, github.event.) through step-level environment variables and reference them via process.env or env. in scripts/inputs. Also adjusts transfer-issue parsing/outputs and standardizes release announcement steps, including author extraction and Twitter credentials.

Changes

Cohort / File(s) Summary
Actor env var for comments
.github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml, .github/workflows/bounty-program-commands.yml, .github/workflows/help-command.yml
Introduces ACTOR/GITHUB_ACTOR env vars and replaces direct ${{ github.actor }} usages in comment bodies and logs with process.env.*.
Slack notifications env vars
.github/workflows/issues-prs-notifications.yml
Adds env vars for issue/PR/discussion title, URL, body; updates Slackify markdown to use env.* instead of github.event.*.
Release announcements standardization
.github/workflows/release-announcements.yml
Adds env vars for release metadata and repo/author; switches Slack and Twitter payloads to env.*; adjusts author extraction step; refactors version diff inputs via env; adds twitter_access_token_secret usage.
Issue transfer robustness
.github/workflows/transfer-issue.yml
Quotes repo extraction and GITHUB_OUTPUT writes; defines ISSUE_NUMBER/REPO_NAME env vars; updates gh transfer command to use env variables.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title "ci: update of files from global .github repo" accurately and concisely summarizes the primary change — updates to CI/workflow files under .github sourced from the global repository — and is relevant to the modified workflow files in the changeset. It is clear, specific to the main change, and suitable for commit history scanning.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bot/update-files-from-global-repo

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sonarqubecloud
Copy link

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
.github/workflows/bounty-program-commands.yml (2)

26-29: Incorrect boolean expression for allow/deny list of actors.

('aeworxet' || 'thulieblack') evaluates to 'aeworxet', so checks ignore thulieblack. Use explicit comparisons.

Apply this diff:

-      github.actor != ('aeworxet' || 'thulieblack') &&
+      github.actor != 'aeworxet' && github.actor != 'thulieblack' &&
@@
-      github.actor == ('aeworxet' || 'thulieblack') &&
+      (github.actor == 'aeworxet' || github.actor == 'thulieblack') &&
@@
-      github.actor == ('aeworxet' || 'thulieblack') &&
+      (github.actor == 'aeworxet' || github.actor == 'thulieblack') &&

Also applies to: 54-57, 95-98


119-124: Wrong parameter type for issues.removeLabel.

name must be a string, not an array. Current call will 422.

Apply this diff:

-              github.rest.issues.removeLabel({
-                issue_number: context.issue.number,
-                owner: context.repo.owner,
-                repo: context.repo.repo,
-                name: [BOUNTY_PROGRAM_LABELS[0].name]
-              })
+              github.rest.issues.removeLabel({
+                issue_number: context.issue.number,
+                owner: context.repo.owner,
+                repo: context.repo.repo,
+                name: BOUNTY_PROGRAM_LABELS[0].name
+              })
🧹 Nitpick comments (1)
.github/workflows/help-command.yml (1)

36-36: Typo in user-facing help text.

“reviewrs” ➜ “reviewers”.

Apply this diff:

-                    - `/please-take-a-look` or `/ptal` - This comment will add a comment to the PR asking for attention from the reviewrs who have not reviewed the PR yet.
+                    - `/please-take-a-look` or `/ptal` - This comment will add a comment to the PR asking for attention from the reviewers who have not reviewed the PR yet.
📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5b86e23 and 34126b8.

📒 Files selected for processing (6)
  • .github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml (2 hunks)
  • .github/workflows/bounty-program-commands.yml (1 hunks)
  • .github/workflows/help-command.yml (3 hunks)
  • .github/workflows/issues-prs-notifications.yml (3 hunks)
  • .github/workflows/release-announcements.yml (2 hunks)
  • .github/workflows/transfer-issue.yml (2 hunks)
🔇 Additional comments (14)
.github/workflows/bounty-program-commands.yml (2)

36-37: Good switch to step-scoped env for actor.

Passing ACTOR via env avoids template interpolation inside script and keeps things consistent across workflows.


41-45: LGTM: using process.env for actor in messages.

The change is correct and consistent with actions/github-script usage.

.github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml (1)

30-32: Env-scoped actor usage looks good.

Using GITHUB_ACTOR via env and referencing it in the comment body is correct and consistent.

Also applies to: 61-68

.github/workflows/transfer-issue.yml (2)

26-27: Quoting the awk extraction and output is safer.

Prevents word-splitting and odd-body surprises when parsing the comment.


58-63: Switch to env variables for gh transfer is correct.

Quoting args and using GH_TOKEN/GITHUB_TOKEN for gh is the right pattern.

Please confirm gh is available on the selected runner image (it is on ubuntu-latest) and that the repo-scoped GITHUB_TOKEN has issue transfer permissions in this org.

.github/workflows/help-command.yml (2)

18-20: Actor via env for PR path: OK.

Clean usage of process.env.ACTOR and consistent with other workflows.

Also applies to: 30-41


49-51: Actor via env for Issue path: OK.

Same pattern as PR path; looks good.

Also applies to: 58-67

.github/workflows/release-announcements.yml (4)

22-28: Step-local env + with: usage looks fine.

Using step env to build the markdown input for the action is clear and localized.


71-75: Release type detection via semver-diff: OK.

Using PREV_VERSION/LAST_VERSION env and emitting to $GITHUB_OUTPUT is correct.


77-80: Author extraction improved.

Multi-line run with safe printf to $GITHUB_OUTPUT is robust.


86-92: Twitter status via env is fine; verify secrets exist.

The interpolation is correct. Ensure TWITTER_ACCESS_TOKEN_SECRET is configured in this repo.

.github/workflows/issues-prs-notifications.yml (3)

26-32: Issue: step-scoped env feeding markdown input looks good.

Pattern is consistent with other workflows.

Confirm slackify-markdown handles empty or very long issue bodies gracefully; Slack messages shouldn’t exceed practical limits.


48-54: PR: same env-to-input pattern looks good.

No concerns.


70-76: Discussion: same env-to-input pattern looks good.

No concerns.

Comment on lines 31 to 37
SLACK_WEBHOOK: ${{ secrets.SLACK_RELEASES }}
SLACK_TITLE: Release ${{github.event.release.tag_name}} for ${{github.repository}} is out in the wild 😱💪🍾🎂
SLACK_TITLE: Release ${{ env.RELEASE_TAG }} for ${{ env.REPO_NAME }} is out in the wild 😱💪🍾🎂
SLACK_MESSAGE: ${{steps.markdown.outputs.text}}
MSG_MINIMAL: true
RELEASE_TAG: ${{github.event.release.tag_name}}
REPO_NAME: ${{github.repository}}

Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

Expression timing bug: referencing step env inside the same env block.

SLACK_TITLE uses ${{ env.RELEASE_TAG }} and ${{ env.REPO_NAME }} defined in the same step’s env:. These won’t be available at expression-evaluation time, resulting in an empty title. Use GitHub context directly.

Apply this diff:

-            SLACK_TITLE: Release ${{ env.RELEASE_TAG }} for ${{ env.REPO_NAME }} is out in the wild 😱💪🍾🎂
+            SLACK_TITLE: Release ${{ github.event.release.tag_name }} for ${{ github.repository }} is out in the wild 😱💪🍾🎂

Optional: If you want to keep using env vars, promote RELEASE_TAG and REPO_NAME to job‑level env: or compute SLACK_TITLE in a prior step and export via $GITHUB_OUTPUT.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
SLACK_WEBHOOK: ${{ secrets.SLACK_RELEASES }}
SLACK_TITLE: Release ${{github.event.release.tag_name}} for ${{github.repository}} is out in the wild 😱💪🍾🎂
SLACK_TITLE: Release ${{ env.RELEASE_TAG }} for ${{ env.REPO_NAME }} is out in the wild 😱💪🍾🎂
SLACK_MESSAGE: ${{steps.markdown.outputs.text}}
MSG_MINIMAL: true
RELEASE_TAG: ${{github.event.release.tag_name}}
REPO_NAME: ${{github.repository}}
SLACK_WEBHOOK: ${{ secrets.SLACK_RELEASES }}
SLACK_TITLE: Release ${{ github.event.release.tag_name }} for ${{ github.repository }} is out in the wild 😱💪🍾🎂
SLACK_MESSAGE: ${{steps.markdown.outputs.text}}
MSG_MINIMAL: true
RELEASE_TAG: ${{github.event.release.tag_name}}
REPO_NAME: ${{github.repository}}
🤖 Prompt for AI Agents
.github/workflows/release-announcements.yml lines 31-37: SLACK_TITLE references
${ env.RELEASE_TAG } and ${ env.REPO_NAME } defined in the same step env, which
are not available at expression-evaluation time; fix by directly using GitHub
context expressions in SLACK_TITLE (e.g. use ${{ github.event.release.tag_name
}} and ${{ github.repository }}) or move RELEASE_TAG and REPO_NAME into the
job-level env so they are evaluated earlier, or compute SLACK_TITLE in a prior
step and export it via GITHUB_OUTPUT for use here.

@derberg
Copy link
Member

derberg commented Sep 17, 2025

/rtm

@asyncapi-bot asyncapi-bot merged commit 78d9412 into master Sep 17, 2025
31 checks passed
@asyncapi-bot asyncapi-bot deleted the bot/update-files-from-global-repo branch September 17, 2025 13:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants