SNOW-802269 Add ordering and size function for scala and java modules #103
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Jira creation | |
on: | |
issues: | |
types: [opened, reopened] | |
issue_comment: | |
types: [created] | |
permissions: | |
issues: write | |
jobs: | |
create-issue: | |
runs-on: ubuntu-latest | |
if: (github.event_name == 'issues' && github.event.pull_request.user.login != 'whitesource-for-github-com[bot]') | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
repository: snowflakedb/gh-actions | |
ref: jira_v1 | |
token: ${{ secrets.SNOWFLAKE_GITHUB_TOKEN }} # stored in GitHub secrets | |
path: . | |
- name: Login | |
uses: atlassian/[email protected] | |
env: | |
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | |
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} | |
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | |
- name: Create JIRA Ticket | |
id: create | |
uses: atlassian/[email protected] | |
with: | |
project: SNOW | |
issuetype: Bug | |
summary: '${{ github.event.issue.title }} (snowflakedb/snowpark-java-scala)' | |
description: | | |
${{ github.event.issue.body }} \\ \\ _Created from GitHub Action_ for ${{ github.event.issue.html_url }} | |
fields: '{"customfield_11401":{"id":"14586"},"assignee":{"id":"6360642413f37118d727c8ce"},"components":[{"id":"16408"},{"id":"16407"}]}' | |
# 11401 = "Snowpark: Stored Procs & APIs" ; 6360642413f37118d727c8ce = "Jason Freeberg" ; 16408 = "Snowpark - Scala API" ; 16407 = "Snowpark - Java API" | |
- name: Update GitHub Issue | |
uses: ./jira/gajira-issue-update | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
issue_number: "{{ event.issue.id }}" | |
owner: "{{ event.repository.owner.login }}" | |
name: "{{ event.repository.name }}" | |
jira: "${{ steps.create.outputs.issue }}" |