Skip to content

meta: use Sequelize Bot for drafting PRs - #18201

Merged
ephys merged 1 commit into
mainfrom
ephys/fix-drafter
Apr 5, 2026
Merged

ephys merged 1 commit into
mainfrom
ephys/fix-drafter

Conversation

@ephys

@ephys ephys commented Apr 5, 2026 •

Copy link
Copy Markdown
Member

Pull Request Checklist

  • Have you added new tests to prevent regressions?
  • If a documentation update is necessary, have you opened a PR to the documentation repository?
  • Did you update the typescript typings accordingly (if applicable)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Does the name of your PR follow our conventions?

Description of Changes

Trying to mark a pull request as draft using the default GITHUB_TOKEN does not work. GitHub responds with Resource not accessible by integration

By using the Sequelize Bot instead, I'm hoping the restriction can be bypassed

List of Breaking Changes

Summary by CodeRabbit

  • Chores
    • Updated GitHub Actions workflow authentication to use a GitHub App installation token.

@ephys
ephys requested a review from a team as a code owner April 5, 2026 15:59
@ephys
ephys requested review from WikiRik and sdepold April 5, 2026 15:59
@coderabbitai

coderabbitai Bot commented Apr 5, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

A GitHub Actions workflow step is added to generate a GitHub App installation token using a provided app ID and private key from secrets, and this token is subsequently passed to the sequelize/draft-unfinished-prs step as the GITHUB_TOKEN environment variable.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow Configuration
.github/workflows/stale.yml
Added a new create-github-app-token step to generate an authentication token from GitHub App credentials, and configured the sequelize/draft-unfinished-prs step to use this generated token for API operations.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • sdepold
  • WikiRik

Poem

🐰 A token blooms upon the vine,
GitHub App credentials shine,
Authentication flows so clean,
The finest stale-checker seen! ✨

🚥 Pre-merge checks | ✅ 3
✅ 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 'meta: use Sequelize Bot for drafting PRs' directly and clearly describes the main change: switching to use the Sequelize Bot for drafting pull requests in the workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ephys/fix-drafter

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
.github/workflows/stale.yml (1)

20-20: Pin actions/create-github-app-token to a full commit SHA.

Line 20 uses a floating action reference (@v3), while other actions in this workflow (actions/stale on lines 29, 42, 57 and sequelize/draft-unfinished-prs on line 25) are pinned to immutable commit SHAs. Pin this action for supply-chain safety and consistency.

Suggested change
      - name: Generate Sequelize Bot Token
        id: generate-token
-        uses: actions/create-github-app-token@v3
+        uses: actions/create-github-app-token@<FULL_40_CHAR_SHA> # v3
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.github/workflows/stale.yml at line 20, The workflow currently references a
floating action tag "uses: actions/create-github-app-token@v3" which should be
pinned to an immutable commit SHA for supply-chain safety; locate the "uses:
actions/create-github-app-token@v3" entry and replace the tag with the
corresponding full commit SHA (the same style used for other actions in this
file, e.g., how "actions/stale" and "sequelize/draft-unfinished-prs" are
pinned), updating the line to "uses:
actions/create-github-app-token@<full-commit-sha>" and commit the change.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.github/workflows/stale.yml:
- Line 20: The workflow currently references a floating action tag "uses:
actions/create-github-app-token@v3" which should be pinned to an immutable
commit SHA for supply-chain safety; locate the "uses:
actions/create-github-app-token@v3" entry and replace the tag with the
corresponding full commit SHA (the same style used for other actions in this
file, e.g., how "actions/stale" and "sequelize/draft-unfinished-prs" are
pinned), updating the line to "uses:
actions/create-github-app-token@<full-commit-sha>" and commit the change.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 47797525-c485-4681-a063-c25b788d221c

📥 Commits

Reviewing files that changed from the base of the PR and between 1926dd5 and 46e0df8.

📒 Files selected for processing (1)
  • .github/workflows/stale.yml

@ephys
ephys enabled auto-merge (squash) April 5, 2026 16:17
@ephys
ephys merged commit a39e9a5 into main Apr 5, 2026
78 checks passed
@ephys
ephys deleted the ephys/fix-drafter branch April 5, 2026 16:57
papandreou added a commit to papandreou/sequelize that referenced this pull request Apr 15, 2026
* main: (200 commits)
  meta: update actions/upload-artifact action to v7.0.1 (sequelize#18212)
  meta: update sequelize AUTHORS (sequelize#18208)
  feat(cli): add migration generate, run, status & undo (sequelize#18193)
  feat(core): Drop the ability to specify the dialect as a string (sequelize#18204)
  feat: update some dialect adapters (sequelize#18189)
  feat(postgres): replace pg-hstore with inline hstore parser (sequelize#18151)
  feat(core): add `sql.random`, improve `Order` typing (sequelize#18203)
  meta: use Sequelize Bot for drafting PRs (sequelize#18201)
  meta: automatically mark unfinished PRs as draft (sequelize#18197)
  meta: update dependency @oclif/test to v4.1.18 (sequelize#18198)
  fix(core): replace @typeparam with @template in JSDoc (sequelize#18094)
  feat(core): Add support for UUID v7 (sequelize#17832)
  meta: update sequelize AUTHORS (sequelize#18190)
  meta: update dependency @oclif/plugin-help to ^6.2.43 (sequelize#18195)
  meta: update dependency esbuild to v0.28.0 (sequelize#18192)
  meta: update dependency @oclif/plugin-help to ^6.2.42 (sequelize#18191)
  meta: update dependency @oclif/core to ^4.10.5 (sequelize#18187)
  meta: update sequelize AUTHORS (sequelize#18158)
  feat: add Node 24 support, drop Node 18 (sequelize#18185)
  feat(core): add support for readonly attribute arrays (sequelize#18186)
  ...
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