Skip to content

Commit

Permalink
Merge branch 'sqrtpif' of https://github.com/vivekmaurya001/stdlib in…
Browse files Browse the repository at this point in the history
…to sqrtpif
  • Loading branch information
vivekmaurya001 committed Dec 6, 2024
2 parents cb213f6 + 6e86cea commit 999fdbf
Show file tree
Hide file tree
Showing 46 changed files with 1,490 additions and 329 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ name: labeler
# Workflow triggers:
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
- edited
- review_requested
- review_request_removed
- ready_for_review
- converted_to_draft

# Workflow jobs:
jobs:
Expand Down Expand Up @@ -53,3 +62,52 @@ jobs:
with:
configuration-path: .github/labeler.yml
repo-token: ${{ secrets.CHATBOT_GITHUB_TOKEN }}

# Add "Needs Review" label when PR is opened and not a draft:
- name: 'Add "Needs Review" label if PR is opened and not draft'
if: ${{ github.event.action == 'opened' && github.event.pull_request.draft == false }}
# Pin action to full length commit SHA
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ secrets.CHATBOT_GITHUB_TOKEN }}
script: |
await github.rest.issues.addLabels({
'owner': context.repo.owner,
'repo': context.repo.repo,
'issue_number': context.payload.pull_request.number,
'labels': ['Needs Review'],
})
# Add "Needs Review" label when PR is marked ready for review:
- name: 'Add "Needs Review" label if PR is ready for review'
if: ${{ github.event.action == 'ready_for_review' }}
# Pin action to full length commit SHA
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ secrets.CHATBOT_GITHUB_TOKEN }}
script: |
await github.rest.issues.addLabels({
'owner': context.repo.owner,
'repo': context.repo.repo,
'issue_number': context.payload.pull_request.number,
'labels': ['Needs Review'],
})
# Remove "Needs Review" label when PR is converted to draft or closed:
- name: 'Remove "Needs Review" label if PR is converted to draft or closed'
if: ${{ github.event.action == 'converted_to_draft' || github.event.action == 'closed' }}
# Pin action to full length commit SHA
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
with:
github-token: ${{ secrets.CHATBOT_GITHUB_TOKEN }}
script: |
try {
await github.rest.issues.removeLabel({
'owner': context.repo.owner,
'repo': context.repo.repo,
'issue_number': context.payload.pull_request.number,
'name': 'Needs Review',
})
} catch ( error ) {
console.log( 'Error removing label: %s', error.message );
}
20 changes: 10 additions & 10 deletions .github/workflows/slash_commands.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ jobs:
github-token: ${{ secrets.STDLIB_BOT_GITHUB_TOKEN }}
script: |
github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ['bot: In Progress']
'owner': context.repo.owner,
'repo': context.repo.repo,
'issue_number': context.issue.number,
'labels': ['bot: In Progress']
})
# Add initial reaction to comment with slash command:
Expand Down Expand Up @@ -254,11 +254,11 @@ jobs:
script: |
try {
await github.rest.issues.removeLabel({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
name: 'bot: In Progress'
'owner': context.repo.owner,
'repo': context.repo.repo,
'issue_number': context.issue.number,
'name': 'bot: In Progress'
})
} catch (error) {
console.log( 'Error removing label:', error );
} catch ( error ) {
console.log( 'Error removing label: %s', error.message );
}
24 changes: 23 additions & 1 deletion .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ Adarsh Palaskar <[email protected]> adarshpalaskar1
Aditya Sapra <[email protected]> <[email protected]>
Aditya Sapra <[email protected]> adityacodes30

Ahmed Atwa <[email protected]> NightKnight

Ahmed Kashkoush <[email protected]> <[email protected]>
Ahmed Kashkoush <[email protected]> Ahmed_Kashkoush

Aman Bhansali <[email protected]> <[email protected]>
Aman Bhansali <[email protected]> aman-095

Expand Down Expand Up @@ -99,10 +104,17 @@ Muhammad Haris <[email protected]> headlessNode

Naresh Jagadeesan <[email protected]> <[email protected]>

Nishant Shinde <[email protected]> nishant-s7

Nithin Katta <[email protected]> KATTA NAGA NITHIN

# O

Ori Miles <[email protected]> orimiles5

# P

Philipp Burckhardt <[email protected]> <[email protected]>
Philipp Burckhardt <[email protected]> Planeshifter

Pranav Goswami <[email protected]> <[email protected]>
Expand All @@ -117,6 +129,8 @@ Pratyush Kumar Chouhan <[email protected]> Pratyush

Priyansh <[email protected]> itsspriyansh

Priyanshu Agarwal <[email protected]> AgPriyanshu18

Pushpendra Chandravanshi <[email protected]> <[email protected]>
Pushpendra Chandravanshi <[email protected]> Pushpendra766

