From 08f8be3037db7784f885ce819e9521adfc9e2eaa Mon Sep 17 00:00:00 2001 From: Gordon Shotwell Date: Fri, 4 Aug 2023 11:02:17 -0300 Subject: [PATCH 1/2] Remove Jira action --- .github/workflows/create-issue.yaml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .github/workflows/create-issue.yaml diff --git a/.github/workflows/create-issue.yaml b/.github/workflows/create-issue.yaml deleted file mode 100644 index ba3c6f0e1..000000000 --- a/.github/workflows/create-issue.yaml +++ /dev/null @@ -1,29 +0,0 @@ -on: - issues: - types: [opened] - -name: Create Jira Story for new Github Issues - -jobs: - build: - runs-on: ubuntu-latest - name: Jira Example - Create - steps: - - name: Login - uses: atlassian/gajira-login@v3 - env: - JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} - JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} - JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} - - - name: Jira Create Ticket - uses: atlassian/gajira-create@v3 - with: - project: SFP - issuetype: Story - summary: ${{ github.event.issue.title }} - description: ${{ github.event.issue.body }} - # set external reference link - fields: '{"customfield_10104": "${{ github.event.issue.html_url }}"}' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 24bb297e6035204727f1b402104ee0dd62bdf762 Mon Sep 17 00:00:00 2001 From: Gordon Shotwell Date: Fri, 4 Aug 2023 11:02:50 -0300 Subject: [PATCH 2/2] Get correct issue number --- .github/workflows/triage-issues.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/triage-issues.yaml b/.github/workflows/triage-issues.yaml index c34998e60..42ca2e360 100644 --- a/.github/workflows/triage-issues.yaml +++ b/.github/workflows/triage-issues.yaml @@ -7,7 +7,7 @@ on: jobs: triage_or_add_to_project: runs-on: ubuntu-latest - + env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} @@ -21,4 +21,4 @@ jobs: - name: Apply "needs triage" label to issues created by non-maintainers if: steps.check_maintainer.outputs.is_maintainer == 'false' run: | - gh issue edit ${{ github.event.number }} --add-label "needs-triage" --repo ${{ github.repository }} + gh issue edit ${{ github.event.issue.number }} --add-label "needs-triage" --repo ${{ github.repository }}