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 Managementsummary 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.
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 }}'
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