From aa3dc4090b073446bc1940c6775a7c9f42c2c2a0 Mon Sep 17 00:00:00 2001 From: Alex Schokking Date: Sat, 18 Jan 2025 11:27:01 -0800 Subject: [PATCH] copy in .github folder from 2024 project --- .github/CODEOWNERS | 3 +++ .github/pull_request_template.md | 11 +++++++++++ .github/workflows/comment-on-task.yaml | 17 +++++++++++++++++ .github/workflows/create-asana-attachment.yml | 16 ++++++++++++++++ 4 files changed, 47 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/comment-on-task.yaml create mode 100644 .github/workflows/create-asana-attachment.yml diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..7eaf203 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,3 @@ +# These owners will be the default owners for everything in +# the repo. Unless a later match takes precedence, +* @Team488/core-robot-maintainers diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..87f4e93 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,11 @@ +# Why are we doing this? + +Asana task URL: + +# Whats changing? + +# Questions/notes for reviewers + +# How this was tested +- [ ] unit tests added +- [ ] tested on robot diff --git a/.github/workflows/comment-on-task.yaml b/.github/workflows/comment-on-task.yaml new file mode 100644 index 0000000..e9eba9c --- /dev/null +++ b/.github/workflows/comment-on-task.yaml @@ -0,0 +1,17 @@ +on: + pull_request: + types: [opened, closed, reopened, edited, converted_to_draft, ready_for_review] + +jobs: + create-comment-in-asana-task-job: + runs-on: ubuntu-latest + name: Create a comment in Asana Task + steps: + - name: Create a comment + uses: Asana/comment-on-task-github-action@v1.2 + id: createComment + with: + asana-secret: ${{ secrets.ASANA_SECRET }} + comment-text: "{{PR_NAME}} is {{PR_STATE}}: {{PR_URL}}" + - name: Get status + run: echo "Status is ${{ steps.createComment.outputs.status }}" \ No newline at end of file diff --git a/.github/workflows/create-asana-attachment.yml b/.github/workflows/create-asana-attachment.yml new file mode 100644 index 0000000..697f134 --- /dev/null +++ b/.github/workflows/create-asana-attachment.yml @@ -0,0 +1,16 @@ +on: + pull_request: + types: [opened, reopened, edited, converted_to_draft, ready_for_review] + +jobs: + create-asana-attachment-job: + runs-on: ubuntu-latest + name: Create pull request attachments on Asana tasks + steps: + - name: Create pull request attachments + uses: Asana/create-app-attachment-github-action@latest + id: postAttachment + with: + asana-secret: ${{ secrets.ASANA_SECRET }} + - name: Log output status + run: echo "Status is ${{ steps.postAttachment.outputs.status }}" \ No newline at end of file