From 41af4c008232fd297ef6307d701207b2132a1619 Mon Sep 17 00:00:00 2001 From: Jay <31521880+jricciardi@users.noreply.github.com> Date: Tue, 26 Jul 2022 10:36:33 -0700 Subject: [PATCH 01/10] Update README.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updated the `GitHub Community Discourse ➡️ Discussions Categories` link to the new org URL --- profile/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile/README.md b/profile/README.md index 7c54222..75996e0 100644 --- a/profile/README.md +++ b/profile/README.md @@ -8,7 +8,7 @@ GitHub Community is built to support all GitHub users on their educational journ * [Join Global Campus](https://education.github.com/benefits?type=student) * [GitHub Community Guidelines](https://docs.github.com/en/site-policy/github-terms/github-community-guidelines) * [Student Developer Pack Application & FAQs](https://github.com/orgs/community/discussions/17814) -* [GitHub Community Discourse ➡️ Discussions Categories](https://github.com/orgs/github-community/discussions/21279) +* [GitHub Community Discourse ➡️ Discussions Categories](https://github.com/orgs/community/discussions/21279) ### Documentation From c9ace0cec2d263d749d823eda6fc28146d29fc31 Mon Sep 17 00:00:00 2001 From: Thomas Date: Mon, 17 Oct 2022 11:01:22 +0000 Subject: [PATCH 02/10] Add auto-close-pr template --- .../auto-close-pr.properties.json | 4 ++ workflow-templates/auto-close-pr.yml | 55 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 workflow-templates/auto-close-pr.properties.json create mode 100644 workflow-templates/auto-close-pr.yml diff --git a/workflow-templates/auto-close-pr.properties.json b/workflow-templates/auto-close-pr.properties.json new file mode 100644 index 0000000..8b9e20d --- /dev/null +++ b/workflow-templates/auto-close-pr.properties.json @@ -0,0 +1,4 @@ +{ + "name": "Auto close PRs", + "description": "Automatically close pull requests from non-staff." +} \ No newline at end of file diff --git a/workflow-templates/auto-close-pr.yml b/workflow-templates/auto-close-pr.yml new file mode 100644 index 0000000..7533c57 --- /dev/null +++ b/workflow-templates/auto-close-pr.yml @@ -0,0 +1,55 @@ +name: Auto Close PRs + +on: + pull_request_target: + types: [opened, reopened] + +jobs: + check_pr: + name: Check PR + runs-on: ubuntu-latest + + steps: + - name: Check if employee + id: check_employee + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.READ_GITHUB_ORG_MEMBERS_TOKEN }} + result-encoding: string + script: | + try { + const response = await github.rest.orgs.checkMembershipForUser({ + org: `github`, + username: context.payload.pull_request.user.login + }); + + if (response.status === 204) { + return true; + } else { + return false; + } + } catch (error) { + console.log(error); + return 'false'; + } + + - name: Close PR + id: close_pr + if: ${{ steps.check_employee.outputs.result == 'false' }} + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const body = `This pull request is being automatically closed because we do not accept external contributions to this repository.`; + + await github.rest.issues.createComment({ + ...context.repo, + issue_number: context.issue.number, + body: body + }); + + await github.rest.pulls.update({ + ...context.repo, + pull_number: context.payload.pull_request.number, + state: 'closed' + }); \ No newline at end of file From 2beb1b8a12eb58cb9a63e322ef2733a3b103dd0e Mon Sep 17 00:00:00 2001 From: Thomas Baillie Date: Mon, 17 Oct 2022 18:30:01 +0200 Subject: [PATCH 03/10] Add auto-close-pr.yml --- .github/workflows/auto-close-pr.yml | 55 +++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/auto-close-pr.yml diff --git a/.github/workflows/auto-close-pr.yml b/.github/workflows/auto-close-pr.yml new file mode 100644 index 0000000..7533c57 --- /dev/null +++ b/.github/workflows/auto-close-pr.yml @@ -0,0 +1,55 @@ +name: Auto Close PRs + +on: + pull_request_target: + types: [opened, reopened] + +jobs: + check_pr: + name: Check PR + runs-on: ubuntu-latest + + steps: + - name: Check if employee + id: check_employee + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.READ_GITHUB_ORG_MEMBERS_TOKEN }} + result-encoding: string + script: | + try { + const response = await github.rest.orgs.checkMembershipForUser({ + org: `github`, + username: context.payload.pull_request.user.login + }); + + if (response.status === 204) { + return true; + } else { + return false; + } + } catch (error) { + console.log(error); + return 'false'; + } + + - name: Close PR + id: close_pr + if: ${{ steps.check_employee.outputs.result == 'false' }} + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + const body = `This pull request is being automatically closed because we do not accept external contributions to this repository.`; + + await github.rest.issues.createComment({ + ...context.repo, + issue_number: context.issue.number, + body: body + }); + + await github.rest.pulls.update({ + ...context.repo, + pull_number: context.payload.pull_request.number, + state: 'closed' + }); \ No newline at end of file From 6ad903f1ad092aa82d5f3e5907aad4b48e8841f6 Mon Sep 17 00:00:00 2001 From: Jay <31521880+jricciardi@users.noreply.github.com> Date: Wed, 4 Jan 2023 10:39:42 -0800 Subject: [PATCH 04/10] Update readme with 3rd party integration note we've turned off "Allow integration requests from outside collaborators" and are updating readme to reflect --- profile/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/profile/README.md b/profile/README.md index 75996e0..c547285 100644 --- a/profile/README.md +++ b/profile/README.md @@ -21,3 +21,6 @@ GitHub Community is built to support all GitHub users on their educational journ * [GitHub Events](https://github.com/events) * [GitHub Blog](https://github.blog/) * [GitHub YouTube Channel](https://www.youtube.com/github) + +#### Quick note on 3rd party integrations +> _Due to an overwhelming number of suspicious requests from community members for 3rd party apps and integrations to this org, we've turned off "Allow integration requests from outside collaborators"._ From 07ce488febaecb582028cf127080a4009769594c Mon Sep 17 00:00:00 2001 From: Amanda Boyle <75342807+ettaboyle@users.noreply.github.com> Date: Mon, 6 Feb 2023 10:41:51 -0800 Subject: [PATCH 05/10] Adding the ReadMe project Adding the ReadMe project to the "other ways to participate" section - per request from Melissa Biser --- profile/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/profile/README.md b/profile/README.md index c547285..20c6eed 100644 --- a/profile/README.md +++ b/profile/README.md @@ -20,6 +20,7 @@ GitHub Community is built to support all GitHub users on their educational journ * [GitHub Stars Program](https://stars.github.com/program/) * [GitHub Events](https://github.com/events) * [GitHub Blog](https://github.blog/) +* [The ReadME Project & Podcast](https://github.com/readme) * [GitHub YouTube Channel](https://www.youtube.com/github) #### Quick note on 3rd party integrations From ef09be8c8695d7ecb4854e35d3d81dd9f7f97641 Mon Sep 17 00:00:00 2001 From: Juan Pablo Flores Date: Sat, 11 Feb 2023 10:38:18 -0800 Subject: [PATCH 06/10] Update README.md Selfish plug to Campus Experts --- profile/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/profile/README.md b/profile/README.md index 20c6eed..4c35115 100644 --- a/profile/README.md +++ b/profile/README.md @@ -18,6 +18,7 @@ GitHub Community is built to support all GitHub users on their educational journ ### Other Ways to Participate * [GitHub Stars Program](https://stars.github.com/program/) +* [GitHub Campus Experts Program](https://education.github.com/experts) * [GitHub Events](https://github.com/events) * [GitHub Blog](https://github.blog/) * [The ReadME Project & Podcast](https://github.com/readme) From 751a1a5893d019a71c9373526b0c0713b3b65fc0 Mon Sep 17 00:00:00 2001 From: Jay <31521880+jricciardi@users.noreply.github.com> Date: Wed, 22 Feb 2023 16:21:57 -0800 Subject: [PATCH 07/10] update readme with notification about temp interaction limits --- profile/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/profile/README.md b/profile/README.md index 20c6eed..b8f5109 100644 --- a/profile/README.md +++ b/profile/README.md @@ -25,3 +25,6 @@ GitHub Community is built to support all GitHub users on their educational journ #### Quick note on 3rd party integrations > _Due to an overwhelming number of suspicious requests from community members for 3rd party apps and integrations to this org, we've turned off "Allow integration requests from outside collaborators"._ + +#### Quick note on temporary interaction limits +In an effort to reduce spammy behavior, we are instituting temporary interaction limits to bar accounts less than 24hrs-old from participating in the `github.com/community` Discussions space. This experiment is running from Feb 22, 2023 to March 22, 2023. From ec2351f7d41b041188294c4b708d0c7ebbb0ee7b Mon Sep 17 00:00:00 2001 From: tuves <49915749+tuves@users.noreply.github.com> Date: Thu, 6 Apr 2023 17:00:26 +0100 Subject: [PATCH 08/10] Update README.md remove dead link; this old link was one that showed old Discourse categories and what the respective Discussions categories were --- profile/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/profile/README.md b/profile/README.md index b8f5109..44b983e 100644 --- a/profile/README.md +++ b/profile/README.md @@ -8,7 +8,6 @@ GitHub Community is built to support all GitHub users on their educational journ * [Join Global Campus](https://education.github.com/benefits?type=student) * [GitHub Community Guidelines](https://docs.github.com/en/site-policy/github-terms/github-community-guidelines) * [Student Developer Pack Application & FAQs](https://github.com/orgs/community/discussions/17814) -* [GitHub Community Discourse ➡️ Discussions Categories](https://github.com/orgs/community/discussions/21279) ### Documentation From 9c739847129052f31ece164090fff84d34973ff3 Mon Sep 17 00:00:00 2001 From: Lili <92824518+queenofcorgis@users.noreply.github.com> Date: Thu, 8 Jun 2023 09:29:44 -0400 Subject: [PATCH 09/10] Update README.md Updating temporary interaction limits language as it still said it was in trial mode --- profile/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/profile/README.md b/profile/README.md index 44b983e..56094c2 100644 --- a/profile/README.md +++ b/profile/README.md @@ -26,4 +26,10 @@ GitHub Community is built to support all GitHub users on their educational journ > _Due to an overwhelming number of suspicious requests from community members for 3rd party apps and integrations to this org, we've turned off "Allow integration requests from outside collaborators"._ #### Quick note on temporary interaction limits -In an effort to reduce spammy behavior, we are instituting temporary interaction limits to bar accounts less than 24hrs-old from participating in the `github.com/community` Discussions space. This experiment is running from Feb 22, 2023 to March 22, 2023. +In an effort to reduce spammy behavior, we are instituting temporary interaction limits to bar accounts less than 24hrs-old from participating in the `github.com/community` Discussions space. +Accounts that are at least 24hrs old will be able to post and interact as normal. + +If your account is less than 24hrs old and you have a question, please try using the Discussions search bar above to see if your question has already been asked or simply wait a day. We apologize if this causes any inconvenience. + +If you'd like to learn more about implementing temporary interaction limits in your own orgs and repos, please read up on the official documentation [here](https://docs.github.com/en/communities/moderating-comments-and-conversations/limiting-interactions-in-your-organization). + From 2952014bdc59ae196361bbb8124d8827ec1b39f2 Mon Sep 17 00:00:00 2001 From: Andrea Liliana Griffiths Date: Fri, 19 Jan 2024 17:55:04 -0500 Subject: [PATCH 10/10] Update README.md --- profile/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile/README.md b/profile/README.md index 3aa381f..5397970 100644 --- a/profile/README.md +++ b/profile/README.md @@ -18,7 +18,7 @@ GitHub Community is built to support all GitHub users on their educational journ * [GitHub Stars Program](https://stars.github.com/program/) * [GitHub Campus Experts Program](https://education.github.com/experts) -* [GitHub Events](https://github.com/events) +* [GitHub Events](https://www.meetup.com/pro/github-virtual-meetup/) * [GitHub Blog](https://github.blog/) * [The ReadME Project & Podcast](https://github.com/readme) * [GitHub YouTube Channel](https://www.youtube.com/github)