Skip to content

ci: remove holopin.yml from global .github repo#1645

Merged
asyncapi-bot merged 4 commits into
masterfrom
bot/update-files-from-global-repo
Jul 21, 2025
Merged

ci: remove holopin.yml from global .github repo#1645
asyncapi-bot merged 4 commits into
masterfrom
bot/update-files-from-global-repo

Conversation

@asyncapi-bot

@asyncapi-bot asyncapi-bot commented Jul 21, 2025

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflows to use newer versions of key actions, including actions/github-script, actions/checkout, actions/setup-node, and Slack notification actions.
    • Improved workflow reliability by pinning Slack notification actions to specific versions.
    • Upgraded the action for managing stale issues and pull requests to a more recent version.
    • Minor adjustments to environment variable usage in notification workflows.

@changeset-bot

changeset-bot Bot commented Jul 21, 2025

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 33143f8

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

coderabbitai Bot commented Jul 21, 2025

Copy link
Copy Markdown

Walkthrough

This update modifies several GitHub Actions workflow files to upgrade the versions of core actions, including actions/github-script, actions/checkout, actions/setup-node, and rtCamp/action-slack-notify. Some actions are pinned to specific commit hashes for reproducibility. No workflow logic, control flow, or exported entities are changed.

Changes

Files (grouped by similar changes) Change Summary
.github/workflows/add-good-first-issue-labels.yml
.github/workflows/automerge.yml
.github/workflows/please-take-a-look-command.yml
.github/workflows/welcome-first-time-contrib.yml
Bump actions/github-script from v6 to v7. No logic changes.
.github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml
.github/workflows/bounty-program-commands.yml
Bump actions/github-script from v6 to v7 in multiple jobs/steps. No logic changes.
.github/workflows/automerge-for-humans-remove-ready-to-merge-label-on-edit.yml Bump actions/github-script from v6 to v7. No logic changes.
.github/workflows/automerge-orphans.yml Bump actions/checkout v3→v4; actions/github-script v6→v7; pin rtCamp/action-slack-notify to commit (v2.3.2).
.github/workflows/issues-prs-notifications.yml Pin rtCamp/action-slack-notify to commit (v2.3.2) across jobs. No logic changes.
.github/workflows/notify-tsc-members-mention.yml Upgrade: actions/checkout v3→v4, actions/setup-node v3→v4, rtCamp/action-slack-notify v2→commit (v2.3.2), actions/github-script v6→v7; refactor MailChimp step to use env var for title.
.github/workflows/release-announcements.yml Bump actions/checkout v3→v4; pin rtCamp/action-slack-notify to commit (v2.3.2); actions/github-script v6→v7 in Twitter job.
.github/workflows/stale-issues-prs.yml Bump actions/stale from v5.2.0 commit to v9.1.0 commit. No logic changes.

Estimated code review effort

1 (~8 minutes)


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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@asyncapi-bot

Copy link
Copy Markdown
Contributor Author

What reviewer looks at during PR review

The following are ideal points maintainers look for during review. Reviewing these points yourself beforehand can help streamline the review process and reduce time to merge.

  1. PR Title: Use a concise title that follows our Conventional Commits guidelines and clearly summarizes the change using imperative mood (it means spoken or written as if giving a command or instruction, like "add new helper for listing operations")

    Note - In Generator, prepend feat: or fix: in PR title only when PATCH/MINOR release must be triggered.

  2. PR Description: Clearly explain the issue being solved, summarize the changes made, and mention the related issue.

    Note - In Generator, we use Maintainers Work board to track progress. Ensure the PR Description includes Resolves #<issue-number> or Fixes #<issue-number> this will automatically close the linked issue when the PR is merged and helps automate the maintainers workflow.

  3. Documentation: Update the relevant Generator documentation to accurately reflect the changes introduced in the PR, ensuring users and contributors have up-to-date guidance.

  4. Comments and JSDoc: Write clear and consistent JSDoc comments for functions, including parameter types, return values, and error conditions, so others can easily understand and use the code.

  5. DRY Code: Ensure the code follows the Don't Repeat Yourself principle. Look out for duplicate logic that can be reused.

  6. Test Coverage: Ensure the new code is well-tested with meaningful test cases that pass consistently and cover all relevant edge cases.

  7. Commit History: Contributors should avoid force-pushing as much as possible. It makes it harder to track incremental changes and review the latest updates.

  8. Template Design Principles Alignment: While reviewing template-related changes in the packages/ directory, ensure they align with the Assumptions and Principles. If any principle feels outdated or no longer applicable, start a discussion these principles are meant to evolve with the project.

  9. Reduce Scope When Needed: If an issue or PR feels too large or complex, consider splitting it and creating follow-up issues. Smaller, focused PRs are easier to review and merge.

  10. Bot Comments: As reviewers, check that contributors have appropriately addressed comments or suggestions made by automated bots. If there are bot comments the reviewer disagrees with, react to them or mark them as resolved, so the review history remains clear and accurate.

