| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a91777d commit b636204
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -157,16 +157,16 @@ | |||
| 157 | 157 | description: "Work on Documentation" | |
| 158 | 158 | color: "ffffff" | |
| 159 | 159 | ||
| 160 | - # This label can be added to accept PRs as part of Hacktoberfest | ||
| 161 | - - name: "hacktoberfest-accepted" | ||
| 162 | - description: "Make this PR count for hacktoberfest" | ||
| 163 | - color: "ff7518" | ||
| 164 | - | ||
| 165 | 160 | # This Exercism-wide label is added to all automatically created pull requests that help migrate/prepare a track for Exercism v3 | |
| 166 | 161 | - name: "v3-migration 🤖" | |
| 167 | 162 | description: "Preparing for Exercism v3" | |
| 168 | 163 | color: "e99695" | |
| 169 | 164 | ||
| 165 | + # This Exercism-wide label can be used to bulk-close issues in preparation for pausing community contributions | ||
| 166 | + - name: "paused" | ||
| 167 | + description: "Work paused until further notice" | ||
| 168 | + color: "e4e669" | ||
| 169 | + | ||
| 170 | 170 | # ----------------------------------------------------------------------------------------- # | |
| 171 | 171 | # These are the repository-specific labels that augment the Exercise-wide labels defined in # | |
| 172 | 172 | # https://github.com/exercism/org-wide-files/blob/main/global-files/.github/labels.yml. # | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,17 +2,23 @@ | |||
| 2 | 2 | ||
| 3 | 3 | ## Introduction | |
| 4 | 4 | ||
| 5 | - Exercism is a platform centered around empathetic conversation. We have a low tolerance for communication that makes anyone feel unwelcome, unsupported, insulted or discriminated against. | ||
| 5 | + Exercism is a platform centered around empathetic conversation. | ||
| 6 | + We have a low tolerance for communication that makes anyone feel unwelcome, unsupported, insulted or discriminated against. | ||
| 6 | 7 | ||
| 7 | 8 | ## Seen or experienced something uncomfortable? | |
| 8 | 9 | ||
| 9 | - If you see or experience abuse, harassment, discrimination, or feel unsafe or upset, please email [abuse@exercism.org](mailto:abuse@exercism.org?subject=%5BCoC%5D) and include \[CoC\] in the subject line. We will follow up with you as a priority. | ||
| 10 | + If you see or experience abuse, harassment, discrimination, or feel unsafe or upset, please email [abuse@exercism.org](mailto:abuse@exercism.org?subject=%5BCoC%5D) and include \[CoC\] in the subject line. | ||
| 11 | + We will follow up with you as a priority. | ||
| 10 | 12 | ||
| 11 | 13 | ## Enforcement | |
| 12 | 14 | ||
| 13 | - We actively monitor for Code of Conduct (CoC) violations and take any reports of violations extremely seriously. We have banned contributors, mentors and users due to violations. | ||
| 15 | + We actively monitor for Code of Conduct (CoC) violations and take any reports of violations extremely seriously. | ||
| 16 | + We have banned contributors, mentors and users due to violations. | ||
| 14 | 17 | ||
| 15 | - After we receive a report of a CoC violation, we view that person's conversation history on Exercism and related communication channels and attempt to understand whether someone has deliberately broken the CoC, or accidentally crossed a line. We generally reach out to the person who has been reported to discuss any concerns we have and warn them that repeated violations will result in a ban. Sometimes we decide that no violation has occurred and that no action is required and sometimes we will also ban people on a first offense. We strive to be fair, but will err on the side of protecting the culture of our community. | ||
| 18 | + After we receive a report of a CoC violation, we view that person's conversation history on Exercism and related communication channels and attempt to understand whether someone has deliberately broken the CoC, or accidentally crossed a line. | ||
| 19 | + We generally reach out to the person who has been reported to discuss any concerns we have and warn them that repeated violations will result in a ban. | ||
| 20 | + Sometimes we decide that no violation has occurred and that no action is required and sometimes we will also ban people on a first offense. | ||
| 21 | + We strive to be fair, but will err on the side of protecting the culture of our community. | ||
| 16 | 22 | ||
| 17 | 23 | Exercism's leadership reserve the right to take whatever action they feel appropriate with regards to CoC violations. | |
| 18 | 24 | ||
@@ -36,15 +42,16 @@ Exercism should be a safe place for everybody regardless of | |||
| 36 | 42 | - Race | |
| 37 | 43 | - Age | |
| 38 | 44 | - Religion | |
| 39 | - - Anything else you can think of. | ||
| 45 | + - Anything else you can think of | ||
| 40 | 46 | ||
| 41 | 47 | As someone who is part of this community, you agree that: | |
| 42 | 48 | ||
| 43 | - - We are collectively and individually committed to safety and inclusivity. | ||
| 44 | - - We have zero tolerance for abuse, harassment, or discrimination. | ||
| 45 | - - We respect people’s boundaries and identities. | ||
| 46 | - - We refrain from using language that can be considered offensive or oppressive (systemically or otherwise), eg. sexist, racist, homophobic, transphobic, ableist, classist, etc. - this includes (but is not limited to) various slurs. | ||
| 47 | - - We avoid using offensive topics as a form of humor. | ||
| 49 | + - We are collectively and individually committed to safety and inclusivity | ||
| 50 | + - We have zero tolerance for abuse, harassment, or discrimination | ||
| 51 | + - We respect people’s boundaries and identities | ||
| 52 | + - We refrain from using language that can be considered offensive or oppressive (systemically or otherwise), eg. sexist, racist, homophobic, transphobic, ableist, classist, etc. | ||
| 53 | + - this includes (but is not limited to) various slurs. | ||
| 54 | + - We avoid using offensive topics as a form of humor | ||
| 48 | 55 | ||
| 49 | 56 | We actively work towards: | |
| 50 | 57 | ||
@@ -57,26 +64,30 @@ We condemn: | |||
| 57 | 64 | - Stalking, doxxing, or publishing private information | |
| 58 | 65 | - Violence, threats of violence or violent language | |
| 59 | 66 | - Anything that compromises people’s safety | |
| 60 | - - Conduct or speech which might be considered sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory or offensive in nature. | ||
| 61 | - - The use of unwelcome, suggestive, derogatory or inappropriate nicknames or terms. | ||
| 62 | - - Disrespect towards others (jokes, innuendo, dismissive attitudes) and towards differences of opinion. | ||
| 63 | - - Intimidation or harassment (online or in-person). Please read the [Citizen Code of Conduct](https://github.com/stumpsyn/policies/blob/master/citizen_code_of_conduct.md) for how we interpret harassment. | ||
| 64 | - - Inappropriate attention or contact. | ||
| 65 | - - Not understanding the differences between constructive criticism and disparagement. | ||
| 67 | + - Conduct or speech which might be considered sexist, racist, homophobic, transphobic, ableist or otherwise discriminatory or offensive in nature | ||
| 68 | + - The use of unwelcome, suggestive, derogatory or inappropriate nicknames or terms | ||
| 69 | + - Disrespect towards others (jokes, innuendo, dismissive attitudes) and towards differences of opinion | ||
| 70 | + - Intimidation or harassment (online or in-person). | ||
| 71 | + Please read the [Citizen Code of Conduct](https://github.com/stumpsyn/policies/blob/master/citizen_code_of_conduct.md) for how we interpret harassment | ||
| 72 | + - Inappropriate attention or contact | ||
| 73 | + - Not understanding the differences between constructive criticism and disparagement | ||
| 66 | 74 | ||
| 67 | 75 | These things are NOT OK. | |
| 68 | 76 | ||
| 69 | - Be aware of how your actions affect others. If it makes someone uncomfortable, stop. | ||
| 77 | + Be aware of how your actions affect others. | ||
| 78 | + If it makes someone uncomfortable, stop. | ||
| 70 | 79 | ||
| 71 | 80 | If you say something that is found offensive, and you are called out on it, try to: | |
| 72 | 81 | ||
| 73 | - - Listen without interruption. | ||
| 74 | - - Believe what the person is saying & do not attempt to disqualify what they have to say. | ||
| 75 | - - Ask for tips / help with avoiding making the offense in the future. | ||
| 76 | - - Apologize and ask forgiveness. | ||
| 82 | + - Listen without interruption | ||
| 83 | + - Believe what the person is saying & do not attempt to disqualify what they have to say | ||
| 84 | + - Ask for tips / help with avoiding making the offense in the future | ||
| 85 | + - Apologize and ask forgiveness | ||
| 77 | 86 | ||
| 78 | 87 | ## History | |
| 79 | 88 | ||
| 80 | - This policy was initially adopted from the Front-end London Slack community and has been modified since. A version history can be seen on [GitHub](https://github.com/exercism/website-copy/edit/main/pages/code_of_conduct.md). | ||
| 89 | + This policy was initially adopted from the Front-end London Slack community and has been modified since. | ||
| 90 | + A version history can be seen on [GitHub](https://github.com/exercism/website-copy/edit/main/pages/code_of_conduct.md). | ||
| 81 | 91 | ||
| 82 | - _This policy is a "living" document, and subject to refinement and expansion in the future. This policy applies to the Exercism website, the Exercism GitHub organization, any other Exercism-related communication channels (e.g. Slack, Twitter, email) and any other Exercism entity or event._ | ||
| 92 | + _This policy is a "living" document, and subject to refinement and expansion in the future. | ||
| 93 | + This policy applies to the Exercism website, the Exercism GitHub organization, any other Exercism-related communication channels (e.g. Slack, Twitter, email) and any other Exercism entity or event._ | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,29 +6,6 @@ | |||
| 6 | 6 | ||
| 7 | 7 | set -eo pipefail | |
| 8 | 8 | ||
| 9 | - readonly LATEST='https://api.github.com/repos/exercism/configlet/releases/latest' | ||
| 10 | - | ||
| 11 | - case "$(uname)" in | ||
| 12 | - Darwin*) os='mac' ;; | ||
| 13 | - Linux*) os='linux' ;; | ||
| 14 | - Windows*) os='windows' ;; | ||
| 15 | - MINGW*) os='windows' ;; | ||
| 16 | - MSYS_NT-*) os='windows' ;; | ||
| 17 | - *) os='linux' ;; | ||
| 18 | - esac | ||
| 19 | - | ||
| 20 | - case "${os}" in | ||
| 21 | - windows*) ext='zip' ;; | ||
| 22 | - *) ext='tgz' ;; | ||
| 23 | - esac | ||
| 24 | - | ||
| 25 | - case "$(uname -m)" in | ||
| 26 | - *64*) arch='64bit' ;; | ||
| 27 | - *686*) arch='32bit' ;; | ||
| 28 | - *386*) arch='32bit' ;; | ||
| 29 | - *) arch='64bit' ;; | ||
| 30 | - esac | ||
| 31 | - | ||
| 32 | 9 | curlopts=( | |
| 33 | 10 | --silent | |
| 34 | 11 | --show-error | |
@@ -41,15 +18,25 @@ if [[ -n "${GITHUB_TOKEN}" ]]; then | |||
| 41 | 18 | curlopts+=(--header "authorization: Bearer ${GITHUB_TOKEN}") | |
| 42 | 19 | fi | |
| 43 | 20 | ||
| 44 | - suffix="${os}-${arch}.${ext}" | ||
| 45 | - | ||
| 46 | 21 | get_download_url() { | |
| 47 | - curl "${curlopts[@]}" --header 'Accept: application/vnd.github.v3+json' "${LATEST}" | | ||
| 22 | + local os="$1" | ||
| 23 | + local ext="$2" | ||
| 24 | + local latest='https://api.github.com/repos/exercism/configlet/releases/latest' | ||
| 25 | + local arch | ||
| 26 | + case "$(uname -m)" in | ||
| 27 | + x86_64) arch='x86-64' ;; | ||
| 28 | + *686*) arch='i386' ;; | ||
| 29 | + *386*) arch='i386' ;; | ||
| 30 | + *) arch='x86-64' ;; | ||
| 31 | + esac | ||
| 32 | + local suffix="${os}_${arch}.${ext}" | ||
| 33 | + curl "${curlopts[@]}" --header 'Accept: application/vnd.github.v3+json' "${latest}" | | ||
| 48 | 34 | grep "\"browser_download_url\": \".*/download/.*/configlet.*${suffix}\"$" | | |
| 49 | 35 | cut -d'"' -f4 | |
| 50 | 36 | } | |
| 51 | 37 | ||
| 52 | 38 | main() { | |
| 39 | + local output_dir | ||
| 53 | 40 | if [[ -d ./bin ]]; then | |
| 54 | 41 | output_dir="./bin" | |
| 55 | 42 | elif [[ $PWD == */bin ]]; then | |
@@ -59,8 +46,26 @@ main() { | |||
| 59 | 46 | return 1 | |
| 60 | 47 | fi | |
| 61 | 48 | ||
| 62 | - download_url="$(get_download_url)" | ||
| 63 | - output_path="${output_dir}/latest-configlet.${ext}" | ||
| 49 | + local os | ||
| 50 | + case "$(uname)" in | ||
| 51 | + Darwin*) os='macos' ;; | ||
| 52 | + Linux*) os='linux' ;; | ||
| 53 | + Windows*) os='windows' ;; | ||
| 54 | + MINGW*) os='windows' ;; | ||
| 55 | + MSYS_NT-*) os='windows' ;; | ||
| 56 | + *) os='linux' ;; | ||
| 57 | + esac | ||
| 58 | + | ||
| 59 | + local ext | ||
| 60 | + case "${os}" in | ||
| 61 | + windows*) ext='zip' ;; | ||
| 62 | + *) ext='tar.gz' ;; | ||
| 63 | + esac | ||
| 64 | + | ||
| 65 | + echo "Fetching configlet..." >&2 | ||
| 66 | + local download_url | ||
| 67 | + download_url="$(get_download_url "${os}" "${ext}")" | ||
| 68 | + local output_path="${output_dir}/latest-configlet.${ext}" | ||
| 64 | 69 | curl "${curlopts[@]}" --output "${output_path}" "${download_url}" | |
| 65 | 70 | ||
| 66 | 71 | case "${ext}" in | |
@@ -69,6 +74,17 @@ main() { | |||
| 69 | 74 | esac | |
| 70 | 75 | ||
| 71 | 76 | rm -f "${output_path}" | |
| 77 | + | ||
| 78 | + local executable_ext | ||
| 79 | + case "${os}" in | ||
| 80 | + windows*) executable_ext='.exe' ;; | ||
| 81 | + *) executable_ext='' ;; | ||
| 82 | + esac | ||
| 83 | + | ||
| 84 | + local configlet_path="${output_dir}/configlet${executable_ext}" | ||
| 85 | + local configlet_version | ||
| 86 | + configlet_version="$(${configlet_path} --version)" | ||
| 87 | + echo "Downloaded configlet ${configlet_version} to ${configlet_path}" | ||
| 72 | 88 | } | |
| 73 | 89 | ||
| 74 | 90 | main | |
| Back | FazBrowse Home | New Git URL |
0 commit comments