Skip to content

Commit

Permalink
Update versions & simplify conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
laghee committed Feb 20, 2025
1 parent 2778daf commit 7b95dae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pfm-pr-merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: Mark Asana task complete on merge

on:
pull_request:
types: [labeled, closed]
types: [closed]

jobs:
add-pr-merged-comment:
if: contains(join(github.event.pull_request.labels.*.name, ','), 'SBT-PFM') && (github.event.action == 'closed') && (github.event.pull_request.merged == true)
if: contains(join(github.event.pull_request.labels.*.name, ','), 'SBT-PFM') && (github.event.pull_request.merged == true)
name: Process Pull Request, closing linked Asana task
runs-on: ubuntu-latest
steps:
- name: Add comment in Asana task
uses: duckduckgo/native-github-asana-sync@v1.1
uses: duckduckgo/native-github-asana-sync@v1.5
with:
asana-pat: ${{ secrets.ASANA_ACCESS_TOKEN }}
trigger-phrase: '\*\*Asana Task/Github Issue:\*\*'
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pfm-pr-opened.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ name: Asana Integration after pull request submitted

on:
pull_request:
types: [labeled, opened, reopened]
types: [opened, reopened]

jobs:
process-internal-pr:
if: contains(join(github.event.pull_request.labels.*.name, ','), 'SBT-PFM') && (github.event.action == 'opened' || github.event.action == 'reopened')
if: contains(join(github.event.pull_request.labels.*.name, ','), 'SBT-PFM')
name: Process internal Pull Request, adding PR link to Asana task if present
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Add comment in Asana task
uses: duckduckgo/native-github-asana-sync@v1.1
uses: duckduckgo/native-github-asana-sync@v1.5
with:
asana-pat: ${{ secrets.ASANA_ACCESS_TOKEN }}
trigger-phrase: '\*\*Asana Task/Github Issue:\*\*'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pfm-pr-review-notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
jobs:
pr-reviewed:
name: Add PR reviewed comment to Asana task
uses: duckduckgo/native-github-asana-sync/.github/workflows/pr-review-notifications.yml@v1.4.1
if: contains(join(github.event.pull_request.labels.*.name, ','), 'SBT-PFM') && (github.event.review == 'submitted')
uses: duckduckgo/native-github-asana-sync/.github/workflows/pr-review-notifications.yml@v1.5
if: contains(join(github.event.pull_request.labels.*.name, ','), 'SBT-PFM')
with:
trigger-phrase: '\*\*Asana Task/Github Issue:\*\*'
secrets:
Expand Down

0 comments on commit 7b95dae

Please sign in to comment.