Coder Social home page Coder Social logo

1natsu172 / github-action-auto-move-related-issue Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 1.96 MB

Move the open-issue described in the "Issue" paragraph to a specific project column.

Home Page: https://github.com/marketplace/actions/auto-move-related-issue

License: MIT License

TypeScript 99.62% JavaScript 0.38%
github-actions issue-management github-project

github-action-auto-move-related-issue's Introduction

typescript-action status

GitHub Actions auto-move-related-issue

This is GitHub Actions that move the open-issue described in the "Issue" paragraph to a specific project column.

The supported action webhook events are issues | pull_request.

Note: The development is primarily focused on closed events, so it may not work with certain event triggers.

Screenshot

DEMO GIF

Usage

Setup workflow file

example .github/workflows/auto-move-related-issue.yml

name: "Auto move related issue"
on:
  pull_request:
    types: [closed]

jobs:
  auto-move-related-issue:
    runs-on: ubuntu-latest
    steps:
      - uses: 1natsu172/github-action-auto-move-related-issue@v1
        id: auto-move-related-issue_action
        with:
          # github_token: "${{ secrets.GITHUB_TOKEN }}"
          config: "auto-move-related-issue-config.yml"

・Tips

If you only want to run the pull_request on merged, you can write the steps configuration as follows.

    steps:
      - uses: 1natsu172/github-action-auto-move-related-issue@v1
        if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
        id: auto-move-related-issue_action
        with:
          # github_token: "${{ secrets.GITHUB_TOKEN }}"
          config: "auto-move-related-issue-config.yml"

with options

name description default required e.g.
config Config file name auto-move-related-issue-config.yml true move-related-issue-on-merged.yml
github_token Access token ${{github.token}} true ${{secrets.ACCESS_TOKEN}}

Configure target project and column names

example .github/auto-move-related-issue-config.yml

projectName: "kanban1"
columnName: "Review in progress"

This action support single project and single column target.

Please write an Issue paragraph in your Issue or PullRequest content

Must write Issue paragraph and Issue or PullRequest number or url

content-body-example

example

# Issue

#1
#3
https://github.com/sushi-kun/github-projects-lab/issues/5

# Summary

.
.
.

Config rules

Write the exact name

According to the image below.

project name and column name is here

Behavior

Only the Issue or PullRequest number or url in the issue paragraph will be targeted. It also ignores issues that have been given keywords to close.

ref: Closing issues using keywords

Support for Issue or PullRequest that has not been added to the target project. It is automatically added to the target column even if it has not been added to the project.

FAQ

・Not moved or some Issue or PullRequest is not moved.

Do you have any extra information in your Issue paragraph other than a number or URL? It is recommended to describe Issue paragraph as simply as possible, with only the number and URL.

Support action trigger events

eventName action types
issues any
pull_request any

Versioning

Use SemVer for versioning. For the versions available, see the tags on this repository.

©️ License

MIT © 1natsu172


For developer

Versioning

The presence or absence of the v prefix is ​​intentional.

v1 = "^1.0.0" 1.0.0 = "1.0.0"

Whenever release, must release the new version(non-v-prefix) and major version release(has-v-prefix).

ref: https://github.com/actions/toolkit/blob/master/docs/action-versioning.md

After new release branch merged

Release new specific version

Release by GUI operation according to the official publishing-action guide.

https://help.github.com/ja/actions/building-actions/publishing-actions-in-github-marketplace#publishing-an-action

Be careful: specific version release tag is non-v-prefix

Update major version tag

And then, update existing major version tag by local push.

git checkout master
git tag -fa v1 -m "Update v1 tag"
git push origin v1 --force

github-action-auto-move-related-issue's People

Contributors

1natsu172 avatar renovate-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

github-action-auto-move-related-issue's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update dependency @types/node to v14.18.63
  • chore(deps): update dependency eslint to v7.32.0
  • chore(deps): update dependency eslint-config-prettier to v6.15.0
  • chore(deps): update dependency eslint-plugin-github to v4.10.2
  • chore(deps): update dependency eslint-plugin-jest to v23.20.0
  • chore(deps): update dependency eslint-plugin-prettier to v3.4.1
  • chore(deps): update dependency prettier to v2.8.8
  • chore(deps): update dependency ts-jest to v26.5.6
  • chore(deps): update jest monorepo to v26.6.3 (jest, jest-circus)
  • chore(deps): update typescript-eslint monorepo to v3.10.1 (@typescript-eslint/eslint-plugin, @typescript-eslint/parser)
  • chore(deps): update actions/checkout action to v4
  • chore(deps): update dependency @types/node to v20
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency eslint-config-prettier to v9
  • chore(deps): update dependency eslint-plugin-jest to v28
  • chore(deps): update dependency eslint-plugin-prettier to v5
  • chore(deps): update dependency prettier to v3
  • chore(deps): update dependency type-fest to v4
  • chore(deps): update dependency typescript to v5
  • chore(deps): update jest monorepo to v29 (major) (@types/jest, jest, jest-circus, ts-jest)
  • fix(deps): update dependency @actions/github to v6
  • fix(deps): update dependency @technote-space/github-action-config-helper to v2
  • fix(deps): update dependency @technote-space/github-action-helper to v5
  • 🔐 Create all rate-limited PRs at once 🔐

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/auto-move-related-issue.yml
.github/workflows/test.yml
  • actions/checkout v2
npm
package.json
  • @actions/core ^1.2.0
  • @actions/github ^2.1.1
  • @technote-space/github-action-config-helper ^1.0.2
  • @technote-space/github-action-helper ^2.0.3
  • lodash.isobject ^3.0.2
  • @octokit/webhooks ^7.1.2
  • @types/jest ^25.2.3
  • @types/lodash.isobject ^3.0.6
  • @types/node ^14.0.6
  • @typescript-eslint/eslint-plugin ^3.2.0
  • @typescript-eslint/parser ^3.0.2
  • @zeit/ncc ^0.22.0
  • eslint ^7.2.0
  • eslint-config-prettier ^6.11.0
  • eslint-plugin-github ^4.0.1
  • eslint-plugin-jest ^23.13.2
  • eslint-plugin-prettier ^3.1.3
  • jest ^26.0.1
  • jest-circus ^26.0.1
  • js-yaml ^3.13.1
  • prettier ^2.0.2
  • ts-jest ^26.1.0
  • type-fest ^0.15.1
  • typescript ^3.8.3

  • Check this box to trigger a request for Renovate to run again on this repository

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.