Skip to content
unlock

GitHub Action

Unlock Issues

v1.1.1 Latest version

Unlock Issues

unlock

Unlock Issues

Unlock an issue, to be used on an event

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Unlock Issues

uses: OSDKDev/[email protected]

Learn more about this action in OSDKDev/unlock-issues

Choose a version

Unlock an issue. By default, it uses the context's but can be targetted.

Targetting context's issue:

- uses: OSDKDev/[email protected]
  with:
    repo-token: "${{ secrets.GITHUB_TOKEN }}"

Sample file: .github/workflows/unlock-reopened-issues.yml

name: Unlock reopened issue

on: 
  issues:
    types: [reopened]

jobs:
  lock:
    runs-on: ubuntu-latest
    steps:
    - uses: OSDKDev/[email protected]
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"

As simple as that!

Targetting a specific issue / repo:

- uses: OSDKDev/[email protected]
  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}