@sonarqubecloud

Copy link
Copy Markdown

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@sonarqubecloud

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3

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

25-29: Fix the if condition – 'a' || 'b' always evaluates to 'a'

github.actor != ('aeworxet' || 'thulieblack') effectively becomes github.actor != 'aeworxet', so any calls from thulieblack are treated as unauthorised.
Rewrite with two explicit comparisons:

if: >
  github.actor != 'aeworxet' &&
  github.actor != 'thulieblack' &&
  startsWith(github.event.comment.body, '/bounty')
.github/workflows/notify-tsc-members-mention.yml (1)

35-41: Enforce Active Node.js LTS Across All Jobs

Node 16 is EOL and can expose us to unpatched CVEs. Let’s update each job in .github/workflows/notify-tsc-members-mention.yml to use the latest LTS:

• File: .github/workflows/notify-tsc-members-mention.yml
– Lines: 39, 85, 131, 177, 223, 269

Apply this diff at each location:

-          node-version: 16
+          # Use the latest Node.js LTS
+          node-version: 'lts/*'

Please apply the same update to every job in this workflow.

♻️ Duplicate comments (1)
.github/workflows/notify-tsc-members-mention.yml (1)

81-88: Replicate the $TITLE interpolation fix across all jobs

The same hard-coded '$TITLE' string appears in every event-specific job.
One-liner search & replace will address them all:

rg "sendEmail\('\$\{\{github\.event[^\)]*\}', '\$TITLE'\)" \
  --replace "sendEmail('\$1', process.env.TITLE)" -t yaml -N

Ensures consistency and prevents false-alert subjects everywhere.

Also applies to: 97-103, 110-120, 127-134, 143-149, 156-166, 173-180, 189-195, 202-212, 219-226, 235-241, 248-258, 265-272, 281-287, 294-304

🧹 Nitpick comments (4)
.github/workflows/release-announcements.yml (2)

18-19: Consider pinning actions/checkout@v4 to a SHA

v4 is still a floating major tag. Pinning to a specific commit (e.g. actions/[email protected]) offers the same reproducibility you applied to the Slack action.

Also applies to: 37-38


40-41: actions/github-script upgrade: confirm Node 20 compatibility & pin

v7 switches to Node 20. Double-check any await usage for unhandled promise rejections and pin to a specific release/sha to avoid future breakage.

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

29-30: Lock actions/github-script to an immutable reference

Same rationale as other workflows: use a tagged release or commit SHA instead of v7 to guard against unexpected updates.

Also applies to: 81-82, 103-104

.github/workflows/automerge-orphans.yml (1)

17-20: Security hardening: pin both checkout and github-script actions

actions/checkout@v4 and actions/github-script@v7 are floating tags. Pinning them (and keeping them updated via Dependabot) yields deterministic builds and mitigates supply-chain risk.
Good job already pinning the Slack action.

Also applies to: 61-62

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2ed5016 and 33143f8.

