Skip to content

A Github Action that handles change management tasks such as creating an Asana task and adding it to new PRs

nrfta/action-change-management

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

action-change-management

What this does

We want to create a log of all our code changes for admin purposes. This Github action executes main.py, which does the following:

  • If a Change Management summary does not exist in the PR description, create an Asana task in the Change Management project, and append to the PR description
  • When a PR description is edited, update the Asana task name with a potential new PR title
  • When a PR is merged, add a comment to the Asana task and mark as complete. Else if PR is deleted, delete the Asana task.

How do I use this action?

Here is an example of how you can setup this action:

name: 'Change Management'

on:
  pull_request:
    types: [opened, edited, closed, reopened]

jobs:
  change-management:
    runs-on: ubuntu-latest
    if: ${{ github.actor != 'dependabot[bot]' }}
    name: Change Management
    steps:
      - uses: nrfta/action-change-management@v1
    env:
      ASANA_API_TOKEN: '${{ secrets.ASANA_API_TOKEN }}'
      GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'

How to develop locally

Push changes to this repo you would like to test. Then tag and release.

git tag -m 'Testing new X changes' v2
git push --follow-tags

Reference the new tag in your action

nrfta/action-change-management@v2

Could also try using https://github.com/nektos/act

About

A Github Action that handles change management tasks such as creating an Asana task and adding it to new PRs

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages