Skip to content

Commit

Permalink
Bump to v2.0 (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Oct 20, 2024
1 parent 6eaf56e commit 5082cfc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

## Features

- Add milestone to merged PRs automatically.
- Add milestone to closed issues that have a merged PR fix
- Add milestone to merged PRs automatically
- Add milestone to closed issues that have a merged PR fix automatically
- Create milestone by title, description and due date
- Close milestone by title or milestone number

Expand All @@ -28,7 +28,7 @@ jobs:
name: Milestone Update
steps:
- name: Set Milestone for PR
uses: hustcer/milestone-action@main
uses: hustcer/milestone-action@v2
if: github.event.pull_request.merged == true
with:
action: bind-pr # `bind-pr` is the default action
Expand All @@ -37,7 +37,7 @@ jobs:

# Bind milestone to closed issue that has a merged PR fix
- name: Set Milestone for Issue
uses: hustcer/milestone-action@main
uses: hustcer/milestone-action@v2
if: github.event.issue.state == 'closed'
with:
action: bind-issue
Expand All @@ -49,11 +49,11 @@ Create milestone by title, description and due date:
```yaml
- name: Create Milestone
uses: hustcer/milestone-action@main
uses: hustcer/milestone-action@v2
with:
action: create
title: 'v1.0'
due-on: '2025-05-01'
title: v1.0
due-on: 2025-05-01
description: 'The first milestone of the project.'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -63,10 +63,10 @@ Close milestone by title or milestone number:
```yaml
- name: Close Milestone
uses: hustcer/milestone-action@main
uses: hustcer/milestone-action@v2
with:
action: close
milestone: 'v1.0' # Milestone title or number
milestone: v1.0 # Milestone title or number
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```
Expand Down
4 changes: 2 additions & 2 deletions meta.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "MileStone Action",
"version": "1.0.0",
"actionVer": "v1.0",
"version": "2.0.0",
"actionVer": "v2.0",
"author": "hustcer",
"license": "MIT",
"github": "https://github.com/hustcer/milestone-action",
Expand Down

0 comments on commit 5082cfc

Please sign in to comment.