📒 Files selected for processing (12)
  • .github/workflows/add-good-first-issue-labels.yml (1 hunks)
  • .github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml (3 hunks)
  • .github/workflows/automerge-for-humans-remove-ready-to-merge-label-on-edit.yml (1 hunks)
  • .github/workflows/automerge-orphans.yml (2 hunks)
  • .github/workflows/automerge.yml (1 hunks)
  • .github/workflows/bounty-program-commands.yml (3 hunks)
  • .github/workflows/issues-prs-notifications.yml (3 hunks)
  • .github/workflows/notify-tsc-members-mention.yml (13 hunks)
  • .github/workflows/please-take-a-look-command.yml (1 hunks)
  • .github/workflows/release-announcements.yml (2 hunks)
  • .github/workflows/stale-issues-prs.yml (1 hunks)
  • .github/workflows/welcome-first-time-contrib.yml (1 hunks)
🧰 Additional context used
🧠 Learnings (6)
📓 Common learnings
Learnt from: derberg
PR: asyncapi/generator#1552
File: .github/workflows/pr-testing-with-test-project.yml:51-69
Timestamp: 2025-05-09T08:24:17.362Z
Learning: In GitHub Actions workflows, don't use job-level `if` conditions for jobs that might be required in branch protection rules. When a job is skipped via job-level conditions, it doesn't appear in the GitHub checks list at all, and if that job is set as required, PRs would be blocked indefinitely. Instead, use step-level conditionals within the job to skip the substantive work while still allowing the job to complete successfully.
Learnt from: derberg
PR: asyncapi/generator#1552
File: .github/workflows/pr-testing-with-test-project.yml:70-84
Timestamp: 2025-05-09T08:25:03.441Z
Learning: When suggesting workflow optimizations in GitHub Actions, be cautious with job-level conditional statements (`if` at the job level). If a job with a job-level conditional is set as a required check in branch protection settings, PRs that don't trigger the job (condition evaluates to false) can never be merged since GitHub would be waiting for a required check that never runs. Using step-level conditionals is often better as the job still completes successfully, satisfying branch protection requirements.
Learnt from: derberg
PR: asyncapi/generator#1551
File: apps/generator/docs/generator-template.md:45-73
Timestamp: 2025-05-12T14:23:48.919Z
Learning: AsyncAPI 3.0.0 specification introduces significant structural changes from 2.x:
1. Operations become top-level elements with references to channels
2. Channels use 'address' for the topic path instead of having nested publish/subscribe
3. Messages are defined under a 'messages' container in channels
4. Servers can use a 'host' property
Learnt from: derberg
PR: asyncapi/generator#1551
File: apps/generator/docs/generator-template.md:45-73
Timestamp: 2025-05-12T14:23:48.919Z
Learning: AsyncAPI 3.0.0 specification introduces significant structural changes from 2.x:
1. Operations become top-level elements with action property (send/receive) and references to channels
2. Channels use 'address' for the topic path instead of having nested publish/subscribe operations
3. Messages are defined under a 'messages' container in channels
4. The specification decouples operations, channels and messages to improve reusability
5. Servers can use a 'host' property
Learnt from: Adi-204
PR: asyncapi/generator#1557
File: packages/templates/clients/websocket/javascript/components/SendOperation.js:21-21
Timestamp: 2025-05-12T14:57:35.024Z
Learning: In the AsyncAPI generator templates, particularly in the JavaScript WebSocket client, single quotes are used for string literals inside template-generated code (which is itself inside backticks) to preserve template placeholders like ${variable} as literal text in the generated code output.
.github/workflows/welcome-first-time-contrib.yml (2)

Learnt from: derberg
PR: #1552
File: .github/workflows/pr-testing-with-test-project.yml:70-84
Timestamp: 2025-05-09T08:25:03.441Z
Learning: When suggesting workflow optimizations in GitHub Actions, be cautious with job-level conditional statements (if at the job level). If a job with a job-level conditional is set as a required check in branch protection settings, PRs that don't trigger the job (condition evaluates to false) can never be merged since GitHub would be waiting for a required check that never runs. Using step-level conditionals is often better as the job still completes successfully, satisfying branch protection requirements.

