Skip to content

Commit

Permalink
Merge pull request #12 from GRIDAPPSD/develop
Browse files Browse the repository at this point in the history
Github Workflow Fixes
  • Loading branch information
poorva1209 authored Oct 24, 2024
2 parents 2d13311 + 6e46019 commit 9a64f06
Show file tree
Hide file tree
Showing 16 changed files with 6,060 additions and 44 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/add-to-project.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
name: Auto Assign to Project(s)
# name: Auto Assign to Project(s)

on:
issues:
types: [opened, labeled]
pull_request:
types: [opened, labeled]
issue_comment:
types: [created]
env:
MY_GITHUB_TOKEN: ${{ secrets.GRIDAPPSD_PAT }}
# on:
# issues:
# types: [opened, labeled]
# pull_request:
# types: [opened, labeled]
# issue_comment:
# types: [created]
# env:
# MY_GITHUB_TOKEN: ${{ secrets.GRIDAPPSD_PAT }}

jobs:
assign_one_project:
runs-on: ubuntu-latest
name: Assign to One Project
steps:
- name: Assign NEW issues and NEW pull requests to project 2
uses: srggrs/[email protected]
if: github.event.action == 'opened'
with:
project: 'https://github.com/orgs/GRIDAPPSD/projects/7'
# jobs:
# assign_one_project:
# runs-on: ubuntu-latest
# name: Assign to One Project
# steps:
# - name: Assign NEW issues and NEW pull requests to project 2
# uses: srggrs/[email protected]
# if: github.event.action == 'opened'
# with:
# project: 'https://github.com/orgs/GRIDAPPSD/projects/7'

- name: Assign issues and pull requests with `bug` label to project 3
uses: srggrs/[email protected]
if: |
contains(github.event.issue.labels.*.name, 'bug') ||
contains(github.event.pull_request.labels.*.name, 'bug')
with:
project: 'https://github.com/orgs/GRIDAPPSD/projects/7'
column_name: 'Labeled'
# - name: Assign issues and pull requests with `bug` label to project 3
# uses: srggrs/[email protected]
# if: |
# contains(github.event.issue.labels.*.name, 'bug') ||
# contains(github.event.pull_request.labels.*.name, 'bug')
# with:
# project: 'https://github.com/orgs/GRIDAPPSD/projects/7'
# column_name: 'Labeled'
22 changes: 22 additions & 0 deletions .github/workflows/auto-assign-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Add bugs to bugs project

on:
issues:
types:
- opened

jobs:
add-to-project:
name: Add issue to project
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
# You can target a repository in a different organization
# to the issue
project-url: https://github.com/orgs/GRIDAPPSD/projects/7
# project-url: https://github.com/orgs/<orgName>/projects/<projectNumber>
# github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
github-token: ${{ secrets.AUTO_ASSIGN_PAT }}
# labeled: bug, needs-triage
# label-operator: OR
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ wheels/
*.egg-info/
.installed.cfg
*.egg
*output/**
*data/**
*plots/**

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
Loading

0 comments on commit 9a64f06

Please sign in to comment.