From 9f3f74a9985875593e189106fac9c69fdf86b5a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Fri, 12 Jan 2024 11:23:40 +0100 Subject: [PATCH 1/4] docs: fix minor issues --- docs/configuration.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index 0f88d79e19..d1af01f52a 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -334,8 +334,8 @@ The following sections describe how to modify various aspects of the docker imag The custom image will be used the next time you run ``tutor local launch`` or ``tutor local start``. Do not attempt to run ``tutor local restart``! Restarting will not pick up the new image and will continue to use the old image. -openedx Docker Image build arguments -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +"openedx" Docker image build arguments +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ When building the "openedx" Docker image, it is possible to specify a few `arguments `__: @@ -354,9 +354,10 @@ See :ref:`the corresponding tutorial `. .. _custom_extra_xblocks: +Installing extra xblocks and requirements ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Would you like to include custom xblocks, or extra requirements to your Open edX platform? Additional requirements can be added to the ``OPENEDX_EXTRA_PIP_REQUIREMENTS`` parameter in the :ref:`config file `. For instance, to include the `polling xblock from Opencraft `_: +Would you like to include custom xblocks, or extra requirements to your Open edX platform? Additional requirements can be added to the ``OPENEDX_EXTRA_PIP_REQUIREMENTS`` parameter in the :ref:`config file `. For instance, to include the `polling xblock from Opencraft `_:: tutor config save --append OPENEDX_EXTRA_PIP_REQUIREMENTS=git+https://github.com/open-craft/xblock-poll.git From 4e3e3e14e54294672bb27ddbd3af96aed13da011 Mon Sep 17 00:00:00 2001 From: Syed Muhammad Dawoud Sheraz Ali <40599381+DawoudSheraz@users.noreply.github.com> Date: Fri, 12 Jan 2024 16:10:53 +0500 Subject: [PATCH 2/4] build: Github action to auto-add new issues and PRs to project --- .github/workflows/auto-add-to-project.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/auto-add-to-project.yml diff --git a/.github/workflows/auto-add-to-project.yml b/.github/workflows/auto-add-to-project.yml new file mode 100644 index 0000000000..a2fecf59f7 --- /dev/null +++ b/.github/workflows/auto-add-to-project.yml @@ -0,0 +1,20 @@ +name: Auto Add Issues and Pull Requests to Project + +on: + pull_request: + types: + - opened + issues: + types: + - opened + + +jobs: + add-to-project: + name: Add issue and bugs to project + runs-on: ubuntu-latest + steps: + - uses: actions/add-to-project@v0.5.0 + with: + project-url: https://github.com/orgs/overhangio/projects/4 + github-token: ${{ secrets.ADD_TO_PROJECT_SECRET_TOKEN }} From ab158fb939a08caafb90ca92b834a347a56b203d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Fri, 12 Jan 2024 12:13:29 +0100 Subject: [PATCH 3/4] ci: fix github token in auto-add to project --- .github/workflows/auto-add-to-project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-add-to-project.yml b/.github/workflows/auto-add-to-project.yml index a2fecf59f7..a55309218a 100644 --- a/.github/workflows/auto-add-to-project.yml +++ b/.github/workflows/auto-add-to-project.yml @@ -17,4 +17,4 @@ jobs: - uses: actions/add-to-project@v0.5.0 with: project-url: https://github.com/orgs/overhangio/projects/4 - github-token: ${{ secrets.ADD_TO_PROJECT_SECRET_TOKEN }} + github-token: ${{ github.token }} From 9d3d9e60f531ed7bc8cd735b4ddf760504509cb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Fri, 12 Jan 2024 12:28:45 +0100 Subject: [PATCH 4/4] ci: fix reference to personal access token Turns out, github.token is not a PAT https://github.com/actions/add-to-project/issues/462#issuecomment-1712561302 --- .github/workflows/auto-add-to-project.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-add-to-project.yml b/.github/workflows/auto-add-to-project.yml index a55309218a..d4ab7a4225 100644 --- a/.github/workflows/auto-add-to-project.yml +++ b/.github/workflows/auto-add-to-project.yml @@ -8,8 +8,8 @@ on: types: - opened - jobs: + # https://github.com/actions/add-to-project add-to-project: name: Add issue and bugs to project runs-on: ubuntu-latest @@ -17,4 +17,4 @@ jobs: - uses: actions/add-to-project@v0.5.0 with: project-url: https://github.com/orgs/overhangio/projects/4 - github-token: ${{ github.token }} + github-token: ${{ secrets.GH_PROJECT_PERSONAL_ACCESS_TOKEN }}