Skip to content

Commit

Permalink
add gha test
Browse files Browse the repository at this point in the history
  • Loading branch information
goapunk committed Oct 16, 2024
1 parent 2b8133f commit 3c38860
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/issue-template---example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Issue template - Example
about: This is an example on how to use the template. For current use, better use
the other one.
title: ''
labels: ''
assignees: ''

---

**URL:** https://speakup.digital/projects/feedback-fur-speakup/
**user:** *moderator/ initiator/ participants/ visitors (non-logged-in)/ admin/ cms-editors/ developers*
**expected behaviour:** *Describe what you´d expect*
**behaviour:** *Describe the issue*
**important screensize:** *mobile? desktop?*
**device & browser:** *e.g. Desktop, firefox 68.0.2 (64-Bit)*
**Comment/Question:** *Is this easy to do? What ideas do you have? Would this be a story?*

If needed or helpful you can add a screenshot. Since issues are public, make sure to not display personal or secret data.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/issue-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Issue template
about: Please, fill in this template in order to help us understand the issue better
title: ''
labels: ''
assignees: ''

---

**URL:**
**user:**
**expected behaviour:**
**behaviour:**
**important screensize:**
**device & browser:**
**Comment/Question:**

Screenshot?
14 changes: 14 additions & 0 deletions .github/workflows/asana-link-pr-to-task.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
on:
pull_request:
types: [opened, reopened]

jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Add comment in Asana task
uses: duckduckgo/[email protected]
with:
asana-pat: ${{ secrets.GH_ASANA_SECRET }}
trigger-phrase: 'ATASK'
action: 'add-asana-comment'
17 changes: 17 additions & 0 deletions .github/workflows/asana-notify-approved.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Pull Request Reviewed

on:
pull_request_review:
types: [submitted]

jobs:
pr-reviewed:
if: github.event.review.state == 'approved'
runs-on: ubuntu-latest
steps:
- name: Update Asana task -> PR approved
uses: duckduckgo/[email protected]
with:
asana-pat: ${{ secrets.GH_ASANA_SECRET }}
trigger-phrase: "Task/Issue URL:"
action: 'notify-pr-approved'
15 changes: 15 additions & 0 deletions .github/workflows/asana-notify-merged.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
pull_request:
types: [closed]

jobs:
add-pr-merged-comment:
runs-on: ubuntu-latest
steps:
- uses: duckduckgo/[email protected]
if: github.event.pull_request.merged
with:
asana-pat: ${{ secrets.GH_ASANA_SECRET }}
trigger-phrase: 'ATASK'
action: 'notify-pr-merged'
is-complete: true
13 changes: 13 additions & 0 deletions .github/workflows/asana-sync-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
on:
issues:
types: [opened, reopened]

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: duckduckgo/[email protected]
with:
asana-pat: ${{ secrets.GH_ASANA_SECRET }}
asana-project: ${{ vars.GH_ASANA_PROJECT_ID }}
action: 'create-asana-issue-task'

0 comments on commit 3c38860

Please sign in to comment.