From a8ab33091cb21927f4233a953471fc2b86078b2e Mon Sep 17 00:00:00 2001 From: Seena Nair <55585488+seenanair@users.noreply.github.com> Date: Thu, 6 Jun 2024 13:55:28 +0100 Subject: [PATCH 1/2] Create add_prs_to_tech_debt_project.yml to add dependency updates to the technical debt project --- .../add_prs_to_tech_debt_project.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/add_prs_to_tech_debt_project.yml diff --git a/.github/workflows/add_prs_to_tech_debt_project.yml b/.github/workflows/add_prs_to_tech_debt_project.yml new file mode 100644 index 00000000..07d1e53d --- /dev/null +++ b/.github/workflows/add_prs_to_tech_debt_project.yml @@ -0,0 +1,19 @@ +# Calls a reusable workflow in the .github repo, +# which adds the PR that triggered this to the Technical Debt project board, if it is a depfu one. +# Passes the 'PSD-AddToProject' GitHub App key and App Id as secrets to the reusable workflow. + +name: Add dependencies to technical debt project + +on: + # Triggered on creation of pull requests with any label, + # or when a label is added to an existing pull request. + pull_request: + types: + - labeled + +jobs: + call-workflow-add_to_technical_debt_project: + uses: sanger/.github/.github/workflows/add_to_tech_debt_project_reusable.yml@master + secrets: + app_id: ${{ secrets.ADD_TO_PROJECT_APP_ID_PSD }} + app_key: ${{ secrets.ADD_TO_PROJECT_APP_KEY_PSD }} \ No newline at end of file From 481d179ef22e267eba22384604ee58645777b37f Mon Sep 17 00:00:00 2001 From: Seena Nair <55585488+seenanair@users.noreply.github.com> Date: Fri, 7 Jun 2024 12:39:14 +0100 Subject: [PATCH 2/2] New line added at end of file --- .github/workflows/add_prs_to_tech_debt_project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add_prs_to_tech_debt_project.yml b/.github/workflows/add_prs_to_tech_debt_project.yml index 07d1e53d..221de81e 100644 --- a/.github/workflows/add_prs_to_tech_debt_project.yml +++ b/.github/workflows/add_prs_to_tech_debt_project.yml @@ -16,4 +16,4 @@ jobs: uses: sanger/.github/.github/workflows/add_to_tech_debt_project_reusable.yml@master secrets: app_id: ${{ secrets.ADD_TO_PROJECT_APP_ID_PSD }} - app_key: ${{ secrets.ADD_TO_PROJECT_APP_KEY_PSD }} \ No newline at end of file + app_key: ${{ secrets.ADD_TO_PROJECT_APP_KEY_PSD }}