Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikutas committed Aug 2, 2024
1 parent 561b8a8 commit 08f7fe3
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/released_or_not.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
issue_comment:
types: [created]

jobs:
not-released:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
if: ${{ startsWith(github.event.comment.body, '/notreleased') }}
with:
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ['not released']
})
released:
runs-on: ubuntu-latest
steps:
- name: Check for /released command
if: ${{ startsWith(github.event.comment.body, '/released') }}
uses: actions/github-script@v7
with:
script: |
github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
name: 'not released',
});

0 comments on commit 08f7fe3

Please sign in to comment.