Learnt from: derberg
PR: #1552
File: .github/workflows/pr-testing-with-test-project.yml:51-69
Timestamp: 2025-05-09T08:24:17.362Z
Learning: In GitHub Actions workflows, don't use job-level if conditions for jobs that might be required in branch protection rules. When a job is skipped via job-level conditions, it doesn't appear in the GitHub checks list at all, and if that job is set as required, PRs would be blocked indefinitely. Instead, use step-level conditionals within the job to skip the substantive work while still allowing the job to complete successfully.

.github/workflows/please-take-a-look-command.yml (1)

Learnt from: derberg
PR: #1552
File: .github/workflows/pr-testing-with-test-project.yml:70-84
Timestamp: 2025-05-09T08:25:03.441Z
Learning: When suggesting workflow optimizations in GitHub Actions, be cautious with job-level conditional statements (if at the job level). If a job with a job-level conditional is set as a required check in branch protection settings, PRs that don't trigger the job (condition evaluates to false) can never be merged since GitHub would be waiting for a required check that never runs. Using step-level conditionals is often better as the job still completes successfully, satisfying branch protection requirements.

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

Learnt from: derberg
PR: #1552
File: .github/workflows/pr-testing-with-test-project.yml:51-69
Timestamp: 2025-05-09T08:24:17.362Z
Learning: In GitHub Actions workflows, don't use job-level if conditions for jobs that might be required in branch protection rules. When a job is skipped via job-level conditions, it doesn't appear in the GitHub checks list at all, and if that job is set as required, PRs would be blocked indefinitely. Instead, use step-level conditionals within the job to skip the substantive work while still allowing the job to complete successfully.

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

Learnt from: derberg
PR: #1552
File: .github/workflows/pr-testing-with-test-project.yml:70-84
Timestamp: 2025-05-09T08:25:03.441Z
Learning: When suggesting workflow optimizations in GitHub Actions, be cautious with job-level conditional statements (if at the job level). If a job with a job-level conditional is set as a required check in branch protection settings, PRs that don't trigger the job (condition evaluates to false) can never be merged since GitHub would be waiting for a required check that never runs. Using step-level conditionals is often better as the job still completes successfully, satisfying branch protection requirements.

.github/workflows/notify-tsc-members-mention.yml (2)

Learnt from: derberg
PR: #1552
File: .github/workflows/pr-testing-with-test-project.yml:70-84
Timestamp: 2025-05-09T08:25:03.441Z
Learning: When suggesting workflow optimizations in GitHub Actions, be cautious with job-level conditional statements (if at the job level). If a job with a job-level conditional is set as a required check in branch protection settings, PRs that don't trigger the job (condition evaluates to false) can never be merged since GitHub would be waiting for a required check that never runs. Using step-level conditionals is often better as the job still completes successfully, satisfying branch protection requirements.

Learnt from: derberg
PR: #1552
File: .github/workflows/pr-testing-with-test-project.yml:51-69
Timestamp: 2025-05-09T08:24:17.362Z
Learning: In GitHub Actions workflows, don't use job-level if conditions for jobs that might be required in branch protection rules. When a job is skipped via job-level conditions, it doesn't appear in the GitHub checks list at all, and if that job is set as required, PRs would be blocked indefinitely. Instead, use step-level conditionals within the job to skip the substantive work while still allowing the job to complete successfully.

🪛 YAMLlint (1.37.1)
.github/workflows/welcome-first-time-contrib.yml

[warning] 20-20: wrong indentation: expected 6 but found 4

(indentation)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: Automerge PR autoapproved by a bot
  • GitHub Check: Test generator as dependency with Node 20
  • GitHub Check: Test generator as dependency with Node 18
  • GitHub Check: Acceptance tests for generated templates
  • GitHub Check: Test NodeJS PR - windows-latest
🔇 Additional comments (7)
.github/workflows/stale-issues-prs.yml (1)

16-16: Action version bump looks good – please double-check input compatibility with v9.1.0

actions/stale jumped four major versions (v5 → v9). While pinning to a commit hash is 👌 for supply-chain safety, several inputs were renamed/removed in the v8+ series (e.g., days-before-stale became stale-issue-days-before-stale). None of those new names are used here, so the workflow may silently fall back to defaults and behave differently.

