Skip to content

fix: automate mark as draft#6730

Merged
CommanderStorm merged 5 commits intolouislam:masterfrom
CommanderStorm:mark-as-draft
Jan 14, 2026
Merged

fix: automate mark as draft#6730
CommanderStorm merged 5 commits intolouislam:masterfrom
CommanderStorm:mark-as-draft

Conversation

@CommanderStorm
Copy link
Copy Markdown
Collaborator

@louislam this seems to need a token in CI to take this work of mee -> could you add MARK_AS_DRAFT_TOKEN in the settings with pull_request: write permissions (and no other permissions)

Copy link
Copy Markdown
Contributor

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 updates the GitHub Actions workflow for marking PRs as draft to use a custom secret token (MARK_AS_DRAFT_TOKEN) instead of the default github.token. This change is necessary because the default token lacks sufficient permissions to convert PRs to draft status.

Changes:

  • Replaced github.token with secrets.MARK_AS_DRAFT_TOKEN in all three workflow steps
  • Removed job-level permissions block (redundant when using custom token)
  • Minor formatting cleanup (removed blank line)

@louislam
Copy link
Copy Markdown
Owner

It should be available now.

image

@CommanderStorm CommanderStorm merged commit e95bd6a into louislam:master Jan 14, 2026
30 checks passed
@CommanderStorm
Copy link
Copy Markdown
Collaborator Author

Thank you ❤️

@CommanderStorm CommanderStorm deleted the mark-as-draft branch January 14, 2026 12:52
@CommanderStorm CommanderStorm added this to the 2.1.0 milestone Jan 18, 2026
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.

3 participants