Skip to content

Commit

Permalink
Fix up draft to ready
Browse files Browse the repository at this point in the history
  • Loading branch information
sjh26 authored Jan 15, 2025
1 parent 40056ef commit 61782b2
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/draft-to-ready.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Apply ready label on draft label removal

on:
issues:
types: [ unlabeled ]

permissions:
contents: read

jobs:
apply-ready:
Expand All @@ -12,13 +13,14 @@ jobs:
permissions:
issues: write

- name: Add "ready" label
uses: actions/github-script@v6
with:
script: |
github.rest.issues.addLabels({
issue_number: context.payload.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: ["ready"]
})
steps:
- name: Add "ready" label
uses: actions/github-script@v6
with:
script: |
github.rest.issues.addLabels({
issue_number: context.payload.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
name: ["ready"]
})

0 comments on commit 61782b2

Please sign in to comment.