diff --git a/.github/workflows/create-jira-issue.yml b/.github/workflows/create-jira-issue.yml new file mode 100644 index 00000000..20eeb6ba --- /dev/null +++ b/.github/workflows/create-jira-issue.yml @@ -0,0 +1,34 @@ +name: Trigger Jira Issue Creation + +on: + pull_request: + types: + - closed + +jobs: + prepare: + runs-on: ubuntu-latest + environment: + name: ${{ github.event.pull_request.base.ref }} + outputs: + story_summary: ${{ vars.MIGRATION_BACKLOG_JIRA_STORY_SUMMARY }} + story_description: ${{ vars.MIGRATION_BACKLOG_JIRA_STORY_DESCRIPTION }} + steps: + - run: echo "Preparing input vars..." + create-jira-issue: + needs: prepare + if: github.event.pull_request.merged == true + uses: nelc/actions-hub/.github/workflows/create-jira-issue.yml@main + with: + story_summary: ${{ needs.prepare.outputs.story_summary }} + story_description: ${{ needs.prepare.outputs.story_description }} + subtask_summary: "${{ github.event.pull_request.title }}" + subtask_description: "${{ github.event.pull_request.body }} 🔗 PR: ${{ github.event.pull_request.html_url }}" + environment: ${{ github.event.pull_request.base.ref }} + secrets: + MIGRATION_BACKLOG_JIRA_EMAIL: ${{ secrets.MIGRATION_BACKLOG_JIRA_EMAIL }} + MIGRATION_BACKLOG_JIRA_TOKEN: ${{ secrets.MIGRATION_BACKLOG_JIRA_TOKEN }} + MIGRATION_BACKLOG_JIRA_URL: ${{ secrets.MIGRATION_BACKLOG_JIRA_URL }} + MIGRATION_BACKLOG_JIRA_PROJECT: ${{ secrets.MIGRATION_BACKLOG_JIRA_PROJECT }} + MIGRATION_BACKLOG_JIRA_EPIC_KEY: ${{ secrets.MIGRATION_BACKLOG_JIRA_EPIC_KEY }} + MIGRATION_BACKLOG_JIRA_EPIC_LINK_FIELD: ${{ secrets.MIGRATION_BACKLOG_JIRA_EPIC_LINK_FIELD }} diff --git a/edx_sga/static/js/src/edx_sga.js b/edx_sga/static/js/src/edx_sga.js index 3ac38cf9..87808a6b 100644 --- a/edx_sga/static/js/src/edx_sga.js +++ b/edx_sga/static/js/src/edx_sga.js @@ -409,7 +409,7 @@ function StaffGradedAssignmentXBlock(runtime, element) { function sendResizeMessage(height) { - // This blocks checks to see if the xBlock is part + // This blocks checks to see if the xBlock is part // of Learning MFE if (window.parent !== window) { window.parent.postMessage({ @@ -474,13 +474,29 @@ function StaffGradedAssignmentXBlock(runtime, element) { return deferred.promise(); } - function loadjs(url) { - $('