From dfa385327ba8097ca11963804f1ae0d8b6cd5783 Mon Sep 17 00:00:00 2001 From: Darcy Nelson <111451622+dnels14@users.noreply.github.com> Date: Fri, 23 Sep 2022 13:45:38 -0600 Subject: [PATCH 01/15] Create workflows --- .github/workflows | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/workflows diff --git a/.github/workflows b/.github/workflows new file mode 100644 index 0000000..8951859 --- /dev/null +++ b/.github/workflows @@ -0,0 +1,2 @@ +- name: Add To GitHub projects + uses: actions/add-to-project@v0.3.0 From b35d596eef5e5f947a52a93e067c873a5426b0ce Mon Sep 17 00:00:00 2001 From: Darcy Nelson <111451622+dnels14@users.noreply.github.com> Date: Fri, 23 Sep 2022 13:59:44 -0600 Subject: [PATCH 02/15] Create pr.yml --- .github/pr.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/pr.yml diff --git a/.github/pr.yml b/.github/pr.yml new file mode 100644 index 0000000..8951859 --- /dev/null +++ b/.github/pr.yml @@ -0,0 +1,2 @@ +- name: Add To GitHub projects + uses: actions/add-to-project@v0.3.0 From 2088d49fe12d80001248f6730e7641cb073e53d3 Mon Sep 17 00:00:00 2001 From: Darcy Nelson <111451622+dnels14@users.noreply.github.com> Date: Fri, 23 Sep 2022 14:33:21 -0600 Subject: [PATCH 03/15] Update issue bugs.yml --- .github/issue bugs.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/issue bugs.yml b/.github/issue bugs.yml index 90ab8ae..db1c25f 100644 --- a/.github/issue bugs.yml +++ b/.github/issue bugs.yml @@ -4,6 +4,9 @@ on: issues: types: - opened + pull requests: + types: + - opened jobs: add-to-project: From 48ff8dd1ec3cff7ad897f31861f2ac008f006f40 Mon Sep 17 00:00:00 2001 From: Darcy Nelson <111451622+dnels14@users.noreply.github.com> Date: Fri, 23 Sep 2022 14:41:05 -0600 Subject: [PATCH 04/15] Create Add to GitHub Projects.yml --- .github/work/Add to GitHub Projects.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/work/Add to GitHub Projects.yml diff --git a/.github/work/Add to GitHub Projects.yml b/.github/work/Add to GitHub Projects.yml new file mode 100644 index 0000000..e04fde2 --- /dev/null +++ b/.github/work/Add to GitHub Projects.yml @@ -0,0 +1,11 @@ +name: Add To GitHub projects +uses: actions/add-to-project@v0.3.0 + with: + # URL of the project to add issues to + project-url: https://github.com/users/dnels14/projects/1/views/1 + # A GitHub personal access token with write access to the project + github-token: + # A comma-separated list of labels to use as a filter for issue to be added + labeled: # optional + # The behavior of the labels filter, AND to match all labels, OR to match any label, NOT to exclude any listed label (default is OR) + label-operator: # optional From 5ba1e26f30d1781fe16c515ef6642f2185665494 Mon Sep 17 00:00:00 2001 From: Darcy Nelson <111451622+dnels14@users.noreply.github.com> Date: Fri, 23 Sep 2022 16:03:13 -0600 Subject: [PATCH 05/15] Delete workflows --- .github/workflows | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 .github/workflows diff --git a/.github/workflows b/.github/workflows deleted file mode 100644 index 8951859..0000000 --- a/.github/workflows +++ /dev/null @@ -1,2 +0,0 @@ -- name: Add To GitHub projects - uses: actions/add-to-project@v0.3.0 From 3d8f4d331e3a44de50d5969417b0fa229549dc8f Mon Sep 17 00:00:00 2001 From: Darcy Nelson <111451622+dnels14@users.noreply.github.com> Date: Fri, 23 Sep 2022 16:03:35 -0600 Subject: [PATCH 06/15] Delete pr.yml --- .github/pr.yml | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 .github/pr.yml diff --git a/.github/pr.yml b/.github/pr.yml deleted file mode 100644 index 8951859..0000000 --- a/.github/pr.yml +++ /dev/null @@ -1,2 +0,0 @@ -- name: Add To GitHub projects - uses: actions/add-to-project@v0.3.0 From cb5367eb785960e5f5ac25c800b280b299dc43c4 Mon Sep 17 00:00:00 2001 From: Darcy Nelson <111451622+dnels14@users.noreply.github.com> Date: Fri, 23 Sep 2022 16:03:52 -0600 Subject: [PATCH 07/15] Delete issue bugs.yml --- .github/issue bugs.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .github/issue bugs.yml diff --git a/.github/issue bugs.yml b/.github/issue bugs.yml deleted file mode 100644 index db1c25f..0000000 --- a/.github/issue bugs.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Add bugs to project - -on: - issues: - types: - - opened - pull requests: - types: - - opened - -jobs: - add-to-project: - name: Add issue to project - runs-on: ubuntu-latest - steps: - - uses: actions/add-to-project@RELEASE_VERSION - with: - # You can target a repository in a different organization - # to the issue - project-url: https://github.com/users/dnels14/projects/1 - github-token: ${{ secrets.ADD_TO_PROJECT_PAT }} - labeled: bug, needs-triage - label-operator: OR From 453e22d78655fd926dc54cfe62091f6844d57296 Mon Sep 17 00:00:00 2001 From: Darcy Nelson <111451622+dnels14@users.noreply.github.com> Date: Fri, 23 Sep 2022 16:05:23 -0600 Subject: [PATCH 08/15] Update Add to GitHub Projects.yml --- .github/work/Add to GitHub Projects.yml | 39 ++++++++++++++++++------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/.github/work/Add to GitHub Projects.yml b/.github/work/Add to GitHub Projects.yml index e04fde2..4a39f95 100644 --- a/.github/work/Add to GitHub Projects.yml +++ b/.github/work/Add to GitHub Projects.yml @@ -1,11 +1,28 @@ -name: Add To GitHub projects -uses: actions/add-to-project@v0.3.0 - with: - # URL of the project to add issues to - project-url: https://github.com/users/dnels14/projects/1/views/1 - # A GitHub personal access token with write access to the project - github-token: - # A comma-separated list of labels to use as a filter for issue to be added - labeled: # optional - # The behavior of the labels filter, AND to match all labels, OR to match any label, NOT to exclude any listed label (default is OR) - label-operator: # optional +name: Add to Project + +on: + pull_request: + types: [opened] + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +jobs: + check_pr_labels: + permissions: + repository-projects: write + + runs-on: ubuntu-18.04 + steps: + + - name: Add To GitHub projects + uses: actions/add-to-project@v0.3.0 + with: + # URL of the project to add issues to + project-url: https://github.com/users/Myoldmopar/projects/1 + # A GitHub personal access token with write access to the project + github-token: ${{ secrets.GITHUB_TOKEN }} + # A comma-separated list of labels to use as a filter for issue to be added + # labeled: # optional + # The behavior of the labels filter, AND to match all labels, OR to match any label, NOT to exclude any listed label (default is OR) + # label-operator: # optional From 110ea6a8be9a2969f805a5c88ff52566c0407d83 Mon Sep 17 00:00:00 2001 From: Darcy Nelson <111451622+dnels14@users.noreply.github.com> Date: Fri, 23 Sep 2022 16:14:22 -0600 Subject: [PATCH 09/15] Update Add to GitHub Projects.yml --- .github/work/Add to GitHub Projects.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/work/Add to GitHub Projects.yml b/.github/work/Add to GitHub Projects.yml index 4a39f95..d321144 100644 --- a/.github/work/Add to GitHub Projects.yml +++ b/.github/work/Add to GitHub Projects.yml @@ -2,7 +2,8 @@ name: Add to Project on: pull_request: - types: [opened] + types: + - opened env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -19,7 +20,7 @@ jobs: uses: actions/add-to-project@v0.3.0 with: # URL of the project to add issues to - project-url: https://github.com/users/Myoldmopar/projects/1 + project-url: https://github.com/users/dnels14/projects/1/views/1 # A GitHub personal access token with write access to the project github-token: ${{ secrets.GITHUB_TOKEN }} # A comma-separated list of labels to use as a filter for issue to be added From 577114919a5232d6079ab539217bd19051dd9af9 Mon Sep 17 00:00:00 2001 From: Darcy Nelson <111451622+dnels14@users.noreply.github.com> Date: Fri, 23 Sep 2022 16:18:48 -0600 Subject: [PATCH 10/15] Create add to project.yml --- .github/workflows/add to project.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/add to project.yml diff --git a/.github/workflows/add to project.yml b/.github/workflows/add to project.yml new file mode 100644 index 0000000..d9f996b --- /dev/null +++ b/.github/workflows/add to project.yml @@ -0,0 +1,28 @@ +name: Verify Pull Request Labeling + +on: + pull_request: + types: [opened] + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +jobs: + check_pr_labels: + permissions: + repository-projects: write + + runs-on: ubuntu-18.04 + steps: + + - name: Add To GitHub projects + uses: actions/add-to-project@v0.3.0 + with: + # URL of the project to add issues to + project-url: https://github.com/users/dnels14/projects/1/views/1 + # A GitHub personal access token with write access to the project + github-token: ${{ secrets.GITHUB_TOKEN }} + # A comma-separated list of labels to use as a filter for issue to be added + # labeled: # optional + # The behavior of the labels filter, AND to match all labels, OR to match any label, NOT to exclude any listed label (default is OR) + # label-operator: # optional From 31c4879e99675d232efcb938562415407ec65096 Mon Sep 17 00:00:00 2001 From: Darcy Nelson <111451622+dnels14@users.noreply.github.com> Date: Fri, 23 Sep 2022 16:19:20 -0600 Subject: [PATCH 11/15] Delete Add to GitHub Projects.yml --- .github/work/Add to GitHub Projects.yml | 29 ------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .github/work/Add to GitHub Projects.yml diff --git a/.github/work/Add to GitHub Projects.yml b/.github/work/Add to GitHub Projects.yml deleted file mode 100644 index d321144..0000000 --- a/.github/work/Add to GitHub Projects.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Add to Project - -on: - pull_request: - types: - - opened - -env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - -jobs: - check_pr_labels: - permissions: - repository-projects: write - - runs-on: ubuntu-18.04 - steps: - - - name: Add To GitHub projects - uses: actions/add-to-project@v0.3.0 - with: - # URL of the project to add issues to - project-url: https://github.com/users/dnels14/projects/1/views/1 - # A GitHub personal access token with write access to the project - github-token: ${{ secrets.GITHUB_TOKEN }} - # A comma-separated list of labels to use as a filter for issue to be added - # labeled: # optional - # The behavior of the labels filter, AND to match all labels, OR to match any label, NOT to exclude any listed label (default is OR) - # label-operator: # optional From b5eb4233bafc7251038502a2271d6cf0ae4f2793 Mon Sep 17 00:00:00 2001 From: Darcy Nelson <111451622+dnels14@users.noreply.github.com> Date: Fri, 23 Sep 2022 16:24:54 -0600 Subject: [PATCH 12/15] Update add to project.yml --- .github/workflows/add to project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/add to project.yml b/.github/workflows/add to project.yml index d9f996b..817a892 100644 --- a/.github/workflows/add to project.yml +++ b/.github/workflows/add to project.yml @@ -1,4 +1,4 @@ -name: Verify Pull Request Labeling +name: Add new PR to Project on: pull_request: From ca1c8c1a5f2b9891ffe4600613c1cf58904002e6 Mon Sep 17 00:00:00 2001 From: Darcy Nelson <111451622+dnels14@users.noreply.github.com> Date: Fri, 23 Sep 2022 16:46:25 -0600 Subject: [PATCH 13/15] Update add to project.yml --- .github/workflows/add to project.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/add to project.yml b/.github/workflows/add to project.yml index 817a892..22cba33 100644 --- a/.github/workflows/add to project.yml +++ b/.github/workflows/add to project.yml @@ -8,11 +8,11 @@ env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} jobs: - check_pr_labels: + add-pr-to-project: permissions: repository-projects: write - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - name: Add To GitHub projects From ea0072fc4fb24fde649ecd051d4d050171ed9575 Mon Sep 17 00:00:00 2001 From: Darcy Nelson <111451622+dnels14@users.noreply.github.com> Date: Wed, 1 Feb 2023 15:58:05 -0700 Subject: [PATCH 14/15] Create Label_issues --- .github/workflows/Label_issues | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/Label_issues diff --git a/.github/workflows/Label_issues b/.github/workflows/Label_issues new file mode 100644 index 0000000..ed2e80c --- /dev/null +++ b/.github/workflows/Label_issues @@ -0,0 +1,21 @@ +name: Label issues +on: + issues: + types: + - reopened + - opened +jobs: + label_issues: + runs-on: ubuntu-latest + permissions: + issues: write + steps: + - uses: actions/github-script@v6 + with: + script: | + github.rest.issues.addLabels({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + labels: ["triage"] + }) From 07b49b506ba309e88c0e2e5b3ab1ff5324a93fc7 Mon Sep 17 00:00:00 2001 From: Darcy Nelson <111451622+dnels14@users.noreply.github.com> Date: Wed, 1 Feb 2023 16:02:20 -0700 Subject: [PATCH 15/15] Rename Label_issues to Label_issues.yml --- .github/workflows/{Label_issues => Label_issues.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{Label_issues => Label_issues.yml} (100%) diff --git a/.github/workflows/Label_issues b/.github/workflows/Label_issues.yml similarity index 100% rename from .github/workflows/Label_issues rename to .github/workflows/Label_issues.yml