All Projects → dessant → issue-states

dessant / issue-states

Licence: MIT license
GitHub Action that closes or reopens issues when they are moved to a project column

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to issue-states

label-actions
🤖 GitHub Action that performs certain tasks when issues, pull requests or discussions are labeled or unlabeled
Stars: ✭ 60 (-6.25%)
Mutual labels:  issues, close, github-actions
Expansionpanel
Android - Expansion panels contain creation flows and allow lightweight editing of an element.
Stars: ✭ 1,984 (+3000%)
Mutual labels:  open, close
assign-one-project-github-action
Automatically add an issue or pull request to specific GitHub Project(s) when you create and/or label them.
Stars: ✭ 140 (+118.75%)
Mutual labels:  projects, github-actions
aloba
🤖 [Myrmica Aloba 🐜] Bot: Add labels and milestone on pull requests and issues.
Stars: ✭ 18 (-71.87%)
Mutual labels:  issues, github-actions
issue-bot
GitHub Actions powered Issue Bot 🦾
Stars: ✭ 62 (-3.12%)
Mutual labels:  issues, github-actions
assign-author
GitHub Actions to assign author to issue or PR
Stars: ✭ 55 (-14.06%)
Mutual labels:  issues, github-actions
changelog-generator
GitHub Action to generate changelogs, release notes, whatever
Stars: ✭ 95 (+48.44%)
Mutual labels:  github-actions
DemoApp
An Android template project for fast development and test.
Stars: ✭ 33 (-48.44%)
Mutual labels:  github-actions
Tutorials
Step by step to learn coding and build Apps 🎉. Code files of Youtube & University tutorials.
Stars: ✭ 80 (+25%)
Mutual labels:  projects
cfn-deploy
A useful GitHub Action to help you deploy cloudformation templates
Stars: ✭ 14 (-78.12%)
Mutual labels:  github-actions
angular-gantt-schedule-timeline-calendar-example
Angular gantt-schedule-timeline-calendar usage example
Stars: ✭ 15 (-76.56%)
Mutual labels:  projects
CodeforcesApiPy
Implementation of https://codeforces.com API
Stars: ✭ 17 (-73.44%)
Mutual labels:  github-actions
vscode-projects-plus-todo-plus
Bird's-eye view over your projects, view all your todo files aggregated into one.
Stars: ✭ 25 (-60.94%)
Mutual labels:  projects
Expo-Super-Mario-World
Native Super Mario World in Expo
Stars: ✭ 24 (-62.5%)
Mutual labels:  open
actions-js-build
GitHub Actions for running Javascript build tools and committing file changes
Stars: ✭ 46 (-28.12%)
Mutual labels:  github-actions
zhiiiyang
It is a self-updating personal README showing my latest tweet and reply.
Stars: ✭ 27 (-57.81%)
Mutual labels:  github-actions
community
FINOS Community, Project and SIG wide collaboration space
Stars: ✭ 43 (-32.81%)
Mutual labels:  projects
verify-linked-issue-action
A GitHub action that verifies your pull request contains a reference to an issue.
Stars: ✭ 18 (-71.87%)
Mutual labels:  github-actions
ci-skip
CI skip comment
Stars: ✭ 35 (-45.31%)
Mutual labels:  github-actions
publish-docker-action
GitHub Action used to build, tag and publish docker image to your docker registry
Stars: ✭ 31 (-51.56%)
Mutual labels:  github-actions

Issue States

Issue States is a GitHub Action that closes or reopens issues when they are moved to a project column.

Supporting the Project

The continued development of Issue States is made possible thanks to the support of awesome backers. If you'd like to join them, please consider contributing with Patreon, PayPal or Bitcoin.

Usage

  1. Create the issue-states.yml workflow file in the .github/workflows directory, use one of the example workflows to get started
  2. Start adding or moving issues to the project columns declared in open-issue-columns and closed-issue-columns

Issues which were already in the respective columns before the action was set up will not be processed. To process these issues, move them to a different column, then move them back.

Care must be taken during the use of the action to not conflict with project automation presets on GitHub.

Inputs

The action can be configured using input parameters.

  • github-token
    • GitHub access token, value must be ${{ github.token }} or an encrypted secret that contains a personal access token
    • Optional, defaults to ${{ github.token }}
  • open-issue-columns
    • Reopen issues that are moved to these project columns, value must be a comma separated list of project columns
    • Optional, defaults to ''
  • closed-issue-columns
    • Close issues that are moved to these project columns, value must be a comma separated list of project columns
    • Optional, defaults to Closed, Done
  • log-output
    • Log output parameters, value must be either true or false
    • Optional, defaults to false

Outputs

  • issues
    • Issues that have been either closed or reopened, value is a JSON string in the form of [{"owner": "actions", "repo": "toolkit", "issue_number": 1, "state": "closed"}], value of state is either open or closed
    • Defaults to ''

Examples

The following workflow will close issues when they are moved to the Closed or Done project column.

name: 'Issue States'

on:
  project_card:
    types: [created, edited, moved]

permissions:
  repository-projects: read
  issues: write
  pull-requests: write

jobs:
  action:
    runs-on: ubuntu-latest
    steps:
      - uses: dessant/issue-states@v2

Available input parameters

This workflow declares all the available input parameters of the action and their default values. Any of the parameters can be omitted.

name: 'Issue States'

on:
  project_card:
    types: [created, edited, moved]

permissions:
  repository-projects: read
  issues: write
  pull-requests: write

jobs:
  action:
    runs-on: ubuntu-latest
    steps:
      - uses: dessant/issue-states@v2
        with:
          github-token: ${{ github.token }}
          open-issue-columns: ''
          closed-issue-columns: 'Closed, Done'
          log-output: false

Using a personal access token

The action uses an installation access token by default to interact with GitHub. You may also authenticate with a personal access token to perform actions as a GitHub user instead of the github-actions app.

Create a personal access token with the repo or public_repo scopes enabled, and add the token as an encrypted secret for the repository or organization, then provide the action with the secret using the github-token input parameter.

    steps:
      - uses: dessant/issue-states@v2
        with:
          github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

License

Copyright (c) 2018-2021 Armin Sebastian

This software is released under the terms of the MIT License. See the LICENSE file for further information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].