Recommend reviewing the v9 docs and, if needed, updating the input names or adding an explicit debug-only: true dry-run on a fork before merging.

.github/workflows/add-good-first-issue-labels.yml (1)

17-20: Bumping to actions/github-script@v7 – double-check Node 20 compatibility

github-script v7 runs on the Node 20 runtime.
Please verify that every script in this step:

script: |
  const areas = …

is free from deprecated APIs (e.g. fs.promises.readdir recursion options, require('node:') module specifiers) and still works with Octokit ^7 bundled by the action.
If everything passes in CI – great, nothing else to change.

.github/workflows/please-take-a-look-command.yml (1)

26-30: actions/github-script@v7 upgrade requires runtime sanity-check

As with other workflows, v7 switches to Node 20.
Run this job on a test PR and ensure:

  1. await github.request(prDetailsUrl) still resolves (no TLS/HTTP2 quirks on Node 20).
  2. The reviewer-ping comment is created exactly once.

No code changes expected, but worth validating before relying on it.

.github/workflows/automerge-for-humans-remove-ready-to-merge-label-on-edit.yml (1)

18-21: Confirm scripts remain compatible after upgrading to Node 20

No logic changed, but github-script v7 ships Node 20.
Quick regression test: edit a PR title and ensure the ready-to-merge label is removed as before.
If everything behaves, ✅.

.github/workflows/automerge.yml (1)

24-30: Upgrade note: Node 20 runtime now used for labeling step

actions/github-script@v7 brings Node 20 and Octokit ^7.
The simple addLabels call should survive, yet please monitor the first run for:

  • authentication issues with GH_TOKEN
  • any rate-limit headers differences

No code changes needed if it passes.

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

29-30: 👍 Good move: Slack action is now pinned to an exact commit

Locking rtCamp/action-slack-notify to c337… improves determinism and security.
No further issues spotted for these steps.

Also applies to: 47-48, 65-66

.github/workflows/notify-tsc-members-mention.yml (1)

51-57: Good move: pinning rtCamp/action-slack-notify to a commit hash

Explicitly pinning to c337377… guarantees deterministic runs and mitigates “shadow-tag” supply-chain attacks. 👍

Comment on lines +35 to 36
uses: actions/github-script@v7
with:

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Pin actions/github-script@v7 to a commit hash to prevent supply-chain drift

All three steps now point at the moving tag v7. Unlike the Slack action (pinned to c337…), this leaves the workflow open to silent behaviour changes if the tag is retagged.

-uses: actions/github-script@v7
+uses: actions/[email protected]   # or a full sha, e.g. 8d1756d0e9d2668c6b0a2e4e8e9a0fb7f6c0f0b

Also verify the scripts still run under Node 20 (the runtime bump introduced in v7).

Also applies to: 61-62, 102-103


🏁 Script executed:

#!/bin/bash
# Identify all occurrences of the floating tag in the workflow
grep -R "actions/github-script@v7" -n .github/workflows/bounty-program-commands.yml

Length of output: 210


🏁 Script executed:

#!/bin/bash
# Fetch the latest release tag for actions/github-script from GitHub API
curl -s https://api.github.com/repos/actions/github-script/releases/latest | jq -r '.tag_name'

Length of output: 101


🏁 Script executed:

#!/bin/bash
# Retrieve release notes for v7.0.1 to verify Node 20 support
curl -s https://api.github.com/repos/actions/github-script/releases/tags/v7.0.1 | jq -r '.body' | grep -i "Node"

Length of output: 110


🏁 Script executed:

#!/bin/bash
# Verify Node.js engine requirements from action.yml and package.json for v7.0.1
echo "Fetching action.yml for actions/[email protected]..."
curl -s https://raw.githubusercontent.com/actions/github-script/v7.0.1/action.yml | sed -n '1,200p' | grep -E "runs-on|node"
echo
echo "Checking engines field in package.json..."
curl -s https://raw.githubusercontent.com/actions/github-script/v7.0.1/package.json | jq '.engines'

