thread header now has more space away from tabs #1130
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Convert PRs to Drafts without Linked Issue | |
on: | |
pull_request: | |
types: | |
- opened | |
jobs: | |
checkLinkedIssue: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/github-script@v6 | |
id: set-result | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const prDescription = context.payload.pull_request.body; | |
const issueMatcher = /([cC]loses|[fF]ixes):\s*#(\d+)/; | |
let prNumber = -1; | |
if (issueMatcher.test(prDescription)) { | |
prNumber = context.payload.number | |
} | |
return prNumber; | |
result-encoding: string | |
- name: Mark as draft | |
if: ${{ steps.set-result.outputs.result == '-1' }} | |
uses: voiceflow/draft-pr@latest | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} |