mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-15 12:27:59 +00:00
47e5533f0f
Bumps [actions/add-to-project](https://github.com/actions/add-to-project) from 0.6.0 to 0.6.1. - [Release notes](https://github.com/actions/add-to-project/releases) - [Commits](https://github.com/actions/add-to-project/compare/v0.6.0...v0.6.1) --- updated-dependencies: - dependency-name: actions/add-to-project dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Livio Spring <livio.a@gmail.com>
44 lines
1.6 KiB
YAML
44 lines
1.6 KiB
YAML
name: Add new issues to product management project
|
|
|
|
on:
|
|
issues:
|
|
types:
|
|
- opened
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
|
|
jobs:
|
|
add-to-project:
|
|
name: Add issue and community pr to project
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: add issue
|
|
uses: actions/add-to-project@v0.6.1
|
|
if: ${{ github.event_name == 'issues' }}
|
|
with:
|
|
# You can target a repository in a different organization
|
|
# to the issue
|
|
project-url: https://github.com/orgs/zitadel/projects/2
|
|
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
|
- uses: tspascoal/get-user-teams-membership@v3
|
|
id: checkUserMember
|
|
if: github.actor != 'dependabot[bot]'
|
|
with:
|
|
username: ${{ github.actor }}
|
|
GITHUB_TOKEN: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
|
- name: add pr
|
|
uses: actions/add-to-project@v0.6.1
|
|
if: ${{ github.event_name == 'pull_request_target' && github.actor != 'dependabot[bot]' && !contains(steps.checkUserMember.outputs.teams, 'engineers')}}
|
|
with:
|
|
# You can target a repository in a different organization
|
|
# to the issue
|
|
project-url: https://github.com/orgs/zitadel/projects/2
|
|
github-token: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
|
- uses: actions-ecosystem/action-add-labels@v1.1.3
|
|
if: ${{ github.event_name == 'pull_request_target' && github.actor != 'dependabot[bot]' && !contains(steps.checkUserMember.outputs.teams, 'staff')}}
|
|
with:
|
|
github_token: ${{ secrets.ADD_TO_PROJECT_PAT }}
|
|
labels: |
|
|
os-contribution
|