Coder Social home page Coder Social logo

fixed-pending-release's Introduction

A GitHub Action that closes issues marked as fixed upon a new release

This GitHub Action closes issues that were marked as fixed upon a new GitHub release ๐ŸŽ‰

Usage

To use this action, you will need to provide your personal access token with public_repo permission.

name: Close issues marked as fixed upon a release.
on:
  release:
    types: [published]

jobs:
  comment:
    runs-on: ubuntu-latest
    steps:
      - name: Close issues marked as fixed upon a release.
        uses: gcampbell/fixed-pending-release/@x.x.x
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          label: fixed-pending-release
          message: ":tada: This issue has now been fixed and is now available in the latest release! :tada:"

Note that this action is triggered by the release.published event, which occurs when a new release is published in your repository. Additionally, if there are cases where you want to use this manually, you should use workflow_dispatch and you should likely set isExternalLaunch to "true".

Assumptions

There are a couple of assumptions that this GitHub Actions makes.

  1. The most recent release that you published (pre-release or official) is the release that fixes all issues marked as fixed upon a new release.
    1. This assumption is not made when isExternalRelease is "true".

Inputs

This action has the following inputs:

  • token (optional): Your GitHub access token. You can use ${{ secrets.ACCESS_TOKEN }} to access the value you set as actions repository secret. Default value will be ${{ github.token }}.
  • label (option): The label that specifies issues that should be closed upon release.
  • message (optional): The message to be included in the comment. This is passed to the action as a lodash template string. Available variables, when isExternalRelease is true, include: releaseName, releaseTag, releaseUrl.
  • isExternalRelease (optional): Boolean indicating whether the release is external to GitHub. If it is, no GitHub release will be used and thus the above variables aren't available.

License

This GitHub Action is licensed under the MIT License.

fixed-pending-release's People

Contributors

gcampbell-msft avatar

Stargazers

 avatar  avatar

Watchers

 avatar

fixed-pending-release's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.