-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f2c2c3
commit 2838201
Showing
3 changed files
with
34 additions
and
11 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 |
---|---|---|
@@ -1,25 +1,33 @@ | ||
Automatically unlock context issue, most commonly used on "reopened" event. | ||
Unlock an issue. By default, it uses the context's but can be targetted. | ||
|
||
To add it to your workflow: | ||
### Targetting context's issue: | ||
|
||
- uses: OSDKDev/unlock-issues@v1 | ||
- uses: OSDKDev/unlock-issues@v1.1 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
Sample file: `.github/workflows/unlock-reopened-issues.yml` | ||
|
||
#### Sample file: `.github/workflows/unlock-reopened-issues.yml` | ||
name: Unlock reopened issue | ||
|
||
on: | ||
issues: | ||
types: [reopened] | ||
|
||
jobs: | ||
unlock: | ||
lock: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: OSDKDev/unlock-issues@v1 | ||
- uses: OSDKDev/unlock-issues@v1.1 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
As simple as that! | ||
|
||
### Targetting a specific issue / repo: | ||
|
||
- uses: OSDKDev/unlock-issues@v1.1 | ||
with: | ||
repo-token: {Token with permissions over the target repository / issue} | ||
owner-name: {Owner Name - Optional - Default: Context's Repository Owner} | ||
repo-name: {Repository Name - Optional - Default: Context's Repository} | ||
issue-number: {Issue Number - Optional - Default: Context's Issue} |
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