diff --git a/.github/issue bugs.yml b/.github/issue bugs.yml deleted file mode 100644 index 90ab8ae..0000000 --- a/.github/issue bugs.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: Add bugs to project - -on: - issues: - 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 diff --git a/.github/workflows/Label_issues.yml b/.github/workflows/Label_issues.yml new file mode 100644 index 0000000..ed2e80c --- /dev/null +++ b/.github/workflows/Label_issues.yml @@ -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"] + }) diff --git a/.github/workflows/add to project.yml b/.github/workflows/add to project.yml new file mode 100644 index 0000000..22cba33 --- /dev/null +++ b/.github/workflows/add to project.yml @@ -0,0 +1,28 @@ +name: Add new PR to Project + +on: + pull_request: + types: [opened] + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +jobs: + add-pr-to-project: + permissions: + repository-projects: write + + runs-on: ubuntu-latest + 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