Skip to content

Commit

Permalink
Create wip.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
carkom authored Mar 22, 2024
1 parent 60dacc9 commit 1d778ab
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/wip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Add WIP

on:
pull_request_target:
types:
- opened

jobs:
add_wip_prefix:
if: |
join(github.event.pull_request.requested_reviewers) == ''
&& !contains(github.event.pull_request.title, 'WIP')
&& !contains(github.event.pull_request.labels.*.name, 'WIP')
&& github.event.pull_request.draft != true
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Add WIP
env:
TITLE: ${{ github.event.pull_request.title }}
shell: bash
run: |
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
gh pr edit ${{ github.event.pull_request.number }} -t "WIP: ${TITLE}"

0 comments on commit 1d778ab

Please sign in to comment.