-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add create & close milestone and bind issue to milestone support (#39)
* Add create & close milestone and bind issue to milestone support (#37) * Add create & close milestone and bind issue to milestone support * Add create and close workflow * fix: Fix close issue action
- Loading branch information
Showing
4 changed files
with
159 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Description: | ||
# - Close a milestone by title or number. | ||
|
||
name: Milestone Close@develop | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
milestone: | ||
required: true | ||
description: 'Title / Number' | ||
|
||
# Fix GraphQL: Resource not accessible by integration (updatePullRequest) | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
close-milestone: | ||
runs-on: ubuntu-latest | ||
name: Milestone Crete | ||
steps: | ||
- name: Close Milestone | ||
uses: hustcer/milestone-action@develop | ||
with: | ||
action: close | ||
github-token: ${{ secrets.PAT }} | ||
milestone: ${{ github.event.inputs.milestone }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Description: | ||
# - Create a milestone by title, description and due date. | ||
|
||
name: Milestone Create@develop | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
title: | ||
required: true | ||
description: 'Milestone Title' | ||
description: | ||
required: false | ||
description: 'Milestone Description' | ||
due-on: | ||
required: false | ||
description: 'Milestone Due Date' | ||
|
||
# Fix GraphQL: Resource not accessible by integration (updatePullRequest) | ||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
create-milestone: | ||
runs-on: ubuntu-latest | ||
name: Milestone Crete | ||
steps: | ||
- name: Create Milestone | ||
uses: hustcer/milestone-action@develop | ||
with: | ||
action: create | ||
github-token: ${{ secrets.PAT }} | ||
title: ${{ github.event.inputs.title }} | ||
due-on: ${{ github.event.inputs.due-on }} | ||
description: ${{ github.event.inputs.description }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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