Skip to content

Commit

Permalink
Community PR Ticketing for Jira (#643)
Browse files Browse the repository at this point in the history
* Add files via upload

* Corrected PR-Jira-Transfer

* Update .github/workflows/pr-jira-issue-transfer.yml

Co-authored-by: Reuben Lifshay <[email protected]>

---------

Co-authored-by: Reuben Lifshay <[email protected]>
  • Loading branch information
slokie-so and computator committed Jun 18, 2024
1 parent b082060 commit b18e002
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/pr-jira-issue-transfer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Copyright 2024 Specter Ops, Inc.
#
# Licensed under the Apache License, Version 2.0
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: External Authorship Check

on:
pull_request:
types: [opened, synchronize, reopened]

jobs:
check-author:
runs-on: self-hosted
steps:
- name: checkUserMember
uses: marcocarvalho/team-membership@v3
with:
username: ${{ github.actor }}
team: 'bloodhound-enterprise'

- name: Login
uses: atlassian/gajira-login@v3
- name: Jira Create
if: steps.checkUserMember.outputs.isTeamMember == false
uses: atlassian/gajira-create@v3
with:
project: BP
issuetype: 'Product Feature'
summary: ${{ github.event.pulls.title }}
description: "Github Pull Request Link: ${{ github.event.pulls.html_url}} \r\n ${{ github.event.pulls.body }}"
fields: '{"labels":["GitHubReport"]}'

0 comments on commit b18e002

Please sign in to comment.