Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
coreycarvalho committed Nov 4, 2024
1 parent a352af6 commit f147d0d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 8 deletions.
8 changes: 0 additions & 8 deletions .github/ISSUE_TEMPLATE/notify-dependency-update-template.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
---
name: Notify Dependency Update Template
about: Regular dependency updates
title: Regular Update for Dependencies
labels: Notify, QA, Tech Debt
assignees: ''
---

## User Story - Business Need

We wish to keep dependencies up to date so that we do not need such massive overhauls of our system. This is a recurring task to update all dependencies we are able to update. Any conflicts shall get a dedicated ticket. This task should be a day of work at most because it only updates non-breaking changes.
Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/dependency-ticket-creation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Biweekly Dependency Ticket Creation

on:
push:
branches:
- "1381-dependency-ticket-automation"

jobs:
create_issue:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Create GitHub Issue
id: create_issue
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
ISSUE_URL=$(gh issue create \
--body-file "./.github/ISSUE_TEMPLATE/notify-dependency-update-template.md" \
--label "Notify" \
--label "QA" \
--label "Tech Debt" \
--title "Regular Update for Dependencies")
echo "issue_url=${ISSUE_URL}" >> $GITHUB_ENV
- name: Get Issue Number
run: |
ISSUE_NUMBER=${issue_url##*/}
echo "issue_number=${ISSUE_NUMBER}" >> $GITHUB_ENV
- name: Move Issue to "To Do" Column in Project
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
# Replace these with your project and column details
PROJECT_NUMBER=1417
TODO_COLUMN_ID=$(gh project column list --project "${PROJECT_NUMBER}" --json id,name --jq '.[] | select(.name=="To Do") | .id')
# Add the issue to the project column
gh project item add --project "${PROJECT_NUMBER}" --content-type "Issue" --content-id "${{ env.issue_number }}" --column-id "${TODO_COLUMN_ID}"

0 comments on commit f147d0d

Please sign in to comment.