-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSOE-545: Automatically assign GitHub issue corresponding to a pull requests based on Jira issue key in Lombiq.GitHub.Actions #197
Conversation
This comment has been minimized.
This comment has been minimized.
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view or the 📜action log for details. Unrecognized words (1)OSOE Previously acknowledged words that are now absentabcdef abcdefghijklmnopqrstuvwxyz amet Argb autoinit bak baz Bcc blog btn Bubl buble CDNs certs chainable chartjs chmod chown Chro chromedriver cjs Cloudflare Cms cref crlf ctor ctx cwd dba DBs dddd dest Dsc EACCES ecma editorconfig emails Embedd enableextensions esm EULA eur falsey favicon ffff Fhd fixme GDPR Graphi HHmmss hsva https Hvga icbin idx iife iis ipsum itemprop JMES json jsoneditor jsoneditoronline KUhd labelledby lastgremlinsclick linebreak linkedin linux localhost lockfile lombiqdt lookbehind markdownlint mcr mde mixin mkdir MMM mogwais Moq msbuild mscorlib msedgedriver mso MVVM myapp navbar Nhd NLog Noda nologo NONINFRINGEMENT NPM npx NTFS NVARCHAR omnisharp onspecial onwarn orchardcore osoce parallelizable pickr PII plusplus pnpm popstate postclean Postgre pragma prebuild preheader publishsettings pwd pwsh Qhd Qvga Qwxga readdir Regexes Rekt RHEL RSPEC sdk setlocal SFCs shortcode sln sme Smo sourced sourcemaps sql sqlcmd sudoing SUSE Svga Sxga testid Tful thetheme todo tundora Tzdb uri urijs userspace utf Uwqhd Vga vuejs vuelidate wcag webapp wiki wpf Wqhd Wsxga Wuxga wwwroot Wxga Wysiwyg XDG Xga XPATH xsessionrc XSRF xunit xxl yaml Yarp yml yyyy :arrow_right:To accept ✔️ these unrecognized words as correct and remove the previously acknowledged and now absent words, run the following commands... in a clone of the git@github.com:Lombiq/GitHub-Actions.git repository curl -s -S -L 'https://raw.githubusercontent.com/Lombiq/GitHub-Actions/dev/apply.pl' |
perl - 'https://github.com/Lombiq/GitHub-Actions/actions/runs/4084306400/attempts/1' Available 📚 dictionaries could cover words not in the 📘 dictionaryThis includes both expected items (180) from .github/actions/spelling/expect.txt and unrecognized words (1)
Consider adding them using (in with:
extra_dictionaries:
cspell:software-terms/src/software-terms.txt
cspell:software-terms/src/software-tools.txt
cspell:node/src/node-old.txt
cspell:node/node.txt
cspell:cpp/src/people.txt To stop checking additional dictionaries, add: with:
check_extra_dictionaries: '' Spell checking configuration advicesBasicsSince this action is an extension of check-spelling, make sure that you familiarize yourself with its concepts and configuration options first. Some of the most notable ones:
Configuration filesConfiguration files allow you to define words and patterns that shouldn't be considered spelling mistakes, e.g.:
You can provide these files in your own repository, but they must be placed under the path .github/actions/spelling. To ease maintaining dictionary files (and keep a consistent behavior), keep the entries sorted alphabetically. When not to add entries to dictionary filesBefore adding an entry to one of the dictionary files, consider the following:
Helper scripts for local developmentWhen using custom dictionary files on top of external ones (such as the ones from check-spelling or Lombiq's), these scripts can help reducing the number of entries you need to add to your own:
|
.github/actions/assign-issue-to-pr-author/AssignIssueToPullRequestAuthor.ps1
Outdated
Show resolved
Hide resolved
.github/actions/assign-issue-to-pr-author/AssignIssueToPullRequestAuthor.ps1
Outdated
Show resolved
Hide resolved
@@ -20,7 +20,7 @@ jobs: | |||
env: | |||
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} | |||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |||
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't forget to add "Fixes #no" to the description whenever you open a PR that fixes a GitHub issue. I added it now. |
[string] $GitHubRepository | ||
) | ||
|
||
$Jira_Key = if ("$Body" -match '\[(.*?)\]') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't have this unconventional variable name and e.g. $IssueQuery
below be caught by PS analysis, @BenedekFarkas @DAud-IcI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are the list of built-in rules, I don't see anything regarding variable name styling.
We could create our own rule. If PSScriptAnalyzer can identify local variable declaration, that's when we should enforce no underscores and lower case first letter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about this (added some extra details): Lombiq/PowerShell-Analyzers#31
OSOE-545
Fixes #189