Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Switch change management action to shared custom action #7

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
203 changes: 0 additions & 203 deletions .github/change_management.py

This file was deleted.

34 changes: 11 additions & 23 deletions .github/workflows/change-management.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,20 @@
name: 'Change Management'

# **What it does**: Adds a link to PRs with a newly created Asana task.
# **Why we have it**: To create a record of all code changes.
# **Who does it impact**: Everyone

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: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: install dependencies
run: |
pip install requests

- name: "Change Management"
working-directory: ./.github
run: |
echo '${{ toJSON(github.event.pull_request) }}' > pr_info.json

python change_management.py \
"${{ github.repository }}" \
pr_info.json \
"${{ github.event.action }}"
env:
ASANA_API_TOKEN: "${{ secrets.ASANA_API_TOKEN }}"
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: nrfta/action-change-management@v1
env:
ASANA_API_TOKEN: '${{ secrets.ASANA_API_TOKEN }}'
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
Loading