From d040fd40c1865ee5485d3f439df06bd7567e68a6 Mon Sep 17 00:00:00 2001 From: Sam <109683132+kernelsam@users.noreply.github.com> Date: Tue, 30 Jan 2024 14:58:06 -0800 Subject: [PATCH] senzing-factory/build-resources#91 fix dependabot project status (#800) --- .../add-to-project-garage-dependabot.yaml | 29 +++++++------------ .github/workflows/add-to-project-garage.yaml | 8 +++-- .github/workflows/move-pr-to-done.yaml | 9 ------ 3 files changed, 16 insertions(+), 30 deletions(-) delete mode 100644 .github/workflows/move-pr-to-done.yaml diff --git a/.github/workflows/add-to-project-garage-dependabot.yaml b/.github/workflows/add-to-project-garage-dependabot.yaml index 91cb367..d7adc03 100644 --- a/.github/workflows/add-to-project-garage-dependabot.yaml +++ b/.github/workflows/add-to-project-garage-dependabot.yaml @@ -1,21 +1,14 @@ -name: add-to-project-garage-dependabot.yaml +name: 'add to project garage dependabot' + on: pull_request: - types: - - opened - - reopened -env: - CREATOR: ${{ github.event.pull_request.user.login }} + branches: [main] + jobs: - add-to-project: - name: Add dependabot pull request to project - runs-on: ubuntu-latest - steps: - - name: Assign pull request to project - env: - BOOL: ${{ contains( env.CREATOR, 'dependabot' ) }} - if: ${{ env.BOOL == 'true' }} - uses: actions/add-to-project@v0.5.0 - with: - project-url: https://github.com/orgs/senzing-garage/projects/3 - github-token: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }} + + add-to-project-dependabot: + secrets: + SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }} + uses: senzing-factory/build-resources/.github/workflows/add-to-project-dependabot.yaml@main + with: + project: ${{ vars.SENZING_PROJECT_GARAGE }} diff --git a/.github/workflows/add-to-project-garage.yaml b/.github/workflows/add-to-project-garage.yaml index 4599e4e..ddebc40 100644 --- a/.github/workflows/add-to-project-garage.yaml +++ b/.github/workflows/add-to-project-garage.yaml @@ -1,9 +1,11 @@ -name: add-to-project-garage.yaml +name: 'add to project garage' + on: issues: types: - - reopened - opened + - reopened + jobs: add-to-project: name: Add issue to project @@ -12,5 +14,5 @@ jobs: - name: Assign issue to project uses: actions/add-to-project@v0.5.0 with: - project-url: https://github.com/orgs/senzing-garage/projects/3 + project-url: https://github.com/orgs/${{ vars.SENZING_GITHUB_ACCOUNT_NAME }}/projects/${{ vars.SENZING_PROJECT_GARAGE }} github-token: ${{ secrets.SENZING_GITHUB_ACCESS_TOKEN }} diff --git a/.github/workflows/move-pr-to-done.yaml b/.github/workflows/move-pr-to-done.yaml deleted file mode 100644 index 57fde8e..0000000 --- a/.github/workflows/move-pr-to-done.yaml +++ /dev/null @@ -1,9 +0,0 @@ -name: move-pr-to-done.yaml -on: - pull_request: - types: [closed] -jobs: - move-pr-to-done: - uses: Senzing/build-resources/.github/workflows/move-pr-to-done.yaml@main - secrets: - SENZING_GITHUB_PROJECT_RW_TOKEN: ${{ secrets.SENZING_GITHUB_PROJECT_RW_TOKEN }}