From 1b14ade258d30d2f70420dcf001765b7c22c8046 Mon Sep 17 00:00:00 2001 From: LG <76845820+coder-lg@users.noreply.github.com> Date: Mon, 26 Jul 2021 13:33:54 +0530 Subject: [PATCH 1/5] Update index.md --- src/markdown/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/markdown/index.md b/src/markdown/index.md index fbccee4..e134d24 100644 --- a/src/markdown/index.md +++ b/src/markdown/index.md @@ -4,6 +4,8 @@ # Latest Posts +> :ArticleCard src=/2021-07-26-blog-1 + See the [archive](/archive) for older posts. -> :ToCPrevNext \ No newline at end of file +> :ToCPrevNext From e45e3d03bcf5b320158b83d53c4cd623e62b4ac7 Mon Sep 17 00:00:00 2001 From: LG <76845820+coder-lg@users.noreply.github.com> Date: Mon, 26 Jul 2021 13:35:30 +0530 Subject: [PATCH 2/5] Update archive.md --- src/markdown/archive.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/markdown/archive.md b/src/markdown/archive.md index 67e8cf9..021e1ab 100644 --- a/src/markdown/archive.md +++ b/src/markdown/archive.md @@ -4,6 +4,9 @@ > :Collapse label=2021, default=open > +> > :Collapse label=July, default=open +> > - July 26 of 2021 » [Blog 1](/2021-07-26-blog-1) + > > :Collapse label=June, default=open > @@ -36,4 +39,4 @@ - \ No newline at end of file + From f6a813d25f501b1b416be32d6c803675d548fcbf Mon Sep 17 00:00:00 2001 From: LG <76845820+coder-lg@users.noreply.github.com> Date: Mon, 26 Jul 2021 13:37:53 +0530 Subject: [PATCH 3/5] Create 2021-07-26-blog-1.md --- src/markdown/2021-07-26-blog-1.md | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 src/markdown/2021-07-26-blog-1.md diff --git a/src/markdown/2021-07-26-blog-1.md b/src/markdown/2021-07-26-blog-1.md new file mode 100644 index 0000000..26e2aac --- /dev/null +++ b/src/markdown/2021-07-26-blog-1.md @@ -0,0 +1,42 @@ +> :Title +> +> Blog 1(from my jekyll site) + +> :Author name=LG, +> date=2021-07-26, +> avatar=src/assets/images/me.png + +Good upgrade, bad mistake + +Good news + bad news + +Bad news: my official github blog, the one I had with 200 commits and more, is gone :sad: angry + +I wish, if GitHub reads this, they will send me an email that my official blog can be reclaimed. I would be happy to get that. + +Good news? + +I started a tech blog. + +Not so bad. Because, tech is one big part of our life. + +So, if you wanna read the first post, click the button here and head over to the first post and if and only IF you want, sub the RSS. See ya! + +> :SeeTypo$ + +# Tags + +The [tags feature of Coding Blog Plugin](https://connect-platform.github.io/coding-blog-plugin/tags) is still being developed. Eventually the tags will link somewhere. + +[express-anger-sometimes](:Tag) + +# Comments + +> :DarkLight +> > :InLight +> > +> > > :Utterances theme=github-light +> +> > :InDark +> > +> > > :Utterances theme=github-dark-orange From 69617f9c3aae668d9d6267b769badc281a51a8f0 Mon Sep 17 00:00:00 2001 From: coder-lg <76845820+coder-lg@users.noreply.github.com> Date: Mon, 26 Jul 2021 13:48:47 +0530 Subject: [PATCH 4/5] everything else woohoo --- .github/FUNDING.yml | 1 - .github/ISSUE_RESPONSES/comment.md | 5 +++ .github/ISSUE_TEMPLATE/bug_report.md | 27 ++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 20 ++++++++++++ .github/ISSUE_TEMPLATE/tasks.md | 15 +++++++++ .github/PULL_REQUEST_TEMPLATE.md | 28 +++++++++++++++++ .github/config.yml | 27 ++++++++++++++++ .github/hooks/README.md | 11 +++++++ .github/hooks/pre-commit | 28 +++++++++++++++++ .github/labeler.yml | 8 +++++ .github/release-drafter.yml | 20 ++++++++++++ .github/stale.yml | 22 +++++++++++++ .github/workflows/approval-workflow.yml | 14 +++++++++ .github/workflows/issue-and-project.yml | 38 +++++++++++++++++++++++ .github/workflows/jekyll.yml | 20 ++++++++++++ .github/workflows/labeler.yml | 15 +++++++++ 16 files changed, 298 insertions(+), 1 deletion(-) delete mode 100644 .github/FUNDING.yml create mode 100644 .github/ISSUE_RESPONSES/comment.md create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/tasks.md create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/config.yml create mode 100644 .github/hooks/README.md create mode 100644 .github/hooks/pre-commit create mode 100644 .github/labeler.yml create mode 100644 .github/release-drafter.yml create mode 100644 .github/stale.yml create mode 100644 .github/workflows/approval-workflow.yml create mode 100644 .github/workflows/issue-and-project.yml create mode 100644 .github/workflows/jekyll.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index e4c5d1a..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: [TysonMN] \ No newline at end of file diff --git a/.github/ISSUE_RESPONSES/comment.md b/.github/ISSUE_RESPONSES/comment.md new file mode 100644 index 0000000..c417f66 --- /dev/null +++ b/.github/ISSUE_RESPONSES/comment.md @@ -0,0 +1,5 @@ +## Thank you! + +We appreciate your contribution to this project! Please be sure to read the [_**contributing guide**_](https://github.com/coder-lg/Type-on-Strap/blob/master/CONTRIBUTING-GUIDE.md) to learn how you can help make this project better! + +If you've created this issue with the 'bug' label, rest assured that we've added it to backlog for triage. diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..a2b389d --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,27 @@ +--- +name: Bug report +about: Create a report to help us improve +title: '' +labels: bug +assignees: 'coder-lg' + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +1. Go to '...' +2. Click on '....' +3. Scroll down to '....' +4. See error + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..b31d077 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,20 @@ +--- +name: Feature request +about: Suggest an idea for this project +title: '' +labels: enhancement +assignees: 'coder-lg' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/tasks.md b/.github/ISSUE_TEMPLATE/tasks.md new file mode 100644 index 0000000..736bc12 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/tasks.md @@ -0,0 +1,15 @@ +--- +name: Tasks +about: Describe this issue template's purpose here. +title: 'Tasks:' +labels: tasks +assignees: 'coder-lg' + +--- + +- [ ] +- [ ] +- [ ] +- [ ] +- [ ] +- [ ] diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..55f12df --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,28 @@ +# Pull Request for LG's blog +Thanks for opening a PR here. Be sure to read the contributing guidelines to see how to contribute here! +## Description + +Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. + +Fixes # (issue) + +## Type of change + +Please delete options that are not relevant. + +- [ ] Bug fix (non-breaking change which fixes an issue) +- [ ] New feature (non-breaking change which adds functionality) +- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) +- [ ] This change requires a documentation update + +## Checklist: + +- [ ] My code follows the style guidelines of this project +- [ ] I have performed a self-review of my own code +- [ ] I have commented my code, particularly in hard-to-understand areas +- [ ] I have made corresponding changes to the documentation +- [ ] My changes generate no new warnings +- [ ] I have added tests that prove my fix is effective or that my feature works +- [ ] New and existing unit tests pass locally with my changes +- [ ] Any dependent changes have been merged and published in downstream modules +- [ ] I have checked my code and corrected any misspellings \ No newline at end of file diff --git a/.github/config.yml b/.github/config.yml new file mode 100644 index 0000000..4d36168 --- /dev/null +++ b/.github/config.yml @@ -0,0 +1,27 @@ +# Configuration for request-info +# https://github.com/behaviorbot/request-info + +# *OPTIONAL* Comment to reply with +requestInfoReplyComment: > + We would appreciate it if you could provide us with more info about this issue/pr! + +# *OPTIONAL* default titles to check against for lack of descriptiveness (MUST BE ALL LOWERCASE) +requestInfoDefaultTitles: + - update readme.md + - updates + +# *OPTIONAL* Label to be added to Issues and Pull Requests with insufficient information given +requestInfoLabelToAdd: need-more-info + +# *OPTIONAL* Require Pull Requests to contain more information than what is provided in the PR template (Will fail if the pull request's body is equal to the provided template) +checkPullRequestTemplate: true + +# *OPTIONAL* Only warn about insufficient information on these events type (Keys must be lowercase. Valid values are 'issue' and 'pullRequest') +requestInfoOn: + pullRequest: true + issue: true + +# *OPTIONAL* Add a list of people whose Issues/PRs will not be commented on (keys must be GitHub usernames) +requestInfoUserstoExclude: + - coder-lg + - # the other users you wanna add here diff --git a/.github/hooks/README.md b/.github/hooks/README.md new file mode 100644 index 0000000..9a86903 --- /dev/null +++ b/.github/hooks/README.md @@ -0,0 +1,11 @@ +# Git hooks + +Git hooks are provided in `hooks/`. The pre-commit hook, when enabled, will check for non-staged assets before commit and abort if found any. + +## Setup + +`ln lib/hooks/pre-commit .git/hooks/pre-commit` + +## Bypass + +`git commit -n` diff --git a/.github/hooks/pre-commit b/.github/hooks/pre-commit new file mode 100644 index 0000000..270e9c9 --- /dev/null +++ b/.github/hooks/pre-commit @@ -0,0 +1,28 @@ +#!/bin/sh +# +# Called by "git commit" with no arguments. +# The hook should run gulp to optimize assets. +# Will exit with non-zero status if it wants to stop the commit. + +: << 'END' # Ancillary code to ensure environment before running gulp +# If it's on the right directory, proceed. Else, try to fix it. If fail, abort commit. +if [ ${PWD##*/} != "lib" ] ; then + cd lib || exit 1 +fi + +# If gulp is intalled and gulpfile.js is present, then proceed. Else, abort commit. +if ! [ -f "gulpfile.js" ] || ! command -v gulp; then + printf "gulpfile.js not found or gulp-cli not installed!\n" + exit 1 +fi +END + +# If there are non-staged assets, abort commit. +if git status --porcelain | grep -E '^(\?\?|AM|\nM).*assets/.*$' >/dev/null; then + printf "There are non-staged assets, be sure to run gulp before commiting changes!\n" + exit 1 +fi + +# Proceed with the commit. +exit 0 + diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..dfc9b01 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,8 @@ +critical: + - '(critical|urgent)' + +bug: + - '(bug|issue|problem)' + +triage: + - '(bug|issue|problem)' diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..20d8a1c --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,20 @@ +name-template: 'v$NEXT_PATCH_VERSION' +tag-template: 'v$NEXT_PATCH_VERSION' +categories: + - title: '🚀 Features' + labels: + - 'feature' + - 'custom' + - 'enhancement' + - title: '🐛 Bug Fixes' + labels: + - 'fix' + - 'bug' + - title: '🧰 Maintenance' + labels: + - 'devops' + - 'custom' +template: | + ## What’s new: + + $CHANGES diff --git a/.github/stale.yml b/.github/stale.yml new file mode 100644 index 0000000..a4183fe --- /dev/null +++ b/.github/stale.yml @@ -0,0 +1,22 @@ +# Number of days of inactivity before an issue becomes stale +daysUntilStale: 15 + +# Number of days of inactivity before a stale issue is closed +daysUntilClose: 7 + +# Issues with these labels will never be considered stale +exemptLabels: + - pinned + - security + +# Label to use when marking an issue as stale +staleLabel: wontfix + +# Comment to post when marking an issue as stale. Set to `false` to disable +markComment: > + This issue has been automatically marked as stale because it has not had + recent activity. It will be closed if no further activity occurs. Thank you + for your contributions. + +# Comment to post when closing a stale issue. Set to `false` to disable +closeComment: false diff --git a/.github/workflows/approval-workflow.yml b/.github/workflows/approval-workflow.yml new file mode 100644 index 0000000..8676694 --- /dev/null +++ b/.github/workflows/approval-workflow.yml @@ -0,0 +1,14 @@ +on: pull_request_review +name: Label approved pull requests +jobs: + labelWhenApproved: + name: Label when approved + runs-on: ubuntu-latest + steps: + - name: Label when approved + uses: pullreminders/label-when-approved-action@master + env: + APPROVALS: "2" + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + ADD_LABEL: "approved" + REMOVE_LABEL: "awaiting%20review" diff --git a/.github/workflows/issue-and-project.yml b/.github/workflows/issue-and-project.yml new file mode 100644 index 0000000..fa27175 --- /dev/null +++ b/.github/workflows/issue-and-project.yml @@ -0,0 +1,38 @@ +name: Issue comments and project triage adding + +on: + issues: + types: [opened] + +jobs: + comment-and-project-adding: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Comment on new issue + uses: actions/github-script@0.8.0 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + const fs = require('fs') + const issueBody = fs.readFileSync(".github/ISSUE_RESPONSES/comment.md", "utf8") + github.issues.createComment({ + issue_number: context.issue.number, + owner: context.repo.owner, + repo: context.repo.repo, + body: issueBody + }) + + - name: Add issue to project board + if: contains(github.event.issue.labels.*.name, 'bug', 'triage') + uses: actions/github-script@0.8.0 + with: + github-token: ${{secrets.GITHUB_TOKEN}} + script: | + github.projects.createCard({ + column_id: 15073451, # make the project so that i add the column id here. + content_id: context.payload.issue.id, + content_type: "Issue" + }); diff --git a/.github/workflows/jekyll.yml b/.github/workflows/jekyll.yml new file mode 100644 index 0000000..fce0548 --- /dev/null +++ b/.github/workflows/jekyll.yml @@ -0,0 +1,20 @@ +name: Jekyll site CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Build the site in the jekyll/builder container + run: | + docker run \ + -v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \ + jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..fbee88a --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,15 @@ +name: "Issue Labeler" +on: + issues: + types: [opened, edited] + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: github/issue-labeler@v2.0 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: .github/labeler.yml + not-before: 2020-01-15T02:54:32Z + enable-versioned-regex: 0 From b966f8915bc42c9f6d672642e8648361e6677d50 Mon Sep 17 00:00:00 2001 From: coder-lg <76845820+coder-lg@users.noreply.github.com> Date: Mon, 26 Jul 2021 13:50:43 +0530 Subject: [PATCH 5/5] changed --- .github/workflows/issue-and-project.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/issue-and-project.yml b/.github/workflows/issue-and-project.yml index fa27175..f136a70 100644 --- a/.github/workflows/issue-and-project.yml +++ b/.github/workflows/issue-and-project.yml @@ -32,7 +32,7 @@ jobs: github-token: ${{secrets.GITHUB_TOKEN}} script: | github.projects.createCard({ - column_id: 15073451, # make the project so that i add the column id here. + column_id: 15285613, # make the project so that i add the column id here. content_id: context.payload.issue.id, content_type: "Issue" });