Skip to content

Add extra fields to createCard#25

Merged
rniemeyer merged 21 commits intoLeanKit:mainfrom
PVSCDemo:main
Nov 7, 2022
Merged

Add extra fields to createCard#25
rniemeyer merged 21 commits intoLeanKit:mainfrom
PVSCDemo:main

Conversation

@PVSCDemo
Copy link
Copy Markdown
Contributor

@PVSCDemo PVSCDemo commented Nov 4, 2022

The reasoning behind this is that if you create an Issue on a git repo, then you can create a card with a card header set to something else useful, e.g. the repo name and issue number and you might also want to put the link of the issue into the externalLink field.

Use case: The team board can automatically get a Defect dropped onto it as soon as an issue is raised.

github-action yml file:

name: Defect Creation in LK
on:
  issues:
    types:
    - opened
jobs:
  create-defect:
    environment: Team Charlie
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - name: create defect
        uses: PVSCDemo/github-actions/[email protected]
        with:
          host: ${{secrets.LEANKIT_URL}}
          apiToken: ${{secrets.LEANKIT_API}}
          boardId: ${{secrets.BOARD_ID}}
          title: ${{github.event.issue.title}}
          customId: ${{github.event.repository.name}} ${{github.event.issue.number}}
          externalLink: ${{github.event.issue.html_url}}
          typeId: ${{secrets.DEFECT_TYPE}}

@rniemeyer
Copy link
Copy Markdown
Collaborator

@PVSCDemo - thanks - looking great. A couple of minor things:

  • the code files use tabs for whitespace and some of the changes have spaces (if you happen to install the "editorConfig" extension in vscode it should help, as we have a .editorConfig file that specifies.
  • I would remove the version bump in the package.json and the CHANGELOG changes. The tool tag-release that we use will do that automatically. We will probably tag this as 1.2.0, as this adds a new feature.

That's it. Great work!

@rniemeyer rniemeyer merged commit 3f64b39 into LeanKit:main Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants