user32628: I've been playing against Stockfish, and sometimes I promote a pawn to a piece that immediately puts the opposing king (the only piece on the board) into check, but the computer says at that point that the game is a draw. Why is that?
Edit: Note that I am asking if there is a specific rule in chess regarding stalemate after pawn promotion, other than "the opponent cannot make a move".
Here's an example: I just promoted a pawn to a knight, and Stockfish has said the game is a draw, even though the king in check has moves available.
[fen "5N2/7k/8/7K/8/8/8/8 w - - 1 1"]


user12873: This has nothing to do with promotion or check. Just the fact that there's no possible configuration which results in a king and knight checkmating a king. So the position you posted is declared drawn since neither side has any mating material.

user4418: 
I am asking if there is a specific rule in chess regarding stalemate after pawn promotion, other than "the opponent cannot make a move".

No, there are no special rules for stalemate after promotion, nor are there special rules for draws after promotion. The only reason promotion affects whether the game is a draw or not is that it changes the pieces on the board.
Article 5, "The completion of the game" in the FIDE Laws of Chess defines how the game is won and drawn. Stalemate is not the only way the game can end in a draw. This is what it says about drawing the game:

5.2.1    The game is drawn when the player to move has no legal move and his king is not in check. The game is said to end in ‘stalemate’. This immediately ends the game, provided that the move producing the stalemate position was in accordance with Article 3 and Articles 4.2 – 4.7.
5.2.2    The game is drawn when a position has arisen in which neither player can checkmate the opponent’s king with any series of legal moves. The game is said to end in a ‘dead position’. This immediately ends the game, provided that the move producing the position was in accordance with Article 3 and Articles 4.2 – 4.7.
5.2.3    The game is drawn upon agreement between the two players during the game , provided both players have made at least one move. This immediately ends the game.

In the position you give there is no way for either side to checkmate the opponent. Therefore the position is a "dead position" and the game immediately ends in a draw.
Better would have been to promote to a rook. Then the king would still have had a move, Kg7, but checkmate with K+R v K is possible so you could still have won if you knew how to checkmate with king and rook versus king.

32628: <p>I've been playing against Stockfish, and sometimes I promote a pawn to a piece that immediately puts the opposing king (the only piece on the board) into check, but the computer says at that point that the game is a draw. Why is that?</p>
<p>Edit: Note that I am asking if there is a specific rule in chess regarding stalemate after pawn promotion, other than &quot;the opponent cannot make a move&quot;.</p>
<p>Here's an example: I just promoted a pawn to a knight, and Stockfish has said the game is a draw, even though the king in check has moves available.</p>
<pre><code>[fen &quot;5N2/7k/8/7K/8/8/8/8 w - - 1 1&quot;]
</code></pre>
 12873: <p>This has nothing to do with promotion or check. Just the fact that there's no possible configuration which results in a king and knight checkmating a king. So the position you posted is declared drawn since neither side has any mating material.</p>
 4418: <blockquote>
<p>I am asking if there is a specific rule in chess regarding stalemate after pawn promotion, other than &quot;the opponent cannot make a move&quot;.</p>
</blockquote>
<p>No, there are no special rules for stalemate after promotion, nor are there special rules for draws after promotion. The only reason promotion affects whether the game is a draw or not is that it changes the pieces on the board.</p>
<p>Article 5, &quot;The completion of the game&quot; in the <a href="https://handbook.fide.com/chapter/E012018" rel="noreferrer">FIDE Laws of Chess</a> defines how the game is won and drawn. Stalemate is not the only way the game can end in a draw. This is what it says about drawing the game:</p>
<blockquote>
<p>5.2.1    The game is drawn when the player to move has no legal move and his king is not in check. The game is said to end in ‘stalemate’. This immediately ends the game, provided that the move producing the stalemate position was in accordance with Article 3 and Articles 4.2 – 4.7.</p>
<p>5.2.2    <strong>The game is drawn when a position has arisen in which neither player can checkmate the opponent’s king with any series of legal moves. The game is said to end in a ‘dead position’.</strong> This immediately ends the game, provided that the move producing the position was in accordance with Article 3 and Articles 4.2 – 4.7.</p>
<p>5.2.3    The game is drawn upon agreement between the two players during the game , provided both players have made at least one move. This immediately ends the game.</p>
</blockquote>
<p>In the position you give there is no way for either side to checkmate the opponent. Therefore the position is a &quot;dead position&quot; and the game immediately ends in a draw.</p>
<p>Better would have been to promote to a rook. Then the king would still have had a move, Kg7, but checkmate with K+R v K is possible so you could still have won if you knew how to checkmate with king and rook versus king.</p>