Length of output: 495


Pin actions/github-script to a fixed v7.0.1 release

To prevent supply-chain drift, update all three steps from the moving v7 tag to the exact v7.0.1 release (or its full SHA). We’ve verified that v7.0.1 uses Node 20 (using: node20 in action.yml and "node": ">=20.0.0 <21.0.0" in package.json), so your workflows will continue to run under Node 20.

• .github/workflows/bounty-program-commands.yml:
– Line 35, 61, 102

- uses: actions/github-script@v7
+ uses: actions/[email protected]  # or pin to a full SHA for even stronger immutability
🤖 Prompt for AI Agents
In .github/workflows/bounty-program-commands.yml at lines 35, 61, and 102, the
usage of actions/github-script is currently pinned to the floating tag v7.
Update these lines to pin the action to the fixed version v7.0.1 instead of the
moving v7 tag to prevent supply-chain drift and ensure consistent Node 20
runtime environment.

Comment on lines +64 to 74
uses: actions/github-script@v7
env:
CALENDAR_ID: ${{ secrets.CALENDAR_ID }}
CALENDAR_SERVICE_ACCOUNT: ${{ secrets.CALENDAR_SERVICE_ACCOUNT }}
MAILCHIMP_API_KEY: ${{ secrets.MAILCHIMP_API_KEY }}
TITLE: ${{github.event.issue.title}}
with:
script: |
const sendEmail = require('./.github/workflows/scripts/mailchimp/index.js');
sendEmail('${{github.event.issue.html_url}}', '${{github.event.issue.title}}');
sendEmail('${{github.event.issue.html_url}}', '$TITLE');

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue

$TITLE is never interpolated – will be sent literally

Inside actions/github-script, the second parameter is a JavaScript string. Writing '$TITLE' passes the literal text $TITLE, not the env value.
Use process.env.TITLE or GitHub expression substitution.

-            sendEmail('${{github.event.issue.html_url}}', '$TITLE');
+            sendEmail('${{github.event.issue.html_url}}', process.env.TITLE);

Apply the same fix to every job that calls sendEmail(...).

Failing to fix this will generate emails with a subject of “$TITLE”.

🤖 Prompt for AI Agents
In .github/workflows/notify-tsc-members-mention.yml around lines 64 to 74, the
string '$TITLE' is passed literally to the sendEmail function instead of the
environment variable value. To fix this, replace '$TITLE' with process.env.TITLE
inside the JavaScript script block so the actual title value is used. Apply this
change to all instances where sendEmail is called with '$TITLE' to ensure the
email subject is correctly set.

Comment on lines 18 to 22
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue

YAML indentation error will break the workflow

steps: is indented 4 spaces; list items must be indented 2 spaces further (6).
Current fragment:

19    steps:
20-    - uses: actions/github-script@v7   # ← only 4 spaces
21      with:

Fix:

-    - uses: actions/github-script@v7
-      with:
-        github-token: ${{ secrets.GITHUB_TOKEN }}
+      - uses: actions/github-script@v7
+        with:
+          github-token: ${{ secrets.GITHUB_TOKEN }}

Without this, the workflow fails to load (YAMLException: bad indentation).

📝 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
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
- uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
🧰 Tools
🪛 YAMLlint (1.37.1)

[warning] 20-20: wrong indentation: expected 6 but found 4

(indentation)

🤖 Prompt for AI Agents
In .github/workflows/welcome-first-time-contrib.yml around lines 18 to 22, the
indentation of the steps list is incorrect; the list items under steps should be
indented 2 spaces further than the steps key. Adjust the indentation so that the
dash before "uses" and the following lines are indented 6 spaces instead of 4 to
fix the YAML indentation error and ensure the workflow loads correctly.

@derberg

derberg commented Jul 21, 2025

Copy link
Copy Markdown
Member

/rtm

@asyncapi-bot
asyncapi-bot merged commit b2fe951 into master Jul 21, 2025
18 of 19 checks passed
@asyncapi-bot
asyncapi-bot deleted the bot/update-files-from-global-repo branch July 21, 2025 16:27
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