mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-25 01:47:25 +08:00
Compare commits
No commits in common. "b3b336b0f95644ceda7758871191cdf040b897b2" and "50a526f209a182add8a47e362e1c9a3bfd7c5af4" have entirely different histories.
b3b336b0f9
...
50a526f209
26
.github/workflows/project.yml
vendored
26
.github/workflows/project.yml
vendored
@ -27,11 +27,10 @@ jobs:
|
|||||||
gh api graphql -f query='
|
gh api graphql -f query='
|
||||||
query($org: String!, $number: Int!) {
|
query($org: String!, $number: Int!) {
|
||||||
organization(login: $org){
|
organization(login: $org){
|
||||||
projectV2(number: $number) {
|
projectNext(number: $number) {
|
||||||
id
|
id
|
||||||
fields(first:20) {
|
fields(first:20) {
|
||||||
nodes {
|
nodes {
|
||||||
... on ProjectV2Field {
|
|
||||||
id
|
id
|
||||||
name
|
name
|
||||||
}
|
}
|
||||||
@ -39,13 +38,13 @@ jobs:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json
|
' -f org=$ORGANIZATION -F number=$PROJECT_NUMBER > project_data.json
|
||||||
|
|
||||||
# Parse project data
|
# Parse project data
|
||||||
cat >> $GITHUB_ENV <<EOF
|
cat >> $GITHUB_ENV <<EOF
|
||||||
PROJECT_ID=$(jq '.data.organization.projectV2.id' project_data.json)
|
PROJECT_ID=$(jq '.data.organization.projectNext.id' project_data.json)
|
||||||
PLUGIN_FIELD_ID=$(jq '.data.organization.projectV2.fields.nodes[] | select(.name == "Plugin") | .id' project_data.json)
|
PLUGIN_FIELD_ID=$(jq '.data.organization.projectNext.fields.nodes[] | select(.name == "Plugin") | .id' project_data.json)
|
||||||
THEME_FIELD_ID=$(jq '.data.organization.projectV2.fields.nodes[] | select(.name == "Theme") | .id' project_data.json)
|
THEME_FIELD_ID=$(jq '.data.organization.projectNext.fields.nodes[] | select(.name == "Theme") | .id' project_data.json)
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Add to project
|
- name: Add to project
|
||||||
@ -54,13 +53,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
item_id="$(gh api graphql -f query='
|
item_id="$(gh api graphql -f query='
|
||||||
mutation($project: ID!, $content: ID!) {
|
mutation($project: ID!, $content: ID!) {
|
||||||
addProjectV2ItemById(input: {projectId: $project, contentId: $content}) {
|
addProjectNextItem(input: {projectId: $project, contentId: $content}) {
|
||||||
item {
|
projectNextItem {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
' -f project=$PROJECT_ID -f content=$ISSUE_OR_PR_ID --jq '.data.addProjectV2ItemById.item.id')"
|
' -f project=$PROJECT_ID -f content=$ISSUE_OR_PR_ID --jq '.data.addProjectNextItem.projectNextItem.id')"
|
||||||
|
|
||||||
echo "ITEM_ID=$item_id" >> $GITHUB_ENV
|
echo "ITEM_ID=$item_id" >> $GITHUB_ENV
|
||||||
|
|
||||||
@ -109,23 +108,23 @@ jobs:
|
|||||||
$theme_field: ID!
|
$theme_field: ID!
|
||||||
$theme_value: String!
|
$theme_value: String!
|
||||||
) {
|
) {
|
||||||
set_plugin: updateProjectV2ItemFieldValue(input: {
|
set_plugin: updateProjectNextItemField(input: {
|
||||||
projectId: $project
|
projectId: $project
|
||||||
itemId: $item
|
itemId: $item
|
||||||
fieldId: $plugin_field
|
fieldId: $plugin_field
|
||||||
value: $plugin_value
|
value: $plugin_value
|
||||||
}) {
|
}) {
|
||||||
projectV2Item {
|
projectNextItem {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
set_theme: updateProjectV2ItemFieldValue(input: {
|
set_theme: updateProjectNextItemField(input: {
|
||||||
projectId: $project
|
projectId: $project
|
||||||
itemId: $item
|
itemId: $item
|
||||||
fieldId: $theme_field
|
fieldId: $theme_field
|
||||||
value: $theme_value
|
value: $theme_value
|
||||||
}) {
|
}) {
|
||||||
projectV2Item {
|
projectNextItem {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -134,3 +133,4 @@ jobs:
|
|||||||
-f plugin_field=$PLUGIN_FIELD_ID -f plugin_value=$PLUGIN \
|
-f plugin_field=$PLUGIN_FIELD_ID -f plugin_value=$PLUGIN \
|
||||||
-f theme_field=$THEME_FIELD_ID -f theme_value=$THEME \
|
-f theme_field=$THEME_FIELD_ID -f theme_value=$THEME \
|
||||||
--silent
|
--silent
|
||||||
|
|
||||||
|
|||||||
@ -36,7 +36,7 @@ alias buf='brew upgrade --formula'
|
|||||||
|
|
||||||
function brews() {
|
function brews() {
|
||||||
local formulae="$(brew leaves | xargs brew deps --installed --for-each)"
|
local formulae="$(brew leaves | xargs brew deps --installed --for-each)"
|
||||||
local casks="$(brew list --cask 2>/dev/null)"
|
local casks="$(brew list --cask)"
|
||||||
|
|
||||||
local blue="$(tput setaf 4)"
|
local blue="$(tput setaf 4)"
|
||||||
local bold="$(tput bold)"
|
local bold="$(tput bold)"
|
||||||
|
|||||||
@ -178,7 +178,7 @@ function fzf_setup_using_macports() {
|
|||||||
(( $+commands[fzf] )) || return 1
|
(( $+commands[fzf] )) || return 1
|
||||||
|
|
||||||
# The fzf-zsh-completion package installs the auto-completion in
|
# The fzf-zsh-completion package installs the auto-completion in
|
||||||
local completions="/opt/local/share/fzf/shell/completion.zsh"
|
local completions="/opt/local/share/zsh/site-functions/fzf"
|
||||||
# The fzf-zsh-completion package installs the key-bindings file in
|
# The fzf-zsh-completion package installs the key-bindings file in
|
||||||
local key_bindings="/opt/local/share/fzf/shell/key-bindings.zsh"
|
local key_bindings="/opt/local/share/fzf/shell/key-bindings.zsh"
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
This plugin provides a few utilities that make you faster on your daily work with the [Swift Package Manager](https://github.com/apple/swift-package-manager), as well as autocompletion for Swift 5.7.
|
This plugin provides a few utilities that make you faster on your daily work with the [Swift Package Manager](https://github.com/apple/swift-package-manager), as well as autocompletion for Swift 5.1.
|
||||||
|
|
||||||
To start using it, add the `swiftpm` plugin to your `plugins` array in `~/.zshrc`:
|
To start using it, add the `swiftpm` plugin to your `plugins` array in `~/.zshrc`:
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user