Expand All @@ -132,16 +146,20 @@ Rejoan Sardar <[email protected]> Rejoan-Sardar
Ricky Reusser <[email protected]> <[email protected]>
Ricky Reusser <[email protected]> <[email protected]>

Rishav <[email protected]> RISHAV

Robert Gislason <[email protected]> rgizz

Rutam <[email protected]> performant23
Rutam Kathale <[email protected]> performant23

Ryan Seal <[email protected]> Splrk

# S

Sai Srikar Dumpeti <[email protected]> the-r3aper7

Sarthak Paandey <[email protected]> SarthakPaandey

Shashank Shekhar Singh <[email protected]> <[email protected]>
Shashank Shekhar Singh <[email protected]> Shashankss1205

Expand All @@ -160,6 +178,8 @@ Stephannie Jiménez Gacha <[email protected]> <[email protected].
Stephannie Jiménez Gacha <[email protected]> Stephannie Jimenez
Stephannie Jiménez Gacha <[email protected]> Stephannie Jimenez Gacha

Suraj Kumar <[email protected]> Suraj kuma

# T

Tudor Pagu <[email protected]> tudor-pagu
Expand All @@ -184,5 +204,7 @@ Varad Gupta <[email protected]> vr-varad

# Y

Yaswanth Kosuru <[email protected]> yaswanth

Yernar Yergaziyev <[email protected]> <[email protected]>
Yernar Yergaziyev <[email protected]> <[email protected]>
19 changes: 10 additions & 9 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ Aayush Khanna <[email protected]>
Abhijit Raut <[email protected]>
Adarsh Palaskar <[email protected]>
Aditya Sapra <[email protected]>
AgPriyanshu18 <[email protected]>
Ahmed Atwa <[email protected]>
Ahmed Kashkoush <[email protected]>
Aleksandr <[email protected]>
Ali Salesi <[email protected]>
Aman Bhansali <[email protected]>
Expand Down Expand Up @@ -60,32 +61,34 @@ Momtchil Momtchev <[email protected]>
Muhammad Haris <[email protected]>
Naresh Jagadeesan <[email protected]>
Neeraj Pathak <[email protected]>
NightKnight <Ahmedatwa866@yahoo.com>
Nishant Shinde <[email protected].com>
Nithin Katta <[email protected]>
Nourhan Hasan <[email protected]>
Ognjen Jevremović <[email protected]>
Oneday12323 <[email protected]>
Ori Miles <[email protected]>
Philipp Burckhardt <[email protected]>
Prajwal Kulkarni <[email protected]>
Pranav Goswami <[email protected]>
Praneki <[email protected]>
Pratik <[email protected]>
Pratyush Kumar Chouhan <[email protected]>
Priyansh <[email protected]>
Priyanshu Agarwal <[email protected]>
Pushpendra Chandravanshi <[email protected]>
RISHAV <[email protected]>
Raunak Kumar Gupta <[email protected]>
Rejoan Sardar <[email protected]>
Ricky Reusser <[email protected]>
Ridam Garg <[email protected]>
Rishav <[email protected]>
Robert Gislason <[email protected]>
Roman Stetsyk <[email protected]>
Rutam <[email protected]>
Rutam Kathale <[email protected]>
Ruthwik Chikoti <[email protected]>
Ryan Seal <[email protected]>
Rylan Yang <[email protected]>
Sai Srikar Dumpeti <[email protected]>
SarthakPaandey <[email protected]>
Sarthak Paandey <[email protected]>
Saurabh Singh <[email protected]>
Seyyed Parsa Neshaei <[email protected]>
Shashank Shekhar Singh <[email protected]>
Expand All @@ -98,7 +101,7 @@ Snehil Shah <[email protected]>
Soumajit Chatterjee <[email protected]>
Spandan Barve <[email protected]>
Stephannie Jiménez Gacha <[email protected]>
Suraj kumar <[email protected]>
Suraj Kumar <[email protected]>
Tirtadwipa Manunggal <[email protected]>
Tudor Pagu <[email protected]>
Tufailahmed Bargir <[email protected]>
Expand All @@ -109,11 +112,9 @@ Vaibhav Patel <[email protected]>
Varad Gupta <[email protected]>
Vinit Pandit <[email protected]>
Xiaochuan Ye <[email protected]>
Yaswanth Kosuru <[email protected]>
Yernar Yergaziyev <[email protected]>
naveen <[email protected]>
nishant-s7 <[email protected]>
olenkabilonizhka <[email protected]>
orimiles5 <[email protected]>
rainn <[email protected]>
rei2hu <[email protected]>
yaswanth <[email protected]>
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ function main( context ) {

rule = {
'meta': {
'type': 'layout',
'docs': {
'description': 'enforce that code does not contain multiple blank lines'
},
Expand Down
Loading

0 comments on commit 999fdbf

Please sign in to comment.