Skip to content

Commit

Permalink
patchwork dashboard staging setup
Browse files Browse the repository at this point in the history
  • Loading branch information
aunghtetnay committed Apr 26, 2024
1 parent 8b60929 commit cfc2554
Show file tree
Hide file tree
Showing 33 changed files with 1,934 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/ISSUE_TEMPLATE/1.web_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# name: Bug Report (Web Interface)
# description: If you are using Mastodon's web interface and something is not working as expected
# labels: [bug, 'status/to triage', 'area/web interface']
# body:
# - type: markdown
# attributes:
# value: |
# Make sure that you are submitting a new bug that was not previously reported or already fixed.

# Please use a concise and distinct title for the issue.
# - type: textarea
# attributes:
# label: Steps to reproduce the problem
# description: What were you trying to do?
# value: |
# 1.
# 2.
# 3.
# ...
# validations:
# required: true
# - type: input
# attributes:
# label: Expected behaviour
# description: What should have happened?
# validations:
# required: true
# - type: input
# attributes:
# label: Actual behaviour
# description: What happened?
# validations:
# required: true
# - type: textarea
# attributes:
# label: Detailed description
# validations:
# required: false
# - type: input
# attributes:
# label: Mastodon instance
# description: The address of the Mastodon instance where you experienced the issue
# placeholder: mastodon.social
# validations:
# required: true
# - type: input
# attributes:
# label: Mastodon version
# description: |
# This is displayed at the bottom of the About page, eg. `v4.1.2+nightly-20230627`
# placeholder: v4.1.2
# validations:
# required: true
# - type: input
# attributes:
# label: Browser name and version
# description: |
# What browser are you using when getting this bug? Please specify the version as well.
# placeholder: Firefox 105.0.3
# validations:
# required: true
# - type: input
# attributes:
# label: Operating system
# description: |
# What OS are you running? Please specify the version as well.
# placeholder: macOS 13.4.1
# validations:
# required: true
# - type: textarea
# attributes:
# label: Technical details
# description: |
# Any additional technical details you may have. This can include the full error log, inspector's output…
# validations:
# required: false
65 changes: 65 additions & 0 deletions .github/ISSUE_TEMPLATE/2.server_bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# name: Bug Report (server / API)
# description: |
# If something is not working as expected, but is not from using the web interface.
# labels: [bug, 'status/to triage']
# body:
# - type: markdown
# attributes:
# value: |
# Make sure that you are submitting a new bug that was not previously reported or already fixed.

# Please use a concise and distinct title for the issue.
# - type: textarea
# attributes:
# label: Steps to reproduce the problem
# description: What were you trying to do?
# value: |
# 1.
# 2.
# 3.
# ...
# validations:
# required: true
# - type: input
# attributes:
# label: Expected behaviour
# description: What should have happened?
# validations:
# required: true
# - type: input
# attributes:
# label: Actual behaviour
# description: What happened?
# validations:
# required: true
# - type: textarea
# attributes:
# label: Detailed description
# validations:
# required: false
# - type: input
# attributes:
# label: Mastodon instance
# description: The address of the Mastodon instance where you experienced the issue
# placeholder: mastodon.social
# validations:
# required: false
# - type: input
# attributes:
# label: Mastodon version
# description: |
# This is displayed at the bottom of the About page, eg. `v4.1.2+nightly-20230627`
# placeholder: v4.1.2
# validations:
# required: false
# - type: textarea
# attributes:
# label: Technical details
# description: |
# Any additional technical details you may have, like logs or error traces
# value: |
# If this is happening on your own Mastodon server, please fill out those:
# - Ruby version: (from `ruby --version`, eg. v3.1.2)
# - Node.js version: (from `node --version`, eg. v18.16.0)
# validations:
# required: false
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/3.feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# name: Feature Request
# description: I have a suggestion
# labels: [suggestion]
# body:
# - type: markdown
# attributes:
# value: |
# Please use a concise and distinct title for the issue.

# Consider: Could it be implemented as a 3rd party app using the REST API instead?
# - type: textarea
# attributes:
# label: Pitch
# description: Describe your idea for a feature. Make sure it has not already been suggested/implemented/turned down before.
# validations:
# required: true
# - type: textarea
# attributes:
# label: Motivation
# description: Why do you think this feature is needed? Who would benefit from it?
# validations:
# required: true
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# blank_issues_enabled: false
# contact_links:
# - name: GitHub Discussions
# url: https://github.com/mastodon/mastodon/discussions
# about: Please ask and answer questions here.
42 changes: 42 additions & 0 deletions .github/actions/setup-javascript/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# name: 'Setup Javascript'
# description: 'Setup a Javascript environment ready to run the Mastodon code'
# inputs:
# onlyProduction:
# description: Only install production dependencies
# default: 'false'

# runs:
# using: 'composite'
# steps:
# - name: Set up Node.js
# uses: actions/setup-node@v4
# with:
# node-version-file: '.nvmrc'

# # The following is needed because we can not use `cache: true` for `setup-node`, as it does not support Corepack yet and mess up with the cache location if ran after Node is installed
# - name: Enable corepack
# shell: bash
# run: corepack enable

# - name: Get yarn cache directory path
# id: yarn-cache-dir-path
# shell: bash
# run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

# - uses: actions/cache@v4
# id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
# with:
# path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-

# - name: Install all yarn packages
# shell: bash
# run: yarn install --immutable
# if: inputs.onlyProduction == 'false'

# - name: Install all production yarn packages
# shell: bash
# run: yarn workspaces focus --production
# if: inputs.onlyProduction != 'false'
23 changes: 23 additions & 0 deletions .github/actions/setup-ruby/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# name: 'Setup RUby'
# description: 'Setup a Ruby environment ready to run the Mastodon code'
# inputs:
# ruby-version:
# description: The Ruby version to install
# default: '.ruby-version'
# additional-system-dependencies:
# description: 'Additional packages to install'

# runs:
# using: 'composite'
# steps:
# - name: Install system dependencies
# shell: bash
# run: |
# sudo apt-get update
# sudo apt-get install -y libicu-dev libidn11-dev ${{ inputs.additional-system-dependencies }}

# - name: Set up Ruby
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: ${{ inputs.ruby-version }}
# bundler-cache: true
11 changes: 11 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# comment: false # Do not leave PR comments
# coverage:
# status:
# project:
# default:
# # Github status check is not blocking
# informational: true
# patch:
# default:
# # Github status check is not blocking
# informational: true
Loading

0 comments on commit cfc2554

Please sign in to comment.